[PATCH 3/5] sandbox: add sandbox.dtb to always-y

Masahiro Yamada masahiroy at kernel.org
Tue Aug 18 06:55:18 EDT 2020


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 at kernel.org>
---

 arch/sandbox/dts/Makefile | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/arch/sandbox/dts/Makefile b/arch/sandbox/dts/Makefile
index 6f6838857..6f4344da6 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
-- 
2.25.1




More information about the barebox mailing list