mirror of
https://github.com/brain-hackers/u-boot-brain
synced 2024-06-09 23:36:03 +09:00
Makefile: add rule to generate u-boot-swap.bin
This rule generates an u-boot binary file where the byte endianness is swapped. This will be used by the MIPS Malta Little-Endian variants to be able to boot with Qemu. The Qemu Malta Machine expects the firmware in Big-Endian order. Signed-off-by: Daniel Schwierzeck <daniel.schwierzeck@gmail.com>
This commit is contained in:
parent
753a8922f8
commit
b8cecd0c15
6
Makefile
6
Makefile
|
@ -1733,6 +1733,12 @@ u-boot-mtk.bin: u-boot.bin FORCE
|
||||||
$(call if_changed,mkimage)
|
$(call if_changed,mkimage)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
quiet_cmd_endian_swap = SWAP $@
|
||||||
|
cmd_endian_swap = $(srctree)/tools/endian-swap.py $< $@
|
||||||
|
|
||||||
|
u-boot-swap.bin: u-boot.bin FORCE
|
||||||
|
$(call if_changed,endian_swap)
|
||||||
|
|
||||||
ARCH_POSTLINK := $(wildcard $(srctree)/arch/$(ARCH)/Makefile.postlink)
|
ARCH_POSTLINK := $(wildcard $(srctree)/arch/$(ARCH)/Makefile.postlink)
|
||||||
|
|
||||||
# Rule to link u-boot
|
# Rule to link u-boot
|
||||||
|
|
Loading…
Reference in New Issue
Block a user