[openwrt/openwrt] ramips: make the relocation address configurable

LEDE Commits lede-commits at lists.infradead.org
Sat Jan 29 06:51:30 PST 2022


mans0n pushed a commit to openwrt/openwrt.git, branch master:
https://git.openwrt.org/03aa57d7ab7a50ca022a26d087d6c64740232a3b

commit 03aa57d7ab7a50ca022a26d087d6c64740232a3b
Author: Sungbo Eo <mans0n at gorani.run>
AuthorDate: Sat Jan 29 23:24:07 2022 +0900

    ramips: make the relocation address configurable
    
    If no argument is given to relocate-kernel, KERNEL_LOADADDR will be used
    just as before.
    
    This is a preparation for ramips support of ipTIME AX2004M.
    
    Signed-off-by: Sungbo Eo <mans0n at gorani.run>
---
 target/linux/ramips/image/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/target/linux/ramips/image/Makefile b/target/linux/ramips/image/Makefile
index ac256cf1ae..241b620941 100644
--- a/target/linux/ramips/image/Makefile
+++ b/target/linux/ramips/image/Makefile
@@ -113,7 +113,7 @@ endef
 define Build/relocate-kernel
 	rm -rf $@.relocate
 	$(CP) ../../generic/image/relocate $@.relocate
-	$(MAKE) -C $@.relocate KERNEL_ADDR=$(KERNEL_LOADADDR) CROSS_COMPILE=$(TARGET_CROSS)
+	$(MAKE) -C $@.relocate KERNEL_ADDR=$(if $(1),$(1),$(KERNEL_LOADADDR)) CROSS_COMPILE=$(TARGET_CROSS)
 	( \
 		dd if=$@.relocate/loader.bin bs=32 conv=sync && \
 		perl -e '@s = stat("$@"); print pack("V", @s[7])' && \



More information about the lede-commits mailing list