mirror of
https://github.com/FEX-Emu/linux.git
synced 2024-12-25 10:59:05 +00:00
6fa114e0f1
If CONFIG_INITRAMFS_SOURCE is set, "scripts/gen_initramfs_list.sh" checks if the cpio image exists. Remove the duplicate check from the Makefile. Remove the "clean-kernel" variable which is unused in the Makefile and is not used by the Kbuild. Signed-off-by: Arun Bhanu <arun@bhanu.net> Signed-off-by: Michal Simek <monstr@monstr.eu>
64 lines
1.7 KiB
Makefile
64 lines
1.7 KiB
Makefile
#
|
|
# arch/microblaze/boot/Makefile
|
|
#
|
|
|
|
MKIMAGE := $(srctree)/scripts/mkuboot.sh
|
|
|
|
obj-y += linked_dtb.o
|
|
|
|
targets := linux.bin linux.bin.gz simpleImage.%
|
|
|
|
OBJCOPYFLAGS := -O binary
|
|
|
|
# Where the DTS files live
|
|
dtstree := $(srctree)/$(src)/dts
|
|
|
|
# Ensure system.dtb exists
|
|
$(obj)/linked_dtb.o: $(obj)/system.dtb
|
|
|
|
# Generate system.dtb from $(DTB).dtb
|
|
ifneq ($(DTB),system)
|
|
$(obj)/system.dtb: $(obj)/$(DTB).dtb
|
|
$(call if_changed,cp)
|
|
endif
|
|
|
|
$(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 _start -K _end -K __log_buf -K _fdt_start vmlinux -o $@
|
|
|
|
quiet_cmd_uimage = UIMAGE $@.ub
|
|
cmd_uimage = $(CONFIG_SHELL) $(MKIMAGE) -A microblaze -O linux -T kernel \
|
|
-C none -n 'Linux-$(KERNELRELEASE)' \
|
|
-a $(CONFIG_KERNEL_BASE_ADDR) -e $(CONFIG_KERNEL_BASE_ADDR) \
|
|
-d $@ $@.ub
|
|
|
|
$(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`')'
|
|
|
|
# Rule to build device tree blobs
|
|
DTC = $(objtree)/scripts/dtc/dtc
|
|
|
|
# Rule to build device tree blobs
|
|
quiet_cmd_dtc = DTC $@
|
|
cmd_dtc = $(DTC) -O dtb -o $(obj)/$*.dtb -b 0 -p 1024 $(dtstree)/$*.dts
|
|
|
|
$(obj)/%.dtb: $(dtstree)/%.dts FORCE
|
|
$(call if_changed,dtc)
|
|
|
|
clean-files += *.dtb simpleImage.*.unstrip linux.bin.ub
|