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 <dgcb...@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@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel

Reply via email to