summaryrefslogtreecommitdiffstats
path: root/recipes-extended/dev86/dev86_git.bb
diff options
context:
space:
mode:
authorRoss Burton <ross@burtonini.com>2021-06-29 11:51:04 +0100
committerBruce Ashfield <bruce.ashfield@gmail.com>2021-06-30 11:19:03 -0400
commite0bf8958bb44764d1b8a764cb82b56b27b2ae8d4 (patch)
tree5707f2641ff25ffd90664e42c9d57ce8ea2610ab /recipes-extended/dev86/dev86_git.bb
parent449cfdef60371c2f45bf958303c2e7c7ba932a22 (diff)
downloadmeta-virtualization-e0bf8958bb44764d1b8a764cb82b56b27b2ae8d4.tar.gz
dev86: don't require dev86-native to build dev86
Instead of installing binaries and patching the makefiles to run external commands, simply build ifdef using BUILD_CC instead of CC. This patch is now upstreamable, the recipe is less complicated, and nativesdk works. Signed-off-by: Ross Burton <ross.burton@arm.com> Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Diffstat (limited to 'recipes-extended/dev86/dev86_git.bb')
-rw-r--r--recipes-extended/dev86/dev86_git.bb12
1 files changed, 3 insertions, 9 deletions
diff --git a/recipes-extended/dev86/dev86_git.bb b/recipes-extended/dev86/dev86_git.bb
index ad7a0dfd..838918a3 100644
--- a/recipes-extended/dev86/dev86_git.bb
+++ b/recipes-extended/dev86/dev86_git.bb
@@ -11,16 +11,14 @@ SRC_URI = "git://github.com/jbruchon/${BPN}.git;protocol=https \
11 file://0001-cpp-Makefile-respect-LDFLAGS-when-building-bcc-cpp.patch \ 11 file://0001-cpp-Makefile-respect-LDFLAGS-when-building-bcc-cpp.patch \
12 file://0003-cpp-update-token1.tok-to-make-new-gperf-happy-regen..patch \ 12 file://0003-cpp-update-token1.tok-to-make-new-gperf-happy-regen..patch \
13 file://0004-regen-token2.h-token1.h-with-gperf-3.1.patch \ 13 file://0004-regen-token2.h-token1.h-with-gperf-3.1.patch \
14" 14 file://cross.patch \
15SRC_URI_append_class-target = " \
16 file://0002-Makefile-use-ifdefg-from-dev86-native-instead-of-tar.patch \
17" 15"
18 16
19S = "${WORKDIR}/git" 17S = "${WORKDIR}/git"
20 18
21DEPENDS = "gperf-native dev86-native" 19DEPENDS = "gperf-native"
22 20
23BBCLASSEXTEND = "native" 21BBCLASSEXTEND = "native nativesdk"
24EXTRA_OEMAKE = "VERSION=${BASE_PV} PREFIX=${prefix} DIST=${D} LDFLAGS='${LDFLAGS}' INEXE=''" 22EXTRA_OEMAKE = "VERSION=${BASE_PV} PREFIX=${prefix} DIST=${D} LDFLAGS='${LDFLAGS}' INEXE=''"
25 23
26do_compile() { 24do_compile() {
@@ -41,8 +39,4 @@ do_install() {
41 ln -s ../lib/bcc/bcc-cc1 ${D}${prefix}/bin/bcc-cc1 39 ln -s ../lib/bcc/bcc-cc1 ${D}${prefix}/bin/bcc-cc1
42} 40}
43 41
44do_install_append_class-native() {
45 install -v -m 755 ${B}/ifdefg ${D}${bindir}
46}
47
48FILES_${PN} += "${libdir}/bcc" 42FILES_${PN} += "${libdir}/bcc"