From f94b8dd9954e2ab9a763035a9801fd6efeed44e3 Mon Sep 17 00:00:00 2001 From: Saul Wold Date: Fri, 9 Jan 2015 06:51:54 -0800 Subject: [PATCH] meta-tizen: libgpg-error: Fix copying of platform specific header file Change-Id: Iefa6763d2ae2f490e9e138b1febbb8325df631f3 (From meta-tizen rev: 19c68368c2078a42fd9d777843e7064b7cff2a07) Signed-off-by: Saul Wold Signed-off-by: Patrick Ohly --- .../libgpg-error/libgpg-error_1.17.bb | 44 +++++++++++----------- 1 file changed, 23 insertions(+), 21 deletions(-) diff --git a/meta-tizen/meta-tizen-adaptation/meta/recipes-support/libgpg-error/libgpg-error_1.17.bb b/meta-tizen/meta-tizen-adaptation/meta/recipes-support/libgpg-error/libgpg-error_1.17.bb index 7bee68d..c905bd1 100644 --- a/meta-tizen/meta-tizen-adaptation/meta/recipes-support/libgpg-error/libgpg-error_1.17.bb +++ b/meta-tizen/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}" - -- 2.7.4