Skip to content

Commit

Permalink
Merge branch 'dt/kbuild' into dt/next
Browse files Browse the repository at this point in the history
  • Loading branch information
Rob Herring committed Nov 9, 2017
2 parents 48c926c + 7e7962d commit 27e8524
Show file tree
Hide file tree
Showing 68 changed files with 79 additions and 275 deletions.
44 changes: 23 additions & 21 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,38 +7,40 @@
# command after changing this file, to see if there are
# any tracked files which get ignored after the change.
#
# Normal rules
# Normal rules (sorted alphabetically)
#
.*
*.a
*.bin
*.bz2
*.c.[012]*.*
*.dtb
*.dtb.S
*.dwo
*.elf
*.gcno
*.gz
*.i
*.ko
*.ll
*.lst
*.lz4
*.lzma
*.lzo
*.mod.c
*.o
*.o.*
*.a
*.order
*.patch
*.s
*.ko
*.so
*.so.dbg
*.mod.c
*.i
*.lst
*.su
*.symtypes
*.order
*.elf
*.bin
*.tar
*.gz
*.bz2
*.lzma
*.xz
*.lz4
*.lzo
*.patch
*.gcno
*.ll
modules.builtin
Module.symvers
*.dwo
*.su
*.c.[012]*.*
modules.builtin

#
# Top-level generic files
Expand Down
1 change: 0 additions & 1 deletion Documentation/kbuild/makefiles.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1153,7 +1153,6 @@ When kbuild executes, the following steps are followed (roughly):

Example:
targets += $(dtb-y)
clean-files += *.dtb
DTC_FLAGS ?= -p 1024

