mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH] ARM: use an easier way to create the empty built-in.o
@ 2015-02-02  5:10 Masahiro Yamada
  2015-02-02  9:19 ` Sascha Hauer
  0 siblings, 1 reply; 2+ messages in thread
From: Masahiro Yamada @ 2015-02-02  5:10 UTC (permalink / raw)
  To: barebox

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] ARM: use an easier way to create the empty built-in.o
  2015-02-02  5:10 [PATCH] ARM: use an easier way to create the empty built-in.o Masahiro Yamada
@ 2015-02-02  9:19 ` Sascha Hauer
  0 siblings, 0 replies; 2+ messages in thread
From: Sascha Hauer @ 2015-02-02  9:19 UTC (permalink / raw)
  To: Masahiro Yamada; +Cc: barebox

On Mon, Feb 02, 2015 at 02:10:15PM +0900, Masahiro Yamada wrote:
> 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.)

Ah, nice. Adding files just to make the make process happy felt awkward.

Applied, thanks

Sascha


-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-02-02  9:20 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-02-02  5:10 [PATCH] ARM: use an easier way to create the empty built-in.o Masahiro Yamada
2015-02-02  9:19 ` Sascha Hauer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox