[OpenWrt-Devel] [PATCH] bcm53xx: image: fixed Makefile to avoid broken build entered with last include/image.mk changes

Alexey N. Vinogradov a.n.vinogradov at gmail.com
Fri Nov 7 01:03:23 EST 2014


The last changes in image.mk changed build order and targets. Now
squashfs is not build 'always', and even if it is defined in the config,
it will be built after Image/Build/Initramfs. So, the last will fail
(because root.squashfs is reffered in ubinize.cfg). Note that with this
patch you still need to set 'rootfs - squashfs' in the config, since
include/image.mk still refer to it's parameters.

Signed-off-by: Alexey N Vinogradov <a.n.vinogradov at gmail.com>
---
diff --git a/target/linux/bcm53xx/image/Makefile b/target/linux/bcm53xx/image/Makefile
index b2fafd9..1f011ff 100644
--- a/target/linux/bcm53xx/image/Makefile
+++ b/target/linux/bcm53xx/image/Makefile
@@ -91,6 +91,7 @@ define Image/Build
 endef
 
 define Image/Build/Initramfs
+	$(call Image/mkfs/squashfs)
 	$(call Image/Build,initramfs)
 endef
 
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel



More information about the openwrt-devel mailing list