mirror of
https://github.com/hanwckf/immortalwrt-mt798x.git
synced 2025-01-10 11:09:57 +08:00
ramips: simplify mkimage kernel loadaddr/entry handling
Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 43906
This commit is contained in:
parent
54602a82a4
commit
e66f1292aa
@ -22,21 +22,9 @@ define Image/Build/Initramfs
|
|||||||
$(call Image/Build/Profile/$(PROFILE),initramfs)
|
$(call Image/Build/Profile/$(PROFILE),initramfs)
|
||||||
endef
|
endef
|
||||||
|
|
||||||
ifeq ($(CONFIG_SOC_RT288X),y)
|
loadaddr-y := 0x80000000
|
||||||
define kernel_entry
|
loadaddr-$(CONFIG_TARGET_ramips_rt288x) := 0x88000000
|
||||||
-a 0x88000000 -e 0x88000000
|
loadaddr-$(CONFIG_TARGET_ramips_mt7621) := 0x80001000
|
||||||
endef
|
|
||||||
else
|
|
||||||
ifeq ($(CONFIG_SOC_MT7621),y)
|
|
||||||
define kernel_entry
|
|
||||||
-a 0x80001000 -e 0x80001000
|
|
||||||
endef
|
|
||||||
else
|
|
||||||
define kernel_entry
|
|
||||||
-a 0x80000000 -e 0x80000000
|
|
||||||
endef
|
|
||||||
endif
|
|
||||||
endif
|
|
||||||
|
|
||||||
define MkCombineduImage
|
define MkCombineduImage
|
||||||
$(call PatchKernelLzma,$(2),$(3))
|
$(call PatchKernelLzma,$(2),$(3))
|
||||||
@ -59,7 +47,7 @@ endef
|
|||||||
# $(3), output filename
|
# $(3), output filename
|
||||||
define MkImage
|
define MkImage
|
||||||
$(eval imagename=$(if $(4),$(4),MIPS OpenWrt Linux-$(LINUX_VERSION)))
|
$(eval imagename=$(if $(4),$(4),MIPS OpenWrt Linux-$(LINUX_VERSION)))
|
||||||
-mkimage -A mips -O linux -T kernel -C $(1) $(call kernel_entry)\
|
-mkimage -A mips -O linux -T kernel -C $(1) -a $(loadaddr-y) -e $(loadaddr-y) \
|
||||||
-n "$(imagename)" \
|
-n "$(imagename)" \
|
||||||
-d $(2) $(3)
|
-d $(2) $(3)
|
||||||
endef
|
endef
|
||||||
|
Loading…
x
Reference in New Issue
Block a user