aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/imx6/image/Makefile
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@nbd.name>2016-07-31 18:34:31 +0200
committerFelix Fietkau <nbd@nbd.name>2016-07-31 19:35:05 +0200
commit468a9b7a7744478e6225816aa6153c9db0155810 (patch)
treef19f7567d69f26a436aa8fa611d635fdfebc5246 /target/linux/imx6/image/Makefile
parent1448501558812742e16b21bc5a297ba9f1003232 (diff)
downloadupstream-468a9b7a7744478e6225816aa6153c9db0155810.tar.gz
upstream-468a9b7a7744478e6225816aa6153c9db0155810.tar.bz2
upstream-468a9b7a7744478e6225816aa6153c9db0155810.zip
imx6: use ubinize-image.sh to fix build with per-device rootfs
Signed-off-by: Felix Fietkau <nbd@nbd.name>
Diffstat (limited to 'target/linux/imx6/image/Makefile')
-rw-r--r--target/linux/imx6/image/Makefile18
1 files changed, 4 insertions, 14 deletions
diff --git a/target/linux/imx6/image/Makefile b/target/linux/imx6/image/Makefile
index 9122d9673a..a7d68fbe97 100644
--- a/target/linux/imx6/image/Makefile
+++ b/target/linux/imx6/image/Makefile
@@ -51,20 +51,10 @@ define Build/ubi-boot-overlay
$(BIN_DIR)/$(IMG_PREFIX)-$(DEVICE_NAME)-bootfs_$(word 1, $(1)).ubifs
# ubi
- rm -rf p $(KDIR)/$(DEVICE_NAME)_$(word 1, $(1))
- mkdir -p $(KDIR)/$(DEVICE_NAME)_$(word 1, $(1))
- $(CP) $(word 2, $^) \
- $(KDIR)/$(DEVICE_NAME)_$(word 1, $(1))/
- $(CP) $(KDIR)/boot-$(DEVICE_NAME)-bootfs_$(word 1, $(1)).ubifs \
- $(KDIR)/$(DEVICE_NAME)_$(word 1, $(1))/boot.ubifs
- $(CP) ./ubinize-$(DEVICE_NAME).cfg \
- $(KDIR)/$(DEVICE_NAME)_$(word 1, $(1))/ubinize.cfg
- ( cd $(KDIR)/$(DEVICE_NAME)_$(word 1, $(1)); \
- $(STAGING_DIR_HOST)/bin/ubinize \
- -m $(word 2, $(1)) -p $(word 4, $(1)) -s $(word 2, $(1)) \
- -o $@ \
- ubinize.cfg \
- )
+ sh $(TOPDIR)/scripts/ubinize-image.sh \
+ --part boot=$(KDIR)/boot-$(DEVICE_NAME)-bootfs_$(word 1, $(1)).ubifs=15 \
+ $(IMAGE_ROOTFS) $@ \
+ -m $(word 2, $(1)) -p $(word 4, $(1)) -s $(word 2, $(1))
endef
define Build/bootfs.tar.gz