mail archive of the barebox mailing list
 help / color / mirror / Atom feed
From: Masahiro Yamada <yamada.m@jp.panasonic.com>
To: barebox@lists.infradead.org
Subject: [PATCH] ARM: use an easier way to create the empty built-in.o
Date: Mon,  2 Feb 2015 14:10:15 +0900	[thread overview]
Message-ID: <1422853816-21068-1-git-send-email-yamada.m@jp.panasonic.com> (raw)

We do not have to build an unneeded file to create the built-in.o.
Just add a dummy string to "obj-".
(dummy.c does not need to exist.)

Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>
---

 arch/arm/dts/Makefile | 2 +-
 arch/arm/dts/empty.c  | 3 ---
 2 files changed, 1 insertion(+), 4 deletions(-)
 delete mode 100644 arch/arm/dts/empty.c

diff --git a/arch/arm/dts/Makefile b/arch/arm/dts/Makefile
index 9263fda..9d4933c 100644
--- a/arch/arm/dts/Makefile
+++ b/arch/arm/dts/Makefile
@@ -5,7 +5,7 @@ endif
 
 # just to build a built-in.o. Otherwise compilation fails when no devicetree is
 # created.
-obj-y += empty.o
+obj- += dummy.o
 
 pbl-dtb-$(CONFIG_MACH_AFI_GF) += am335x-afi-gf.dtb.o
 pbl-dtb-$(CONFIG_MACH_BEAGLEBONE) += am335x-bone.dtb.o am335x-boneblack.dtb.o am335x-bone-common.dtb.o
diff --git a/arch/arm/dts/empty.c b/arch/arm/dts/empty.c
deleted file mode 100644
index d141224..0000000
--- a/arch/arm/dts/empty.c
+++ /dev/null
@@ -1,3 +0,0 @@
-static inline void empty(void)
-{
-}
-- 
1.9.1


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

             reply	other threads:[~2015-02-02  5:10 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-02-02  5:10 Masahiro Yamada [this message]
2015-02-02  9:19 ` 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=1422853816-21068-1-git-send-email-yamada.m@jp.panasonic.com \
    --to=yamada.m@jp.panasonic.com \
    --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