[LEDE-DEV] [PATCH 4/6] ipq806x: Add check-size when append-kernel is used

Chris Blake chrisrblake93 at gmail.com
Sun Sep 11 21:33:04 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/ipq806x/image/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/target/linux/ipq806x/image/Makefile b/target/linux/ipq806x/image/Makefile
index daf910e..0fa881f 100644
--- a/target/linux/ipq806x/image/Makefile
+++ b/target/linux/ipq806x/image/Makefile
@@ -156,7 +156,7 @@ define Device/EA8500
 	PROFILES += $$(DEVICE_NAME)
 	BOARD_NAME := ea8500
 	IMAGES := factory.bin sysupgrade.tar
-	IMAGE/factory.bin := append-kernel | pad-to $$$${KERNEL_SIZE} | append-ubi
+	IMAGE/factory.bin := append-kernel | check-size $$(KERNEL_SIZE) | pad-to $$$${KERNEL_SIZE} | append-ubi
 	IMAGE/sysupgrade.tar := sysupgrade-tar
 	DEVICE_TITLE := Linksys EA8500
 	DEVICE_PACKAGES := ath10k-firmware-qca99x0
-- 
2.7.4




More information about the Lede-dev mailing list