[LEDE-DEV] [PATCH 5/6] kirkwood: Add check-size when append-kernel is used
Chris Blake
chrisrblake93 at gmail.com
Sun Sep 11 21:33:05 PDT 2016
When append-kernel is used and a KERNEL_SIZE is defined, we need to make
sure that our kernel fits within it's partition size.
Signed-off-by: Chris Blake <chrisrblake93 at gmail.com>
---
target/linux/kirkwood/image/Makefile | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/target/linux/kirkwood/image/Makefile b/target/linux/kirkwood/image/Makefile
index 33eaa4f..92d32cb 100644
--- a/target/linux/kirkwood/image/Makefile
+++ b/target/linux/kirkwood/image/Makefile
@@ -59,7 +59,7 @@ define Device/linksys-audi
FILESYSTEMS := squashfs
PROFILES := Generic AUDI
IMAGES += factory.bin
- IMAGE/factory.bin := append-kernel $$$$(KERNEL_SIZE) | append-ubi
+ IMAGE/factory.bin := append-kernel $$$$(KERNEL_SIZE) | check-size $$(KERNEL_SIZE) | append-ubi
endef
define Device/linksys-viper
@@ -68,7 +68,7 @@ define Device/linksys-viper
FILESYSTEMS := squashfs
PROFILES := Generic VIPER
IMAGES += factory.bin
- IMAGE/factory.bin := append-kernel $$$$(KERNEL_SIZE) | append-ubi
+ IMAGE/factory.bin := append-kernel $$$$(KERNEL_SIZE) | check-size $$(KERNEL_SIZE) | append-ubi
endef
define Image/BuildKernel/Template
--
2.7.4
More information about the Lede-dev
mailing list