Browse Source

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 <[email protected]>
Sungbo Eo 4 years ago
parent
commit
03aa57d7ab
1 changed files with 1 additions and 1 deletions
  1. 1 1
      target/linux/ramips/image/Makefile

+ 1 - 1
target/linux/ramips/image/Makefile

@@ -113,7 +113,7 @@ endef
 define Build/relocate-kernel
 	rm -rf [email protected]
 	$(CP) ../../generic/image/relocate [email protected]
-	$(MAKE) -C [email protected] KERNEL_ADDR=$(KERNEL_LOADADDR) CROSS_COMPILE=$(TARGET_CROSS)
+	$(MAKE) -C [email protected] KERNEL_ADDR=$(if $(1),$(1),$(KERNEL_LOADADDR)) CROSS_COMPILE=$(TARGET_CROSS)
 	( \
 		dd [email protected]/loader.bin bs=32 conv=sync && \
 		perl -e '@s = stat("$@"); print pack("V", @s[7])' && \