Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 664718a3 authored by Chris Smith's avatar Chris Smith Committed by Paul Mundt
Browse files

sh: Fix uImage load address in 32-bit mode.



Fix "make uImage" load and entry addresses in 32-bit mode.

Signed-off-by: default avatarChris Smith <chris.smith@st.com>
Signed-off-by: default avatarPaul Mundt <lethal@linux-sh.org>
parent 96e14e54
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -33,10 +33,16 @@ $(obj)/zImage: $(obj)/compressed/vmlinux FORCE
$(obj)/compressed/vmlinux: FORCE
	$(Q)$(MAKE) $(build)=$(obj)/compressed $@

ifeq ($(CONFIG_32BIT),y)
KERNEL_LOAD	:= $(shell /bin/bash -c 'printf "0x%08x" \
		     $$[$(CONFIG_PAGE_OFFSET)  + \
			$(CONFIG_ZERO_PAGE_OFFSET)]')
else
KERNEL_LOAD	:= $(shell /bin/bash -c 'printf "0x%08x" \
		     $$[$(CONFIG_PAGE_OFFSET)  + \
			$(CONFIG_MEMORY_START) + \
			$(CONFIG_ZERO_PAGE_OFFSET)]')
endif

KERNEL_ENTRY	:= $(shell /bin/bash -c 'printf "0x%08x" \
		     $$[$(CONFIG_PAGE_OFFSET)  + \