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

Daniel González Cabanelas dgcbueu at gmail.com
Sun Jun 7 04:55:53 EDT 2020

Not all CFEs will need to relocate the kernel (i.e H500-s), therefore
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>
Changes in v2: refresh
Changes in v3: none
Changes in v4: none
Changes in v5: none

 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 c962e531a9..0593dacb44 100644
--- a/target/linux/bcm63xx/image/Makefile
+++ b/target/linux/bcm63xx/image/Makefile
@@ -172,8 +172,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:

openwrt-devel mailing list
openwrt-devel at lists.openwrt.org

More information about the openwrt-devel mailing list