--- zzzz-none-000/linux-3.10.107/arch/arm/boot/Makefile 2017-06-27 09:49:32.000000000 +0000 +++ vr9-7490-729/linux-3.10.107/arch/arm/boot/Makefile 2021-11-10 11:53:52.000000000 +0000 @@ -19,6 +19,11 @@ # ZRELADDR == virt_to_phys(PAGE_OFFSET + TEXT_OFFSET) # PARAMS_PHYS must be within 4MB of ZRELADDR # INITRD_PHYS must be in RAM + +ifeq ($(CONFIG_ARCH_IPQ806X_DT),y) +zreladdr-y=$(shell printf '0x%x' $$(( $(CONFIG_PHYS_OFFSET) + $(TEXT_OFFSET) ))) +endif + ZRELADDR := $(zreladdr-y) PARAMS_PHYS := $(params_phys-y) INITRD_PHYS := $(initrd_phys-y)