From e0bf8958bb44764d1b8a764cb82b56b27b2ae8d4 Mon Sep 17 00:00:00 2001 From: Ross Burton Date: Tue, 29 Jun 2021 11:51:04 +0100 Subject: 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 Signed-off-by: Bruce Ashfield --- recipes-extended/dev86/dev86_git.bb | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) (limited to 'recipes-extended/dev86/dev86_git.bb') 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 \ file://0001-cpp-Makefile-respect-LDFLAGS-when-building-bcc-cpp.patch \ file://0003-cpp-update-token1.tok-to-make-new-gperf-happy-regen..patch \ file://0004-regen-token2.h-token1.h-with-gperf-3.1.patch \ -" -SRC_URI_append_class-target = " \ - file://0002-Makefile-use-ifdefg-from-dev86-native-instead-of-tar.patch \ + file://cross.patch \ " S = "${WORKDIR}/git" -DEPENDS = "gperf-native dev86-native" +DEPENDS = "gperf-native" -BBCLASSEXTEND = "native" +BBCLASSEXTEND = "native nativesdk" EXTRA_OEMAKE = "VERSION=${BASE_PV} PREFIX=${prefix} DIST=${D} LDFLAGS='${LDFLAGS}' INEXE=''" do_compile() { @@ -41,8 +39,4 @@ do_install() { ln -s ../lib/bcc/bcc-cc1 ${D}${prefix}/bin/bcc-cc1 } -do_install_append_class-native() { - install -v -m 755 ${B}/ifdefg ${D}${bindir} -} - FILES_${PN} += "${libdir}/bcc" -- cgit v1.2.3-54-g00ecf