mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-19 02:34:01 +08:00
300db34a72
The current rules have the .dtb files build in a different directory from the .dts files. This patch changes microblaze to use the generic dtb rule which builds .dtb files in the same directory as the source .dts. This requires moving parts of arch/microblaze/boot/Makefile into newly created arch/microblaze/boot/dts/Makefile, and updating arch/microblaze/Makefile to call the new Makefile. linked_dtb.S is also moved into boot/dts/ since it's used by rules that were moved. Cc: Michal Simek <monstr@monstr.eu> Cc: microblaze-uclinux@itee.uq.edu.au Signed-off-by: Stephen Warren <swarren@nvidia.com> Signed-off-by: Rob Herring <rob.herring@calxeda.com>
38 lines
961 B
Makefile
38 lines
961 B
Makefile
#
|
|
# arch/microblaze/boot/Makefile
|
|
#
|
|
|
|
targets := linux.bin linux.bin.gz simpleImage.%
|
|
|
|
OBJCOPYFLAGS := -R .note -R .comment -R .note.gnu.build-id -O binary
|
|
|
|
$(obj)/linux.bin: vmlinux FORCE
|
|
$(call if_changed,objcopy)
|
|
$(call if_changed,uimage)
|
|
@echo 'Kernel: $@ is ready' ' (#'`cat .version`')'
|
|
|
|
$(obj)/linux.bin.gz: $(obj)/linux.bin FORCE
|
|
$(call if_changed,gzip)
|
|
@echo 'Kernel: $@ is ready' ' (#'`cat .version`')'
|
|
|
|
quiet_cmd_cp = CP $< $@$2
|
|
cmd_cp = cat $< >$@$2 || (rm -f $@ && echo false)
|
|
|
|
quiet_cmd_strip = STRIP $@
|
|
cmd_strip = $(STRIP) -K microblaze_start -K _end -K __log_buf \
|
|
-K _fdt_start vmlinux -o $@
|
|
|
|
UIMAGE_IN = $@
|
|
UIMAGE_OUT = $@.ub
|
|
UIMAGE_LOADADDR = $(CONFIG_KERNEL_BASE_ADDR)
|
|
|
|
$(obj)/simpleImage.%: vmlinux FORCE
|
|
$(call if_changed,cp,.unstrip)
|
|
$(call if_changed,objcopy)
|
|
$(call if_changed,uimage)
|
|
$(call if_changed,strip)
|
|
@echo 'Kernel: $@ is ready' ' (#'`cat .version`')'
|
|
|
|
|
|
clean-files += simpleImage.*.unstrip linux.bin.ub
|