mail archive of the barebox mailing list
 help / color / mirror / Atom feed
From: Masahiro Yamada <masahiroy@kernel.org>
To: barebox@lists.infradead.org
Cc: Masahiro Yamada <masahiroy@kernel.org>
Subject: [PATCH 3/5] sandbox: add sandbox.dtb to always-y
Date: Tue, 18 Aug 2020 19:55:18 +0900	[thread overview]
Message-ID: <20200818105520.32326-3-masahiroy@kernel.org> (raw)
In-Reply-To: <20200818105520.32326-1-masahiroy@kernel.org>

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>
---

 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


_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

  parent reply	other threads:[~2020-08-18 10:55 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-08-18 10:55 [PATCH 1/5] scripts: remove redundant setupmbr addition to subdir- Masahiro Yamada
2020-08-18 10:55 ` [PATCH 2/5] kvx,riscv: remove unused $(dtb-y) assignment Masahiro Yamada
2020-08-18 10:55 ` Masahiro Yamada [this message]
2020-08-18 10:55 ` [PATCH 4/5] kbuild: sync the top level Kbuild file with Linux Masahiro Yamada
2020-08-18 10:55 ` [PATCH 5/5] kbuild: introduce hostprogs-always-y and userprogs-always-y Masahiro Yamada
2020-08-19  6:52 ` [PATCH 1/5] scripts: remove redundant setupmbr addition to subdir- Sascha Hauer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20200818105520.32326-3-masahiroy@kernel.org \
    --to=masahiroy@kernel.org \
    --cc=barebox@lists.infradead.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox