diff options
author | Saul Wold <sgw@linux.intel.com> | 2015-01-09 06:51:54 -0800 |
---|---|---|
committer | Saul Wold <sgw@linux.intel.com> | 2015-01-09 06:51:54 -0800 |
commit | 19c68368c2078a42fd9d777843e7064b7cff2a07 (patch) | |
tree | fcd49c31012cccfdc8529c72a84b720fdd3501fa | |
parent | 2da0c02c8ca98f9faa731a27bfcf819b8dcf1375 (diff) | |
download | meta-tizen-19c68368c2078a42fd9d777843e7064b7cff2a07.tar.gz meta-tizen-19c68368c2078a42fd9d777843e7064b7cff2a07.tar.bz2 meta-tizen-19c68368c2078a42fd9d777843e7064b7cff2a07.zip |
libgpg-error: Fix copying of platform specific header file
Change-Id: Iefa6763d2ae2f490e9e138b1febbb8325df631f3
Signed-off-by: Saul Wold <sgw@linux.intel.com>
-rw-r--r-- | meta-tizen-adaptation/meta/recipes-support/libgpg-error/libgpg-error_1.17.bb | 44 |
1 files changed, 23 insertions, 21 deletions
diff --git a/meta-tizen-adaptation/meta/recipes-support/libgpg-error/libgpg-error_1.17.bb b/meta-tizen-adaptation/meta/recipes-support/libgpg-error/libgpg-error_1.17.bb index 7bee68d1..c905bd1e 100644 --- a/meta-tizen-adaptation/meta/recipes-support/libgpg-error/libgpg-error_1.17.bb +++ b/meta-tizen-adaptation/meta/recipes-support/libgpg-error/libgpg-error_1.17.bb @@ -19,27 +19,33 @@ SRC_URI[sha256sum] = "3ff4e5a71116eb862cd14185fcd282850927b8608e3b4186834fd940fb BINCONFIG = "${bindir}/gpg-error-config" -inherit autotools binconfig-disabled pkgconfig gettext qemu +inherit autotools binconfig-disabled pkgconfig gettext do_compile_prepend() { + TARGET_FILE=linux-gnu + if [ ${TARGET_OS} != "linux" ]; then + TARGET_FILE=${TARGET_OS} + fi + case ${TARGET_ARCH} in - aarch64) TUPLE=aarch64-unknown-linux-gnu ;; - arm) TUPLE=arm-unknown-linux-gnueabi ;; - armeb) TUPLE=arm-unknown-linux-gnueabi ;; - i586) TUPLE=i486-pc-linux-gnu ;; - mipsel) TUPLE=mipsel-unknown-linux-gnu ;; - mips64el) TUPLE=mipsel-unknown-linux-gnu ;; - mips64) TUPLE=mips-unknown-linux-gnu ;; - mips) TUPLE=mips-unknown-linux-gnu ;; - powerpc64) TUPLE=powerpc64-unknown-linux-gnu ;; - powerpc) TUPLE=powerpc-unknown-linux-gnu ;; - sh4) TUPLE=sh4-unknown-linux-gnu ;; - x86_64) TUPLE=x86_64-pc-linux-gnu ;; - esac - - cp ${S}/src/syscfg/lock-obj-pub.$TUPLE.h \ - ${S}/src/syscfg/lock-obj-pub.linux-gnu.h + aarch64) TUPLE=aarch64-unknown-linux-gnu ;; + arm) TUPLE=arm-unknown-linux-gnueabi ;; + armeb) TUPLE=arm-unknown-linux-gnueabi ;; + i586) TUPLE=i486-pc-linux-gnu ;; + mipsel) TUPLE=mipsel-unknown-linux-gnu ;; + mips64el) TUPLE=mipsel-unknown-linux-gnu ;; + mips64) TUPLE=mips-unknown-linux-gnu ;; + mips) TUPLE=mips-unknown-linux-gnu ;; + powerpc64) TUPLE=powerpc64-unknown-linux-gnu ;; + powerpc) TUPLE=powerpc-unknown-linux-gnu ;; + sh4) TUPLE=sh4-unknown-linux-gnu ;; + x86_64) TUPLE=x86_64-pc-linux-gnu ;; + esac + + cp ${S}/src/syscfg/lock-obj-pub.$TUPLE.h \ + ${S}/src/syscfg/lock-obj-pub.$TARGET_FILE.h } + do_install_append() { # we don't have common lisp in OE rm -rf "${D}${datadir}/common-lisp/" @@ -48,7 +54,3 @@ do_install_append() { FILES_${PN}-dev += "${bindir}/gpg-error" BBCLASSEXTEND = "native" - -# Added for meta-tizen-adaptation-oe-core -FILESPATH_append = ":${COREBASE}/meta/recipes-support/${BPN}/${BPN}" - |