Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

Merge tag 'csky-for-linus-4.20-fixup-dtb' of https://github.com/c-sky/csky-linux

Pull csky dtb fixups from Guo Ren:
"These fix the csky dtb Kbuild to follow the new Devicetree dtb build
rules"

* tag 'csky-for-linus-4.20-fixup-dtb' of https://github.com/c-sky/csky-linux:
csky: use common dtb build rules
csky: remove builtin-dtb Kbuild

+2 -31
+1 -9
arch/csky/Kconfig.debug
··· 1 - menu "C-SKY Debug Options" 2 - config CSKY_BUILTIN_DTB 3 - string "Use kernel builtin dtb" 4 - help 5 - User could define the dtb instead of the one which is passed from 6 - bootloader. 7 - Sometimes for debug, we want to use a built-in dtb and then we needn't 8 - modify bootloader at all. 9 - endmenu 1 + # dummy file, do not delete
+1 -12
arch/csky/Makefile
··· 65 65 $(shell $(CC) $(KBUILD_CFLAGS) $(KCFLAGS) -print-libgcc-file-name) 66 66 67 67 boot := arch/csky/boot 68 - ifneq '$(CONFIG_CSKY_BUILTIN_DTB)' '""' 69 68 core-y += $(boot)/dts/ 70 - endif 71 69 72 70 all: zImage 73 71 74 - 75 - dtbs: scripts 76 - $(Q)$(MAKE) $(build)=$(boot)/dts 77 - 78 - %.dtb %.dtb.S %.dtb.o: scripts 79 - $(Q)$(MAKE) $(build)=$(boot)/dts $(boot)/dts/$@ 80 - 81 - zImage Image uImage: vmlinux dtbs 72 + zImage Image uImage: vmlinux 82 73 $(Q)$(MAKE) $(build)=$(boot) $(boot)/$@ 83 74 84 75 archclean: 85 76 $(Q)$(MAKE) $(clean)=$(boot) 86 - $(Q)$(MAKE) $(clean)=$(boot)/dts 87 - rm -rf arch/csky/include/generated 88 77 89 78 define archhelp 90 79 echo '* zImage - Compressed kernel image (arch/$(ARCH)/boot/zImage)'
-10
arch/csky/boot/dts/Makefile
··· 1 1 dtstree := $(srctree)/$(src) 2 2 3 - ifneq '$(CONFIG_CSKY_BUILTIN_DTB)' '""' 4 - builtindtb-y := $(patsubst "%",%,$(CONFIG_CSKY_BUILTIN_DTB)) 5 - dtb-y += $(builtindtb-y).dtb 6 - obj-y += $(builtindtb-y).dtb.o 7 - .SECONDARY: $(obj)/$(builtindtb-y).dtb.S 8 - else 9 3 dtb-y := $(patsubst $(dtstree)/%.dts,%.dtb, $(wildcard $(dtstree)/*.dts)) 10 - endif 11 - 12 - always += $(dtb-y) 13 - clean-files += *.dtb *.dtb.S