--- 6.8 Custom kbuild commands
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -1544,7 +1544,7 @@ clean: $(clean-dirs)
$(call cmd,rmfiles)
@find $(if $(KBUILD_EXTMOD), $(KBUILD_EXTMOD), .) $(RCS_FIND_IGNORE) \
\( -name '*.[oas]' -o -name '*.ko' -o -name '.*.cmd' \
-o -name '*.ko.*' \
-o -name '*.ko.*' -o -name '*.dtb' -o -name '*.dtb.S' \
-o -name '*.dwo' \
-o -name '*.su' \
-o -name '.*.d' -o -name '.*.tmp' -o -name '*.mod.c' \
Expand Down
1 change: 0 additions & 1 deletion arch/arc/boot/.gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
*.dtb*
uImage
8 changes: 3 additions & 5 deletions arch/arc/boot/dts/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@ dtb-y := $(builtindtb-y).dtb

.SECONDARY: $(obj)/$(builtindtb-y).dtb.S

dtstree := $(srctree)/$(src)
dtb-$(CONFIG_OF_ALL_DTBS) := $(patsubst $(dtstree)/%.dts,%.dtb, $(wildcard $(dtstree)/*.dts))

always := $(dtb-y)
clean-files := *.dtb *.dtb.S
# for CONFIG_OF_ALL_DTBS test
dtstree := $(srctree)/$(src)
dtb- := $(patsubst $(dtstree)/%.dts,%.dtb, $(wildcard $(dtstree)/*.dts))
1 change: 0 additions & 1 deletion arch/arm/boot/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,3 @@ zImage
xipImage
bootpImage
uImage
*.dtb
6 changes: 0 additions & 6 deletions arch/arm/boot/dts/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -1069,9 +1069,3 @@ dtb-$(CONFIG_ARCH_ASPEED) += aspeed-bmc-opp-palmetto.dtb \
aspeed-bmc-opp-romulus.dtb \
aspeed-ast2500-evb.dtb
endif

dtstree := $(srctree)/$(src)
dtb-$(CONFIG_OF_ALL_DTBS) := $(patsubst $(dtstree)/%.dts,%.dtb, $(wildcard $(dtstree)/*.dts))

always := $(dtb-y)
clean-files := *.dtb
1 change: 0 additions & 1 deletion arch/arm64/boot/dts/.gitignore

This file was deleted.

58 changes: 25 additions & 33 deletions arch/arm64/boot/dts/Makefile
Original file line number Diff line number Diff line change
@@ -1,33 +1,25 @@
dts-dirs += actions
dts-dirs += al
dts-dirs += allwinner
dts-dirs += altera
dts-dirs += amd
dts-dirs += amlogic
dts-dirs += apm
dts-dirs += arm
dts-dirs += broadcom
dts-dirs += cavium
dts-dirs += exynos
dts-dirs += freescale
dts-dirs += hisilicon
dts-dirs += marvell
dts-dirs += mediatek
dts-dirs += nvidia
dts-dirs += qcom
dts-dirs += realtek
dts-dirs += renesas
dts-dirs += rockchip
dts-dirs += socionext
dts-dirs += sprd
dts-dirs += xilinx
dts-dirs += lg
dts-dirs += zte

subdir-y := $(dts-dirs)

dtstree := $(srctree)/$(src)

dtb-$(CONFIG_OF_ALL_DTBS) := $(patsubst $(dtstree)/%.dts,%.dtb, $(foreach d,$(dts-dirs), $(wildcard $(dtstree)/$(d)/*.dts)))

always := $(dtb-y)
subdir-y += actions
subdir-y += al
subdir-y += allwinner
subdir-y += altera
subdir-y += amd
subdir-y += amlogic
subdir-y += apm
subdir-y += arm
subdir-y += broadcom
subdir-y += cavium
subdir-y += exynos
subdir-y += freescale
subdir-y += hisilicon
subdir-y += marvell
subdir-y += mediatek
subdir-y += nvidia
subdir-y += qcom
subdir-y += realtek
subdir-y += renesas
subdir-y += rockchip
subdir-y += socionext
subdir-y += sprd
subdir-y += xilinx
subdir-y += lg
subdir-y += zte
4 changes: 0 additions & 4 deletions arch/arm64/boot/dts/actions/Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1 @@
dtb-$(CONFIG_ARCH_ACTIONS) += s900-bubblegum-96.dtb

always := $(dtb-y)
subdir-y := $(dts-dirs)
clean-files := *.dtb
4 changes: 0 additions & 4 deletions arch/arm64/boot/dts/al/Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1 @@
dtb-$(CONFIG_ARCH_ALPINE) += alpine-v2-evp.dtb

always := $(dtb-y)
subdir-y := $(dts-dirs)
clean-files := *.dtb
4 changes: 0 additions & 4 deletions arch/arm64/boot/dts/allwinner/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,3 @@ dtb-$(CONFIG_ARCH_SUNXI) += sun50i-h5-orangepi-pc2.dtb
dtb-$(CONFIG_ARCH_SUNXI) += sun50i-h5-orangepi-prime.dtb
dtb-$(CONFIG_ARCH_SUNXI) += sun50i-h5-orangepi-zero-plus2.dtb
dtb-$(CONFIG_ARCH_SUNXI) += sun50i-h5-nanopi-neo2.dtb

always := $(dtb-y)
subdir-y := $(dts-dirs)
clean-files := *.dtb
4 changes: 0 additions & 4 deletions arch/arm64/boot/dts/altera/Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1 @@
dtb-$(CONFIG_ARCH_STRATIX10) += socfpga_stratix10_socdk.dtb

always := $(dtb-y)
subdir-y := $(dts-dirs)
clean-files := *.dtb
4 changes: 0 additions & 4 deletions arch/arm64/boot/dts/amd/Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
dtb-$(CONFIG_ARCH_SEATTLE) += amd-overdrive.dtb \
amd-overdrive-rev-b0.dtb amd-overdrive-rev-b1.dtb \
husky.dtb

always := $(dtb-y)
subdir-y := $(dts-dirs)
clean-files := *.dtb
4 changes: 0 additions & 4 deletions arch/arm64/boot/dts/amlogic/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,3 @@ dtb-$(CONFIG_ARCH_MESON) += meson-gxm-nexbox-a1.dtb
dtb-$(CONFIG_ARCH_MESON) += meson-gxm-q200.dtb
dtb-$(CONFIG_ARCH_MESON) += meson-gxm-q201.dtb
dtb-$(CONFIG_ARCH_MESON) += meson-gxm-rbox-pro.dtb

always := $(dtb-y)
subdir-y := $(dts-dirs)
clean-files := *.dtb
4 changes: 0 additions & 4 deletions arch/arm64/boot/dts/apm/Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,2 @@
dtb-$(CONFIG_ARCH_XGENE) += apm-mustang.dtb
dtb-$(CONFIG_ARCH_XGENE) += apm-merlin.dtb

always := $(dtb-y)
subdir-y := $(dts-dirs)
clean-files := *.dtb
4 changes: 0 additions & 4 deletions arch/arm64/boot/dts/arm/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,3 @@ dtb-$(CONFIG_ARCH_VEXPRESS) += foundation-v8.dtb foundation-v8-gicv3.dtb
dtb-$(CONFIG_ARCH_VEXPRESS) += juno.dtb juno-r1.dtb juno-r2.dtb
dtb-$(CONFIG_ARCH_VEXPRESS) += rtsm_ve-aemv8a.dtb
dtb-$(CONFIG_ARCH_VEXPRESS) += vexpress-v2f-1xv7-ca53x2.dtb

always := $(dtb-y)
subdir-y := $(dts-dirs)
clean-files := *.dtb
7 changes: 2 additions & 5 deletions arch/arm64/boot/dts/broadcom/Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
dtb-$(CONFIG_ARCH_BCM2835) += bcm2837-rpi-3-b.dtb

dts-dirs += northstar2
dts-dirs += stingray
always := $(dtb-y)
subdir-y := $(dts-dirs)
clean-files := *.dtb
subdir-y += northstar2
subdir-y += stingray
4 changes: 0 additions & 4 deletions arch/arm64/boot/dts/broadcom/northstar2/Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,2 @@
dtb-$(CONFIG_ARCH_BCM_IPROC) += ns2-svk.dtb
dtb-$(CONFIG_ARCH_BCM_IPROC) += ns2-xmc.dtb

always := $(dtb-y)
subdir-y := $(dts-dirs)
clean-files := *.dtb
4 changes: 0 additions & 4 deletions arch/arm64/boot/dts/broadcom/stingray/Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,2 @@
dtb-$(CONFIG_ARCH_BCM_IPROC) += bcm958742k.dtb
dtb-$(CONFIG_ARCH_BCM_IPROC) += bcm958742t.dtb

always := $(dtb-y)
subdir-y := $(dts-dirs)
clean-files := *.dtb
4 changes: 0 additions & 4 deletions arch/arm64/boot/dts/cavium/Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,2 @@
dtb-$(CONFIG_ARCH_THUNDER) += thunder-88xx.dtb
dtb-$(CONFIG_ARCH_THUNDER2) += thunder2-99xx.dtb

always := $(dtb-y)
subdir-y := $(dts-dirs)
clean-files := *.dtb
4 changes: 0 additions & 4 deletions arch/arm64/boot/dts/exynos/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,3 @@ dtb-$(CONFIG_ARCH_EXYNOS) += \
exynos5433-tm2.dtb \
exynos5433-tm2e.dtb \
exynos7-espresso.dtb

always := $(dtb-y)
subdir-y := $(dts-dirs)
clean-files := *.dtb
4 changes: 0 additions & 4 deletions arch/arm64/boot/dts/freescale/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,3 @@ dtb-$(CONFIG_ARCH_LAYERSCAPE) += fsl-ls2080a-rdb.dtb
dtb-$(CONFIG_ARCH_LAYERSCAPE) += fsl-ls2080a-simu.dtb
dtb-$(CONFIG_ARCH_LAYERSCAPE) += fsl-ls2088a-qds.dtb
dtb-$(CONFIG_ARCH_LAYERSCAPE) += fsl-ls2088a-rdb.dtb

always := $(dtb-y)
subdir-y := $(dts-dirs)
clean-files := *.dtb
4 changes: 0 additions & 4 deletions arch/arm64/boot/dts/hisilicon/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,3 @@ dtb-$(CONFIG_ARCH_HISI) += hi6220-hikey.dtb
dtb-$(CONFIG_ARCH_HISI) += hip05-d02.dtb
dtb-$(CONFIG_ARCH_HISI) += hip06-d03.dtb
dtb-$(CONFIG_ARCH_HISI) += hip07-d05.dtb

always := $(dtb-y)
subdir-y := $(dts-dirs)
clean-files := *.dtb
4 changes: 0 additions & 4 deletions arch/arm64/boot/dts/lg/Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,2 @@
dtb-$(CONFIG_ARCH_LG1K) += lg1312-ref.dtb
dtb-$(CONFIG_ARCH_LG1K) += lg1313-ref.dtb

always := $(dtb-y)
subdir-y := $(dts-dirs)
clean-files := *.dtb
4 changes: 0 additions & 4 deletions arch/arm64/boot/dts/marvell/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,3 @@ dtb-$(CONFIG_ARCH_MVEBU) += armada-7040-db.dtb
dtb-$(CONFIG_ARCH_MVEBU) += armada-8040-db.dtb
dtb-$(CONFIG_ARCH_MVEBU) += armada-8040-mcbin.dtb
dtb-$(CONFIG_ARCH_MVEBU) += armada-8080-db.dtb

always := $(dtb-y)
subdir-y := $(dts-dirs)
clean-files := *.dtb
4 changes: 0 additions & 4 deletions arch/arm64/boot/dts/mediatek/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,3 @@ dtb-$(CONFIG_ARCH_MEDIATEK) += mt6795-evb.dtb
dtb-$(CONFIG_ARCH_MEDIATEK) += mt6797-evb.dtb
dtb-$(CONFIG_ARCH_MEDIATEK) += mt7622-rfb1.dtb
dtb-$(CONFIG_ARCH_MEDIATEK) += mt8173-evb.dtb

always := $(dtb-y)
subdir-y := $(dts-dirs)
clean-files := *.dtb
3 changes: 0 additions & 3 deletions arch/arm64/boot/dts/nvidia/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,3 @@ dtb-$(CONFIG_ARCH_TEGRA_210_SOC) += tegra210-p2371-2180.dtb
dtb-$(CONFIG_ARCH_TEGRA_210_SOC) += tegra210-p2571.dtb
dtb-$(CONFIG_ARCH_TEGRA_210_SOC) += tegra210-smaug.dtb
dtb-$(CONFIG_ARCH_TEGRA_186_SOC) += tegra186-p2771-0000.dtb

always := $(dtb-y)
clean-files := *.dtb
4 changes: 0 additions & 4 deletions arch/arm64/boot/dts/qcom/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,3 @@ dtb-$(CONFIG_ARCH_QCOM) += msm8916-mtp.dtb
dtb-$(CONFIG_ARCH_QCOM) += msm8992-bullhead-rev-101.dtb
dtb-$(CONFIG_ARCH_QCOM) += msm8994-angler-rev-101.dtb
dtb-$(CONFIG_ARCH_QCOM) += msm8996-mtp.dtb

always := $(dtb-y)
subdir-y := $(dts-dirs)
clean-files := *.dtb
4 changes: 0 additions & 4 deletions arch/arm64/boot/dts/realtek/Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1 @@
dtb-$(CONFIG_ARCH_REALTEK) += rtd1295-zidoo-x9s.dtb

always := $(dtb-y)
subdir-y := $(dts-dirs)
clean-files := *.dtb
3 changes: 0 additions & 3 deletions arch/arm64/boot/dts/renesas/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,3 @@ dtb-$(CONFIG_ARCH_R8A7795) += r8a7795-salvator-xs.dtb
dtb-$(CONFIG_ARCH_R8A7795) += r8a7795-es1-salvator-x.dtb r8a7795-es1-h3ulcb.dtb
dtb-$(CONFIG_ARCH_R8A7796) += r8a7796-salvator-x.dtb r8a7796-m3ulcb.dtb
dtb-$(CONFIG_ARCH_R8A77995) += r8a77995-draak.dtb

always := $(dtb-y)
clean-files := *.dtb
4 changes: 0 additions & 4 deletions arch/arm64/boot/dts/rockchip/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,3 @@ dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3399-firefly.dtb
dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3399-gru-kevin.dtb
dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3399-puma-haikou.dtb
dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3399-sapphire-excavator.dtb

always := $(dtb-y)
subdir-y := $(dts-dirs)
clean-files := *.dtb
3 changes: 0 additions & 3 deletions arch/arm64/boot/dts/socionext/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,3 @@ dtb-$(CONFIG_ARCH_UNIPHIER) += \
uniphier-ld20-global.dtb \
uniphier-ld20-ref.dtb \
uniphier-pxs3-ref.dtb

always := $(dtb-y)
clean-files := *.dtb
4 changes: 0 additions & 4 deletions arch/arm64/boot/dts/sprd/Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,2 @@
dtb-$(CONFIG_ARCH_SPRD) += sc9836-openphone.dtb \
sp9860g-1h10.dtb

always := $(dtb-y)
subdir-y := $(dts-dirs)
clean-files := *.dtb
4 changes: 0 additions & 4 deletions arch/arm64/boot/dts/xilinx/Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1 @@
dtb-$(CONFIG_ARCH_ZYNQMP) += zynqmp-ep108.dtb

always := $(dtb-y)
subdir-y := $(dts-dirs)
clean-files := *.dtb
4 changes: 0 additions & 4 deletions arch/arm64/boot/dts/zte/Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,2 @@
dtb-$(CONFIG_ARCH_ZX) += zx296718-evb.dtb
dtb-$(CONFIG_ARCH_ZX) += zx296718-pcbox.dtb

always := $(dtb-y)
subdir-y := $(dts-dirs)
clean-files := *.dtb
2 changes: 0 additions & 2 deletions arch/c6x/boot/dts/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,3 @@ $(obj)/builtin.dtb: $(obj)/$(DTB).dtb
$(call if_changed,cp)

$(obj)/linked_dtb.o: $(obj)/builtin.dtb

clean-files := *.dtb
2 changes: 0 additions & 2 deletions arch/cris/boot/dts/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,3 @@ BUILTIN_DTB := $(patsubst "%",%,$(CONFIG_BUILTIN_DTB)).dtb.o
ifneq ($(CONFIG_BUILTIN_DTB),"")
obj-$(CONFIG_OF) += $(BUILTIN_DTB)
endif

clean-files := *.dtb.S
6 changes: 0 additions & 6 deletions arch/h8300/boot/dts/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,3 @@ obj-y += $(BUILTIN_DTB)
dtb-$(CONFIG_H8300H_SIM) := h8300h_sim.dtb
dtb-$(CONFIG_H8S_SIM) := h8s_sim.dtb
dtb-$(CONFIG_H8S_EDOSK2674) := edosk2674.dtb

dtstree := $(srctree)/$(src)
dtb-$(CONFIG_OF_ALL_DTBS) := $(patsubst $(dtstree)/%.dts,%.dtb, $(wildcard $(dtstree)/*.dts))

always := $(dtb-y)
clean-files := *.dtb.S *.dtb
1 change: 0 additions & 1 deletion arch/metag/boot/.gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
vmlinux*
uImage*
ramdisk.*
*.dtb*
Loading

0 comments on commit 27e8524

Please sign in to comment.