[RDKB][mt7986][app][Add fwupgrade tool]
[Description]
Add fwupgrade tool
1. fwupgrade tool refer to openwrt
[Release-log]
diff --git a/recipes-devtools/fw-upgrade/fw-upgrade_1.0.bb b/recipes-devtools/fw-upgrade/fw-upgrade_1.0.bb
new file mode 100644
index 0000000..7bed810
--- /dev/null
+++ b/recipes-devtools/fw-upgrade/fw-upgrade_1.0.bb
@@ -0,0 +1,30 @@
+SUMMARY = "firmware upgrade tool"
+SECTION = "applications"
+LICENSE = "GPLv2"
+LIC_FILES_CHKSUM = "file://COPYING;md5=751419260aa954499f7abaabaa882bbe"
+
+S = "${WORKDIR}"
+
+
+SRC_URI = " \
+ file://COPYING \
+ file://platform.sh \
+ file://nand.sh \
+ file://sysupgrade \
+ file://do_stage2 \
+ "
+
+
+
+FILES_${PN} += " \
+ /lib/upgrade \
+ "
+
+do_install() {
+ install -d ${D}/lib/upgrade
+ install -m 0755 ${WORKDIR}/platform.sh ${D}/lib/upgrade
+ install -m 0755 ${WORKDIR}/nand.sh ${D}/lib/upgrade
+ install -m 0755 ${WORKDIR}/do_stage2 ${D}/lib/upgrade
+ install -d ${D}${sbindir}
+ install -m 0755 ${WORKDIR}/sysupgrade ${D}${sbindir}
+}