Signed-off-by: Alexander Couzens <[email protected]>
---
target/linux/ar71xx/image/Makefile | 22 ++++++++++++++++++++++
1 file changed, 22 insertions(+)
diff --git a/target/linux/ar71xx/image/Makefile
b/target/linux/ar71xx/image/Makefile
index 750de9c..6662672 100644
--- a/target/linux/ar71xx/image/Makefile
+++ b/target/linux/ar71xx/image/Makefile
@@ -131,8 +131,30 @@ define Build/mkubntimage-split
rm [email protected] [email protected]
endef
+define Build/mkubntimage2
+ $(STAGING_DIR_HOST)/bin/mkfwimage2 -f 0x9f000000 \
+ -v $(UBNT_TYPE).$(UBNT_CHIP).v6.0.0-OpenWrt-$(REVISION) \
+ -p jffs2:0x50000:0xf60000:0:0:$@ \
+ -o [email protected]
+ @mv [email protected] $@
+endef
+
DEVICE_VARS += UBNT_BOARD UBNT_CHIP UBNT_TYPE
+define Build/mkubntkernelimage
+ rm -rf $(KDIR_TMP)/ubnt-$(KERNEL_IMAGE)/image && \
+ mkdir -p $(KDIR_TMP)/ubnt-$(KERNEL_IMAGE)/image && \
+ cp $@ $(KDIR_TMP)/ubnt-$(KERNEL_IMAGE)/image/kernel0 && \
+ $(STAGING_DIR_HOST)/bin/mkfs.jffs2 \
+ --pad --big-endian --squash-uids -v -e 64KiB \
+ -o [email protected] \
+ -d $(KDIR_TMP)/ubnt-$(KERNEL_IMAGE)/image \
+ 2>&1 && \
+ $(STAGING_DIR_HOST)/bin/padjffs2 [email protected] -J 64
+ -rm -rf $(KDIR_TMP)/ubnt-$(KERNEL_IMAGE)/image
+ @mv [email protected] $@
+endef
+
define Device/Default
BOARDNAME :=
DEVICE_PROFILE = $$(BOARDNAME)
--
2.4.2
_______________________________________________
openwrt-devel mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel