aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/bcm4908/image/Makefile
diff options
context:
space:
mode:
authorRafał Miłecki <rafal@milecki.pl>2021-01-21 13:23:56 +0100
committerRafał Miłecki <rafal@milecki.pl>2021-01-21 13:25:34 +0100
commite78d3e44dddaaa89e101b42574f13bc6aeb6b6ae (patch)
tree7d7dfbbe27302560a286a65890169726cc823fcd /target/linux/bcm4908/image/Makefile
parent4e1e18af653da81b07d3f12336925c82a07b0433 (diff)
downloadupstream-e78d3e44dddaaa89e101b42574f13bc6aeb6b6ae.tar.gz
upstream-e78d3e44dddaaa89e101b42574f13bc6aeb6b6ae.tar.bz2
upstream-e78d3e44dddaaa89e101b42574f13bc6aeb6b6ae.zip
bcm4908: append UBI with rootfs to device images
Also enable UBI kernel support. Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
Diffstat (limited to 'target/linux/bcm4908/image/Makefile')
-rw-r--r--target/linux/bcm4908/image/Makefile7
1 files changed, 4 insertions, 3 deletions
diff --git a/target/linux/bcm4908/image/Makefile b/target/linux/bcm4908/image/Makefile
index afe88e6902..d6b5f07e2a 100644
--- a/target/linux/bcm4908/image/Makefile
+++ b/target/linux/bcm4908/image/Makefile
@@ -23,7 +23,8 @@ define Build/bcm4908img
cp $(IMAGE_KERNEL) $@-bootfs/vmlinux.lz
$(STAGING_DIR_HOST)/bin/mkfs.jffs2 --pad --little-endian --squash-uids -v -e 128KiB -o $@-bootfs.jffs2 -d $@-bootfs -m none -n
- $(STAGING_DIR_HOST)/bin/bcm4908img create $@ -f $@-bootfs.jffs2
+ $(STAGING_DIR_HOST)/bin/bcm4908img create $@.new -f $@-bootfs.jffs2 -a 0x20000 -f $@
+ mv $@.new $@
endef
define Device/Default
@@ -43,7 +44,7 @@ define Device/asus_gt-ac5300
DEVICE_MODEL := GT-AC5300
DEVICE_DTS := broadcom/bcm4908/bcm4908-asus-gt-ac5300
IMAGES := bin
- IMAGE/bin := bcm4908img
+ IMAGE/bin := append-ubi | bcm4908img
endef
TARGET_DEVICES += asus_gt-ac5300
@@ -52,7 +53,7 @@ define Device/netgear_r8000p
DEVICE_MODEL := R8000P
DEVICE_DTS := broadcom/bcm4908/bcm4906-netgear-r8000p
IMAGES := bin
- IMAGE/bin := bcm4908img
+ IMAGE/bin := append-ubi | bcm4908img
endef
TARGET_DEVICES += netgear_r8000p