mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-20 11:13:58 +08:00
2a02bc166d
The current rules have the .dtb files build in a different directory from the .dts files. This patch changes xtensa to use the generic dtb rule which builds .dtb files in the same directory as the source .dts. This requires moving parts of arch/xtensa/boot/Makefile into newly created arch/xtensa/boot/dts/Makefile, and updating arch/xtensa/Makefile to call the new Makefile. Signed-off-by: Stephen Warren <swarren@nvidia.com> Signed-off-by: Chris Zankel <chris@zankel.net>
45 lines
1.2 KiB
Makefile
45 lines
1.2 KiB
Makefile
#
|
|
# arch/xtensa/boot/Makefile
|
|
#
|
|
# This file is subject to the terms and conditions of the GNU General Public
|
|
# License. See the file "COPYING" in the main directory of this archive
|
|
# for more details.
|
|
#
|
|
#
|
|
|
|
|
|
# KBUILD_CFLAGS used when building rest of boot (takes effect recursively)
|
|
KBUILD_CFLAGS += -fno-builtin -Iarch/$(ARCH)/boot/include
|
|
HOSTFLAGS += -Iarch/$(ARCH)/boot/include
|
|
|
|
BIG_ENDIAN := $(shell echo -e __XTENSA_EB__ | $(CC) -E - | grep -v "\#")
|
|
|
|
export ccflags-y
|
|
export BIG_ENDIAN
|
|
|
|
subdir-y := lib
|
|
|
|
# Subdirs for the boot loader(s)
|
|
|
|
bootdir-$(CONFIG_XTENSA_PLATFORM_ISS) += boot-elf
|
|
bootdir-$(CONFIG_XTENSA_PLATFORM_XT2000) += boot-redboot boot-elf boot-uboot
|
|
bootdir-$(CONFIG_XTENSA_PLATFORM_XTFPGA) += boot-redboot boot-elf boot-uboot
|
|
|
|
zImage Image: $(bootdir-y)
|
|
|
|
$(bootdir-y): $(addprefix $(obj)/,$(subdir-y)) \
|
|
$(addprefix $(obj)/,$(host-progs))
|
|
$(Q)$(MAKE) $(build)=$(obj)/$@ $(MAKECMDGOALS)
|
|
|
|
OBJCOPYFLAGS = --strip-all -R .comment -R .note.gnu.build-id -O binary
|
|
|
|
vmlinux.bin: vmlinux FORCE
|
|
$(call if_changed,objcopy)
|
|
|
|
vmlinux.bin.gz: vmlinux.bin FORCE
|
|
$(call if_changed,gzip)
|
|
|
|
boot-elf: vmlinux.bin
|
|
boot-redboot: vmlinux.bin.gz
|
|
boot-uboot: vmlinux.bin.gz
|