All of lore.kernel.org
 help / color / mirror / Atom feed
* [RFC][PATCH][meta-oe] ninja: support target builds
@ 2016-08-02  8:00 Ross Burton
  0 siblings, 0 replies; only message in thread
From: Ross Burton @ 2016-08-02  8:00 UTC (permalink / raw)
  To: openembedded-devel

Extend the recipe so that it supports target builds.

Signed-off-by: Ross Burton <ross.burton@intel.com>

---

RFC as I've not actually tested that this works on target, I just did it
to silence my world builds. :)

 .../ninja/{ninja-native_1.6.0.bb => ninja_1.6.0.bb}     | 17 +++++++++++------
 1 file changed, 11 insertions(+), 6 deletions(-)
 rename meta-oe/recipes-devtools/ninja/{ninja-native_1.6.0.bb => ninja_1.6.0.bb} (64%)

diff --git a/meta-oe/recipes-devtools/ninja/ninja-native_1.6.0.bb b/meta-oe/recipes-devtools/ninja/ninja_1.6.0.bb
similarity index 64%
rename from meta-oe/recipes-devtools/ninja/ninja-native_1.6.0.bb
rename to meta-oe/recipes-devtools/ninja/ninja_1.6.0.bb
index c00710a..4d6c47e 100644
--- a/meta-oe/recipes-devtools/ninja/ninja-native_1.6.0.bb
+++ b/meta-oe/recipes-devtools/ninja/ninja_1.6.0.bb
@@ -3,23 +3,28 @@ HOMEPAGE = "http://martine.github.com/ninja/"
 LICENSE = "Apache-2.0"
 LIC_FILES_CHKSUM = "file://COPYING;md5=a81586a64ad4e476c791cda7e2f2c52e"
 
-DEPENDS = "re2c-native"
+DEPENDS = "re2c-native ninja-native"
 
-inherit native
-
-SRCREV="484c16336f19bd8970bb6e75322d61b92a229899"
+SRCREV = "484c16336f19bd8970bb6e75322d61b92a229899"
 
 SRC_URI = "git://github.com/martine/ninja.git;branch=release"
 
-S="${WORKDIR}/git"
+S = "${WORKDIR}/git"
 
 do_configure[noexec] = "1"
 
+do_compile_class-native() {
+    ./configure.py --bootstrap
+}
+
 do_compile() {
-    python ${S}/configure.py --bootstrap
+    ./configure.py
+    ninja
 }
 
 do_install() {
     install -d ${D}${bindir}
     install -m 0755 ${S}/ninja ${D}${bindir}/
 }
+
+BBCLASSEXTEND = "native"
-- 
2.8.1



^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2016-08-02  8:00 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-08-02  8:00 [RFC][PATCH][meta-oe] ninja: support target builds Ross Burton

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.