From 803427eedbf62d58bd250d577f2c0afb5b68383d Mon Sep 17 00:00:00 2001 From: Holger Freyther Date: Sat, 5 Aug 2006 14:01:52 +0000 Subject: packages: sed -i s/^"include "/"require "/ */*.bb GNU sed rocks! Use require for the BitBake files within packages. In contrast to the conf files the authors of these files expected these files to be included. --- packages/gmp/gmp-native_4.1.2.bb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'packages/gmp') diff --git a/packages/gmp/gmp-native_4.1.2.bb b/packages/gmp/gmp-native_4.1.2.bb index 9a35da292b..c8160ca14e 100644 --- a/packages/gmp/gmp-native_4.1.2.bb +++ b/packages/gmp/gmp-native_4.1.2.bb @@ -1,4 +1,4 @@ -include gmp_${PV}.bb +require gmp_${PV}.bb FILESDIR = "${@os.path.dirname(bb.data.getVar('FILE',d,1))}/gmp-${PV}" S = "${WORKDIR}/gmp-${PV}" -- cgit v1.2.3 From aea3bc79a39d0a3b4589f73c7907dd6d7b62b811 Mon Sep 17 00:00:00 2001 From: Holger Freyther Date: Sun, 6 Aug 2006 13:10:20 +0000 Subject: packages/gmp/gmp-native: OSX/Darwin/gcc hack. Force gmp to not used assembly versions Set none as CPU to force GMP to not use 'optimized' assembly which does not compile with apple gcc (MacIntel). Messing with TARGET_SYS etc. messes with CFLAGS, PATH as well. We do not need to care for the CFLAGS for now, but we need to mess with the PATH. --- packages/gmp/gmp-native_4.1.2.bb | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'packages/gmp') diff --git a/packages/gmp/gmp-native_4.1.2.bb b/packages/gmp/gmp-native_4.1.2.bb index c8160ca14e..c3d36e0fdb 100644 --- a/packages/gmp/gmp-native_4.1.2.bb +++ b/packages/gmp/gmp-native_4.1.2.bb @@ -5,3 +5,19 @@ S = "${WORKDIR}/gmp-${PV}" inherit native +# darwin 'hacks' +EXTRA_OECONF_build-darwin = " --enable-shared " +OLD_STAGING := "${STAGING_BINDIR}" +OLD_TARGET := "${TARGET_SYS}" +OLD_HOST := "${HOST_SYS}" +OLD_BUILD := "${BUILD_SYS}" + +PATH_prepend_build-darwin = "${OLD_STAGING}/${OLD_HOST}:${OLD_STAGING}:" + +TARGET_SYS_build-darwin = "none-apple-darwin" +HOST_SYS_build-darwin = "none-apple-darwin" +BUILD_SYS_build-darwin = "none-apple-darwin" + +do_compile_append_build-darwin() { + oe_runmake check +} -- cgit v1.2.3