mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-25 00:11:13 +00:00
ar71xx: build relocate stub for generic and legacy images
Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be> Acked-by: John Crispin <john@phrozen.org>
This commit is contained in:
parent
e19427bd79
commit
6b0d279ca5
@ -79,8 +79,11 @@ define Build/loader-okli
|
|||||||
endef
|
endef
|
||||||
|
|
||||||
define Build/relocate-kernel
|
define Build/relocate-kernel
|
||||||
|
rm -rf $(KDIR)/relocate
|
||||||
|
$(CP) ../../generic/image/relocate $(KDIR)
|
||||||
|
$(MAKE) -C $(KDIR)/relocate KERNEL_ADDR=$(KERNEL_LOADADDR) CROSS_COMPILE=$(TARGET_CROSS)
|
||||||
( \
|
( \
|
||||||
dd if=$(KDIR)/relocate.bin bs=32 conv=sync && \
|
dd if=$(KDIR)/relocate/loader.bin bs=32 conv=sync && \
|
||||||
perl -e '@s = stat("$@"); print pack("N", @s[7])' && \
|
perl -e '@s = stat("$@"); print pack("N", @s[7])' && \
|
||||||
cat "$@" \
|
cat "$@" \
|
||||||
) > "$@.new"
|
) > "$@.new"
|
||||||
|
@ -1097,12 +1097,6 @@ ifneq ($(CONFIG_TARGET_ROOTFS_INITRAMFS),)
|
|||||||
$(call Image/BuildLoader,generic,elf,,,-initramfs)
|
$(call Image/BuildLoader,generic,elf,,,-initramfs)
|
||||||
endif
|
endif
|
||||||
$(call Image/BuildLoader,generic,elf)
|
$(call Image/BuildLoader,generic,elf)
|
||||||
|
|
||||||
# Note: not only used for legacy images
|
|
||||||
rm -rf $(KDIR)/relocate
|
|
||||||
$(CP) ../../generic/image/relocate $(KDIR)
|
|
||||||
$(MAKE) -C $(KDIR)/relocate KERNEL_ADDR=$(KERNEL_LOADADDR) CROSS_COMPILE=$(TARGET_CROSS)
|
|
||||||
$(CP) $(KDIR)/relocate/loader.bin $(KDIR)/relocate.bin
|
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Image/Prepare/Profile
|
define Image/Prepare/Profile
|
||||||
|
Loading…
Reference in New Issue
Block a user