summaryrefslogtreecommitdiffstats
path: root/recipes-extended/dev86/dev86_git.bb
diff options
context:
space:
mode:
authorMartin Jansa <Martin.Jansa@gmail.com>2021-05-14 06:39:52 -0700
committerBruce Ashfield <bruce.ashfield@gmail.com>2021-05-14 10:06:02 -0400
commitd1e08a20d169b8cbcca20987d709ae4eb25a3be8 (patch)
treebf02fbb12c25fd5c60d6ad5f33ee86c1e6a05eb0 /recipes-extended/dev86/dev86_git.bb
parentb67e57e54effb7c18261732c7e00763c9d92cf90 (diff)
downloadmeta-virtualization-d1e08a20d169b8cbcca20987d709ae4eb25a3be8.tar.gz
dev86: depend on dev86-native for ifdefg
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Diffstat (limited to 'recipes-extended/dev86/dev86_git.bb')
-rw-r--r--recipes-extended/dev86/dev86_git.bb17
1 files changed, 12 insertions, 5 deletions
diff --git a/recipes-extended/dev86/dev86_git.bb b/recipes-extended/dev86/dev86_git.bb
index 476bf38f..c987342b 100644
--- a/recipes-extended/dev86/dev86_git.bb
+++ b/recipes-extended/dev86/dev86_git.bb
@@ -7,21 +7,23 @@ SECTION = "console/tools"
7BASE_PV="0.16.21" 7BASE_PV="0.16.21"
8PV = "${BASE_PV}+git${SRCPV}" 8PV = "${BASE_PV}+git${SRCPV}"
9SRCREV = "e254e0b19651d3b8a20225b40281c9974a95dec4" 9SRCREV = "e254e0b19651d3b8a20225b40281c9974a95dec4"
10SRC_URI = "git://github.com/jbruchon/${BPN}.git;protocol=https" 10SRC_URI = "git://github.com/jbruchon/${BPN}.git;protocol=https \
11 file://0001-cpp-Makefile-respect-LDFLAGS-when-building-bcc-cpp.patch \
12"
13SRC_URI_append_class-target = " \
14 file://0002-Makefile-use-ifdefg-from-dev86-native-instead-of-tar.patch \
15"
11 16
12S = "${WORKDIR}/git" 17S = "${WORKDIR}/git"
13 18
14DEPENDS = "gperf-native" 19DEPENDS = "gperf-native dev86-native"
15 20
16BBCLASSEXTEND = "native" 21BBCLASSEXTEND = "native"
17EXTRA_OEMAKE = "VERSION=${BASE_PV} PREFIX=${prefix} DIST=${D} LDFLAGS='${LDFLAGS}'" 22EXTRA_OEMAKE = "VERSION=${BASE_PV} PREFIX=${prefix} DIST=${D} LDFLAGS='${LDFLAGS}'"
18 23
19do_compile() { 24do_compile() {
20 # ${S}/Makefile does respect LDFLAGS, but ${S}/cpp/Makefile doesn't when building bcc-cpp
21 sed -i 's#$(CC) $(CFLAGS) -o bcc-cpp#$(CC) $(CFLAGS) $(LDFLAGS) -o bcc-cpp#g' ${S}/cpp/Makefile
22 oe_runmake make.fil 25 oe_runmake make.fil
23 oe_runmake -f make.fil bcc86 as86 ld86 26 oe_runmake -f make.fil bcc86 as86 ld86
24
25} 27}
26 28
27do_install() { 29do_install() {
@@ -33,8 +35,13 @@ do_install() {
33 oe_runmake install-bcc 35 oe_runmake install-bcc
34 ln -s ../lib/bcc/bcc-cpp ${D}${prefix}/bin/bcc-cpp 36 ln -s ../lib/bcc/bcc-cpp ${D}${prefix}/bin/bcc-cpp
35 ln -s ../lib/bcc/bcc-cc1 ${D}${prefix}/bin/bcc-cc1 37 ln -s ../lib/bcc/bcc-cc1 ${D}${prefix}/bin/bcc-cc1
38}
36 39
40do_install_append_class-native() {
41 install -v -m 755 ${B}/ifdefg ${D}${bindir}
37} 42}
43
38COMPATIBLE_HOST = "(i.86|x86_64).*-linux" 44COMPATIBLE_HOST = "(i.86|x86_64).*-linux"
39FILES_${PN} += "${libdir}/bcc" 45FILES_${PN} += "${libdir}/bcc"
46
40INSANE_SKIP_${PN} = "already-stripped" 47INSANE_SKIP_${PN} = "already-stripped"