|
@@ -2,21 +2,10 @@
|
|
|
# arch/microblaze/boot/Makefile
|
|
|
#
|
|
|
|
|
|
-obj-y += linked_dtb.o
|
|
|
-
|
|
|
targets := linux.bin linux.bin.gz simpleImage.%
|
|
|
|
|
|
OBJCOPYFLAGS := -R .note -R .comment -R .note.gnu.build-id -O binary
|
|
|
|
|
|
-# 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)
|
|
@@ -45,10 +34,4 @@ $(obj)/simpleImage.%: vmlinux FORCE
|
|
|
@echo 'Kernel: $@ is ready' ' (#'`cat .version`')'
|
|
|
|
|
|
|
|
|
-# Rule to build device tree blobs
|
|
|
-DTC_FLAGS := -p 1024
|
|
|
-
|
|
|
-$(obj)/%.dtb: $(src)/dts/%.dts FORCE
|
|
|
- $(call if_changed_dep,dtc)
|
|
|
-
|
|
|
-clean-files += *.dtb simpleImage.*.unstrip linux.bin.ub
|
|
|
+clean-files += simpleImage.*.unstrip linux.bin.ub
|