From c4c14c3bd177ea769fee938674f73a8ec0cdd47a Mon Sep 17 00:00:00 2001 From: Guo Ren Date: Tue, 30 Oct 2018 18:42:32 +0800 Subject: csky: remove builtin-dtb Kbuild Remove the builtin-dtb implementation in arch/csky. Signed-off-by: Guo Ren Reviewed-by: Rob Herring Reviewed-by: Arnd Bergmann --- arch/csky/Kconfig.debug | 10 +--------- arch/csky/Makefile | 2 -- arch/csky/boot/dts/Makefile | 7 ------- 3 files changed, 1 insertion(+), 18 deletions(-) diff --git a/arch/csky/Kconfig.debug b/arch/csky/Kconfig.debug index 48cf6ff9df4a..22a162cd99e8 100644 --- a/arch/csky/Kconfig.debug +++ b/arch/csky/Kconfig.debug @@ -1,9 +1 @@ -menu "C-SKY Debug Options" -config CSKY_BUILTIN_DTB - string "Use kernel builtin dtb" - help - User could define the dtb instead of the one which is passed from - bootloader. - Sometimes for debug, we want to use a built-in dtb and then we needn't - modify bootloader at all. -endmenu +# dummy file, do not delete diff --git a/arch/csky/Makefile b/arch/csky/Makefile index 67a4ae1fba2b..91f72224f4b9 100644 --- a/arch/csky/Makefile +++ b/arch/csky/Makefile @@ -65,9 +65,7 @@ libs-y += arch/csky/lib/ \ $(shell $(CC) $(KBUILD_CFLAGS) $(KCFLAGS) -print-libgcc-file-name) boot := arch/csky/boot -ifneq '$(CONFIG_CSKY_BUILTIN_DTB)' '""' core-y += $(boot)/dts/ -endif all: zImage diff --git a/arch/csky/boot/dts/Makefile b/arch/csky/boot/dts/Makefile index 305e81a5e91e..19a7f028ee20 100644 --- a/arch/csky/boot/dts/Makefile +++ b/arch/csky/boot/dts/Makefile @@ -1,13 +1,6 @@ dtstree := $(srctree)/$(src) -ifneq '$(CONFIG_CSKY_BUILTIN_DTB)' '""' -builtindtb-y := $(patsubst "%",%,$(CONFIG_CSKY_BUILTIN_DTB)) -dtb-y += $(builtindtb-y).dtb -obj-y += $(builtindtb-y).dtb.o -.SECONDARY: $(obj)/$(builtindtb-y).dtb.S -else dtb-y := $(patsubst $(dtstree)/%.dts,%.dtb, $(wildcard $(dtstree)/*.dts)) -endif always += $(dtb-y) clean-files += *.dtb *.dtb.S -- cgit v1.2.3 From e8d0c9a726cd1eae410148fcc6a1db23019f0334 Mon Sep 17 00:00:00 2001 From: Guo Ren Date: Tue, 30 Oct 2018 18:46:47 +0800 Subject: csky: use common dtb build rules Remove the Kbuild rules in arch/csky and use common dtb build rules. This modification is based on: commit 37c8a5fafa3b ("kbuild: consolidate Devicetree dtb build rules") Signed-off-by: Guo Ren Reviewed-by: Rob Herring Acked-by: Arnd Bergmann --- arch/csky/Makefile | 11 +---------- arch/csky/boot/dts/Makefile | 3 --- 2 files changed, 1 insertion(+), 13 deletions(-) diff --git a/arch/csky/Makefile b/arch/csky/Makefile index 91f72224f4b9..c639fc167895 100644 --- a/arch/csky/Makefile +++ b/arch/csky/Makefile @@ -69,20 +69,11 @@ core-y += $(boot)/dts/ all: zImage - -dtbs: scripts - $(Q)$(MAKE) $(build)=$(boot)/dts - -%.dtb %.dtb.S %.dtb.o: scripts - $(Q)$(MAKE) $(build)=$(boot)/dts $(boot)/dts/$@ - -zImage Image uImage: vmlinux dtbs +zImage Image uImage: vmlinux $(Q)$(MAKE) $(build)=$(boot) $(boot)/$@ archclean: $(Q)$(MAKE) $(clean)=$(boot) - $(Q)$(MAKE) $(clean)=$(boot)/dts - rm -rf arch/csky/include/generated define archhelp echo '* zImage - Compressed kernel image (arch/$(ARCH)/boot/zImage)' diff --git a/arch/csky/boot/dts/Makefile b/arch/csky/boot/dts/Makefile index 19a7f028ee20..c57ad3c880bf 100644 --- a/arch/csky/boot/dts/Makefile +++ b/arch/csky/boot/dts/Makefile @@ -1,6 +1,3 @@ dtstree := $(srctree)/$(src) dtb-y := $(patsubst $(dtstree)/%.dts,%.dtb, $(wildcard $(dtstree)/*.dts)) - -always += $(dtb-y) -clean-files += *.dtb *.dtb.S -- cgit v1.2.3