Skip to content

Commit

Permalink
Merge tag 'csky-for-linus-4.20-fixup-dtb' of https://github.com/c-sky…
Browse files Browse the repository at this point in the history
…/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
  • Loading branch information
Linus Torvalds committed Nov 1, 2018
2 parents eb7046e + e8d0c9a commit 5c99a8d
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 31 deletions.
10 changes: 1 addition & 9 deletions arch/csky/Kconfig.debug
Original file line number Diff line number Diff line change
@@ -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
13 changes: 1 addition & 12 deletions arch/csky/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -65,26 +65,15 @@ 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


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)'
Expand Down
10 changes: 0 additions & 10 deletions arch/csky/boot/dts/Makefile
Original file line number Diff line number Diff line change
@@ -1,13 +1,3 @@
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

0 comments on commit 5c99a8d

Please sign in to comment.