diff options
| author | Ross Burton <ross.burton@intel.com> | 2016-08-02 09:00:15 +0100 |
|---|---|---|
| committer | Martin Jansa <Martin.Jansa@gmail.com> | 2016-08-08 13:54:02 +0200 |
| commit | b0ae995bc813aae651a94092c035a8f5d5253c22 (patch) | |
| tree | 0da2f5906d396e7c65d0a0628f26d36f563173a1 /meta-oe | |
| parent | 41414e07d2e842bedcd598199869dc1a2dda7661 (diff) | |
| download | meta-openembedded-b0ae995bc813aae651a94092c035a8f5d5253c22.tar.gz | |
ninja: support target builds
Extend the recipe so that it supports target builds.
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Diffstat (limited to 'meta-oe')
| -rw-r--r-- | meta-oe/recipes-devtools/ninja/ninja_1.6.0.bb (renamed from meta-oe/recipes-devtools/ninja/ninja-native_1.6.0.bb) | 17 |
1 files changed, 11 insertions, 6 deletions
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 index c00710afd5..4d6c47e202 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/" | |||
| 3 | LICENSE = "Apache-2.0" | 3 | LICENSE = "Apache-2.0" |
| 4 | LIC_FILES_CHKSUM = "file://COPYING;md5=a81586a64ad4e476c791cda7e2f2c52e" | 4 | LIC_FILES_CHKSUM = "file://COPYING;md5=a81586a64ad4e476c791cda7e2f2c52e" |
| 5 | 5 | ||
| 6 | DEPENDS = "re2c-native" | 6 | DEPENDS = "re2c-native ninja-native" |
| 7 | 7 | ||
| 8 | inherit native | 8 | SRCREV = "484c16336f19bd8970bb6e75322d61b92a229899" |
| 9 | |||
| 10 | SRCREV="484c16336f19bd8970bb6e75322d61b92a229899" | ||
| 11 | 9 | ||
| 12 | SRC_URI = "git://github.com/martine/ninja.git;branch=release" | 10 | SRC_URI = "git://github.com/martine/ninja.git;branch=release" |
| 13 | 11 | ||
| 14 | S="${WORKDIR}/git" | 12 | S = "${WORKDIR}/git" |
| 15 | 13 | ||
| 16 | do_configure[noexec] = "1" | 14 | do_configure[noexec] = "1" |
| 17 | 15 | ||
| 16 | do_compile_class-native() { | ||
| 17 | ./configure.py --bootstrap | ||
| 18 | } | ||
| 19 | |||
| 18 | do_compile() { | 20 | do_compile() { |
| 19 | python ${S}/configure.py --bootstrap | 21 | ./configure.py |
| 22 | ninja | ||
| 20 | } | 23 | } |
| 21 | 24 | ||
| 22 | do_install() { | 25 | do_install() { |
| 23 | install -d ${D}${bindir} | 26 | install -d ${D}${bindir} |
| 24 | install -m 0755 ${S}/ninja ${D}${bindir}/ | 27 | install -m 0755 ${S}/ninja ${D}${bindir}/ |
| 25 | } | 28 | } |
| 29 | |||
| 30 | BBCLASSEXTEND = "native" | ||
