hc
2023-12-11 d2ccde1c8e90d38cee87a1b0309ad2827f3fd30d
kernel/arch/nios2/boot/Makefile
....@@ -20,7 +20,7 @@
2020 $(obj)/vmlinux.gz: $(obj)/vmlinux.bin FORCE
2121 $(call if_changed,gzip)
2222
23
-$(obj)/vmImage: $(obj)/vmlinux.gz
23
+$(obj)/vmImage: $(obj)/vmlinux.gz FORCE
2424 $(call if_changed,uimage)
2525 @$(kecho) 'Kernel: $@ is ready'
2626
....@@ -30,28 +30,6 @@
3030
3131 $(obj)/compressed/vmlinux: $(obj)/vmlinux.gz FORCE
3232 $(Q)$(MAKE) $(build)=$(obj)/compressed $@
33
-
34
-# Rule to build device tree blobs
35
-DTB_SRC := $(patsubst "%",%,$(CONFIG_NIOS2_DTB_SOURCE))
36
-
37
-# Make sure the generated dtb gets removed during clean
38
-extra-$(CONFIG_NIOS2_DTB_SOURCE_BOOL) += system.dtb
39
-
40
-$(obj)/system.dtb: $(DTB_SRC) FORCE
41
- $(call cmd,dtc)
42
-
43
-# Ensure system.dtb exists
44
-$(obj)/linked_dtb.o: $(obj)/system.dtb
45
-
46
-obj-$(CONFIG_NIOS2_DTB_SOURCE_BOOL) += linked_dtb.o
47
-
48
-targets += $(dtb-y)
49
-
50
-# Rule to build device tree blobs with make command
51
-$(obj)/%.dtb: $(src)/dts/%.dts FORCE
52
- $(call if_changed_dep,dtc)
53
-
54
-$(obj)/dtbs: $(addprefix $(obj)/, $(dtb-y))
5533
5634 install:
5735 sh $(srctree)/$(src)/install.sh $(KERNELRELEASE) $(BOOTIMAGE) System.map "$(INSTALL_PATH)"