Commit 6fa114e0 authored by Arun Bhanu's avatar Arun Bhanu Committed by Michal Simek

microblaze: Makefile cleanups

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: default avatarArun Bhanu <arun@bhanu.net>
Signed-off-by: default avatarMichal Simek <monstr@monstr.eu>
parent 8a8804f1
...@@ -23,8 +23,6 @@ $(obj)/system.dtb: $(obj)/$(DTB).dtb ...@@ -23,8 +23,6 @@ $(obj)/system.dtb: $(obj)/$(DTB).dtb
endif endif
$(obj)/linux.bin: vmlinux FORCE $(obj)/linux.bin: vmlinux FORCE
[ -n $(CONFIG_INITRAMFS_SOURCE) ] && [ ! -e $(CONFIG_INITRAMFS_SOURCE) ] && \
touch $(CONFIG_INITRAMFS_SOURCE) || echo "No CPIO image"
$(call if_changed,objcopy) $(call if_changed,objcopy)
$(call if_changed,uimage) $(call if_changed,uimage)
@echo 'Kernel: $@ is ready' ' (#'`cat .version`')' @echo 'Kernel: $@ is ready' ' (#'`cat .version`')'
...@@ -62,6 +60,4 @@ quiet_cmd_dtc = DTC $@ ...@@ -62,6 +60,4 @@ quiet_cmd_dtc = DTC $@
$(obj)/%.dtb: $(dtstree)/%.dts FORCE $(obj)/%.dtb: $(dtstree)/%.dts FORCE
$(call if_changed,dtc) $(call if_changed,dtc)
clean-kernel += linux.bin linux.bin.gz simpleImage.*
clean-files += *.dtb simpleImage.*.unstrip linux.bin.ub clean-files += *.dtb simpleImage.*.unstrip linux.bin.ub
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment