diff options
author | Dave Cobbley <david.j.cobbley@linux.intel.com> | 2018-08-14 20:05:37 +0300 |
---|---|---|
committer | Brad Bishop <bradleyb@fuzziesquirrel.com> | 2018-08-23 04:26:31 +0300 |
commit | eb8dc40360f0cfef56fb6947cc817a547d6d9bc6 (patch) | |
tree | de291a73dc37168da6370e2cf16c347d1eba9df8 /meta-openembedded/meta-oe/recipes-devtools/concurrencykit | |
parent | 9c3cf826d853102535ead04cebc2d6023eff3032 (diff) | |
download | openbmc-eb8dc40360f0cfef56fb6947cc817a547d6d9bc6.tar.xz |
[Subtree] Removing import-layers directory
As part of the move to subtrees, need to bring all the import layers
content to the top level.
Change-Id: I4a163d10898cbc6e11c27f776f60e1a470049d8f
Signed-off-by: Dave Cobbley <david.j.cobbley@linux.intel.com>
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
Diffstat (limited to 'meta-openembedded/meta-oe/recipes-devtools/concurrencykit')
-rw-r--r-- | meta-openembedded/meta-oe/recipes-devtools/concurrencykit/concurrencykit/cross.patch | 62 | ||||
-rw-r--r-- | meta-openembedded/meta-oe/recipes-devtools/concurrencykit/concurrencykit_git.bb | 41 |
2 files changed, 103 insertions, 0 deletions
diff --git a/meta-openembedded/meta-oe/recipes-devtools/concurrencykit/concurrencykit/cross.patch b/meta-openembedded/meta-oe/recipes-devtools/concurrencykit/concurrencykit/cross.patch new file mode 100644 index 000000000..9e5058f2c --- /dev/null +++ b/meta-openembedded/meta-oe/recipes-devtools/concurrencykit/concurrencykit/cross.patch @@ -0,0 +1,62 @@ +From ab0eec78382bd00ce533aec2c84fd50c1733033d Mon Sep 17 00:00:00 2001 +From: Khem Raj <raj.khem@gmail.com> +Date: Sat, 5 Jan 2013 19:42:51 -0800 + +--- + configure | 32 ++++++++++++++++++-------------- + 1 file changed, 18 insertions(+), 14 deletions(-) + +diff --git a/configure b/configure +index 76c2812..78ce2ff 100755 +--- a/configure ++++ b/configure +@@ -535,14 +535,18 @@ else + GZIP_SUFFIX=".gz" + fi + +-printf "Finding suitable compiler........" +-CC=`pathsearch "${CC:-cc}"` +-if test -z "$CC" -o ! -x "$CC"; then +- CC=`pathsearch "${CC:-gcc}"` ++if test -z "$CC"; then ++ printf "Finding suitable compiler........" ++ CC=`pathsearch "${CC:-cc}"` ++ if test -z "$CC" -o ! -x "$CC"; then ++ CC=`pathsearch "${CC:-gcc}"` ++ fi + fi + assert "$CC" "not found" + +-cat << EOF > .1.c ++if test -z "$COMPILER"; then ++ ++ cat << EOF > .1.c + #include <stdio.h> + int main(void) { + #if defined(_WIN32) +@@ -569,16 +573,16 @@ int main(void) { + #endif + } + EOF ++ $CC -o .1 .1.c ++ COMPILER=`./.1` ++ r=$? ++ rm -f .1.c .1 + +-$CC -o .1 .1.c +-COMPILER=`./.1` +-r=$? +-rm -f .1.c .1 +- +-if test "$r" -ne 0; then +- assert "" "update compiler" +-else +- echo "success [$CC]" ++ if test "$r" -ne 0; then ++ assert "" "update compiler" ++ else ++ echo "success [$CC]" ++ fi + fi + + if test "$COMPILER" = "suncc"; then diff --git a/meta-openembedded/meta-oe/recipes-devtools/concurrencykit/concurrencykit_git.bb b/meta-openembedded/meta-oe/recipes-devtools/concurrencykit/concurrencykit_git.bb new file mode 100644 index 000000000..19767c311 --- /dev/null +++ b/meta-openembedded/meta-oe/recipes-devtools/concurrencykit/concurrencykit_git.bb @@ -0,0 +1,41 @@ +DESCRIPTION = "Concurrency Kit provides a plethora of concurrency primitives, \ +safe memory reclamation mechanisms and non-blocking data structures \ +designed to aid in the design and implementation of high performance \ +concurrent systems." + +LICENSE = "BSD & Apache-2.0" +HOMEPAGE = "http://concurrencykit.org" +SECTION = "base" + +PV = "0.5.1+git${SRCPV}" +SRCREV = "f97d3da5c375ac2fc5a9173cdd36cb828915a2e1" +LIC_FILES_CHKSUM = "file://LICENSE;md5=a0b24c1a8f9ad516a297d055b0294231" +SRC_URI = "git://github.com/concurrencykit/ck.git \ + file://cross.patch \ +" + +S = "${WORKDIR}/git" + +COMPATIBLE_HOST = "(i.86|x86_64|powerpc|powerpc64).*-linux*" + +inherit autotools-brokensep + +PLAT_powerpc64 = "ppc64" +PLAT ?= "${HOST_ARCH}" + +do_configure () { + export PLATFORM=${PLAT} + export COMPILER='gcc' + ${S}/configure \ + --prefix=${prefix} \ + --includedir=${includedir} \ + --libdir=${libdir} +} + +do_compile () { + oe_runmake +} + +do_install () { + oe_runmake 'DESTDIR=${D}' install +} |