summaryrefslogtreecommitdiffstats
path: root/arch/sandbox
diff options
context:
space:
mode:
authorMasahiro Yamada <masahiroy@kernel.org>2020-08-18 19:55:18 +0900
committerSascha Hauer <s.hauer@pengutronix.de>2020-08-19 08:51:49 +0200
commit5f716ec7447aa0e3c3a98a24b1066a09fe6afaca (patch)
tree4ec490a56f1bd24341b0c8d17ca91af2690d30ca /arch/sandbox
parent216ca08500739724600999e729aa8e42fd321557 (diff)
downloadbarebox-5f716ec7447aa0e3c3a98a24b1066a09fe6afaca.tar.gz
barebox-5f716ec7447aa0e3c3a98a24b1066a09fe6afaca.tar.xz
sandbox: add sandbox.dtb to always-y
Unlike Linux, Barebox does not support 'make dtbs_install'. There is no good reason to use dtb-y, which is not natively supported by the Barebox build system. Sandbox is the special architecture that compiles DTB as a separate file. Add .dtb to always-y directly. CONFIG_OFTREE is a bool option. Use a more Kbuild-ish style instead of ifeq ($(CONFIG_OFTREE),y). Signed-off-by: Masahiro Yamada <masahiroy@kernel.org> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/sandbox')
-rw-r--r--arch/sandbox/dts/Makefile5
1 files changed, 1 insertions, 4 deletions
diff --git a/arch/sandbox/dts/Makefile b/arch/sandbox/dts/Makefile
index 6f68388578..6f4344da68 100644
--- a/arch/sandbox/dts/Makefile
+++ b/arch/sandbox/dts/Makefile
@@ -1,11 +1,8 @@
-ifeq ($(CONFIG_OFTREE),y)
-dtb-y += \
+always-$(CONFIG_OFTREE) += \
sandbox.dtb
-endif
# just to build a built-in.o. Otherwise compilation fails when no devicetree is
# created.
obj- += dummy.o
-always := $(dtb-y)
clean-files := *.dtb *.dtb.S .*.dtc .*.pre .*.dts