[OpenWrt-Devel] [PATCH 3/4] bcm63xx: image: allow to pass the addr to the NAND kernel header

Daniel González Cabanelas dgcbueu at gmail.com
Wed Jun 3 18:48:18 EDT 2020


Not all CFEs will need to relocate the kernel (i.e H500-s), thererefore we'll need
to pass a different address and not the LOADER_ENTRY

Let to pass the addr to the image creation when neccessary.

Signed-off-by: Daniel González Cabanelas <dgcbueu at gmail.com>
---
 target/linux/bcm63xx/image/Makefile | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/target/linux/bcm63xx/image/Makefile b/target/linux/bcm63xx/image/Makefile
index e57b99391f..88de71319c 100644
--- a/target/linux/bcm63xx/image/Makefile
+++ b/target/linux/bcm63xx/image/Makefile
@@ -196,8 +196,8 @@ define Build/cfe-jffs2-kernel
 	$(TOPDIR)/scripts/cfe-bin-header.py \
 		--input-file $@ \
 		--output-file $@-kernel/vmlinux.lz \
-		--load-addr $(LOADER_ENTRY) \
-		--entry-addr $(LOADER_ENTRY)
+		--load-addr $(if $(1),$(1),$(LOADER_ENTRY)) \
+		--entry-addr $(if $(1),$(1),$(LOADER_ENTRY))
 
 	# The JFFS2 partition creation should result in the following
 	# layout:
-- 
2.27.0





_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


More information about the openwrt-devel mailing list