diff options
Diffstat (limited to 'meta/classes')
-rw-r--r-- | meta/classes/allarch.bbclass | 2 | ||||
-rw-r--r-- | meta/classes/cross-canadian.bbclass | 2 | ||||
-rw-r--r-- | meta/classes/cross.bbclass | 2 | ||||
-rw-r--r-- | meta/classes/crosssdk.bbclass | 2 | ||||
-rw-r--r-- | meta/classes/native.bbclass | 10 | ||||
-rw-r--r-- | meta/classes/nativesdk.bbclass | 4 | ||||
-rw-r--r-- | meta/classes/toolchain-scripts.bbclass | 9 |
7 files changed, 24 insertions, 7 deletions
diff --git a/meta/classes/allarch.bbclass b/meta/classes/allarch.bbclass index 26fca70635..a2f81799a1 100644 --- a/meta/classes/allarch.bbclass +++ b/meta/classes/allarch.bbclass | |||
@@ -12,4 +12,6 @@ INHIBIT_DEFAULT_DEPS = "1" | |||
12 | TARGET_ARCH = "allarch" | 12 | TARGET_ARCH = "allarch" |
13 | TARGET_OS = "linux" | 13 | TARGET_OS = "linux" |
14 | TARGET_CC_ARCH = "none" | 14 | TARGET_CC_ARCH = "none" |
15 | TARGET_LD_ARCH = "none" | ||
16 | TARGET_AS_ARCH = "none" | ||
15 | PACKAGE_EXTRA_ARCHS = "" | 17 | PACKAGE_EXTRA_ARCHS = "" |
diff --git a/meta/classes/cross-canadian.bbclass b/meta/classes/cross-canadian.bbclass index c878d7f5a5..601175db45 100644 --- a/meta/classes/cross-canadian.bbclass +++ b/meta/classes/cross-canadian.bbclass | |||
@@ -39,6 +39,8 @@ HOST_VENDOR = "${SDK_VENDOR}" | |||
39 | HOST_OS = "${SDK_OS}" | 39 | HOST_OS = "${SDK_OS}" |
40 | HOST_PREFIX = "${SDK_PREFIX}" | 40 | HOST_PREFIX = "${SDK_PREFIX}" |
41 | HOST_CC_ARCH = "${SDK_CC_ARCH}" | 41 | HOST_CC_ARCH = "${SDK_CC_ARCH}" |
42 | HOST_LD_ARCH = "${SDK_LD_ARCH}" | ||
43 | HOST_AS_ARCH = "${SDK_AS_ARCH}" | ||
42 | 44 | ||
43 | #assign DPKG_ARCH | 45 | #assign DPKG_ARCH |
44 | DPKG_ARCH = "${SDK_ARCH}" | 46 | DPKG_ARCH = "${SDK_ARCH}" |
diff --git a/meta/classes/cross.bbclass b/meta/classes/cross.bbclass index e19614f280..519aa0dfff 100644 --- a/meta/classes/cross.bbclass +++ b/meta/classes/cross.bbclass | |||
@@ -11,6 +11,8 @@ HOST_VENDOR = "${BUILD_VENDOR}" | |||
11 | HOST_OS = "${BUILD_OS}" | 11 | HOST_OS = "${BUILD_OS}" |
12 | HOST_PREFIX = "${BUILD_PREFIX}" | 12 | HOST_PREFIX = "${BUILD_PREFIX}" |
13 | HOST_CC_ARCH = "${BUILD_CC_ARCH}" | 13 | HOST_CC_ARCH = "${BUILD_CC_ARCH}" |
14 | HOST_LD_ARCH = "${BUILD_LD_ARCH}" | ||
15 | HOST_AS_ARCH = "${BUILD_AS_ARCH}" | ||
14 | 16 | ||
15 | STAGING_DIR_HOST = "${STAGING_DIR}/${HOST_ARCH}${HOST_VENDOR}-${HOST_OS}" | 17 | STAGING_DIR_HOST = "${STAGING_DIR}/${HOST_ARCH}${HOST_VENDOR}-${HOST_OS}" |
16 | 18 | ||
diff --git a/meta/classes/crosssdk.bbclass b/meta/classes/crosssdk.bbclass index a2e5a222fc..5cfa43b3de 100644 --- a/meta/classes/crosssdk.bbclass +++ b/meta/classes/crosssdk.bbclass | |||
@@ -9,6 +9,8 @@ TARGET_VENDOR = "${SDK_VENDOR}" | |||
9 | TARGET_OS = "${SDK_OS}" | 9 | TARGET_OS = "${SDK_OS}" |
10 | TARGET_PREFIX = "${SDK_PREFIX}" | 10 | TARGET_PREFIX = "${SDK_PREFIX}" |
11 | TARGET_CC_ARCH = "${SDK_CC_ARCH}" | 11 | TARGET_CC_ARCH = "${SDK_CC_ARCH}" |
12 | TARGET_LD_ARCH = "${SDK_LD_ARCH}" | ||
13 | TARGET_AS_ARCH = "${SDK_AS_ARCH}" | ||
12 | TARGET_FPU = "" | 14 | TARGET_FPU = "" |
13 | 15 | ||
14 | target_libdir = "${SDKPATHNATIVE}${libdir_nativesdk}" | 16 | target_libdir = "${SDKPATHNATIVE}${libdir_nativesdk}" |
diff --git a/meta/classes/native.bbclass b/meta/classes/native.bbclass index 00f7b9f02d..9a41f19dc6 100644 --- a/meta/classes/native.bbclass +++ b/meta/classes/native.bbclass | |||
@@ -24,6 +24,8 @@ TARGET_OS = "${BUILD_OS}" | |||
24 | TARGET_VENDOR = "${BUILD_VENDOR}" | 24 | TARGET_VENDOR = "${BUILD_VENDOR}" |
25 | TARGET_PREFIX = "${BUILD_PREFIX}" | 25 | TARGET_PREFIX = "${BUILD_PREFIX}" |
26 | TARGET_CC_ARCH = "${BUILD_CC_ARCH}" | 26 | TARGET_CC_ARCH = "${BUILD_CC_ARCH}" |
27 | TARGET_LD_ARCH = "${BUILD_LD_ARCH}" | ||
28 | TARGET_AS_ARCH = "${BUILD_AS_ARCH}" | ||
27 | TARGET_FPU = "" | 29 | TARGET_FPU = "" |
28 | 30 | ||
29 | HOST_ARCH = "${BUILD_ARCH}" | 31 | HOST_ARCH = "${BUILD_ARCH}" |
@@ -31,6 +33,8 @@ HOST_OS = "${BUILD_OS}" | |||
31 | HOST_VENDOR = "${BUILD_VENDOR}" | 33 | HOST_VENDOR = "${BUILD_VENDOR}" |
32 | HOST_PREFIX = "${BUILD_PREFIX}" | 34 | HOST_PREFIX = "${BUILD_PREFIX}" |
33 | HOST_CC_ARCH = "${BUILD_CC_ARCH}" | 35 | HOST_CC_ARCH = "${BUILD_CC_ARCH}" |
36 | HOST_LD_ARCH = "${BUILD_LD_ARCH}" | ||
37 | HOST_AS_ARCH = "${BUILD_AS_ARCH}" | ||
34 | 38 | ||
35 | CPPFLAGS = "${BUILD_CPPFLAGS}" | 39 | CPPFLAGS = "${BUILD_CPPFLAGS}" |
36 | CFLAGS = "${BUILD_CFLAGS}" | 40 | CFLAGS = "${BUILD_CFLAGS}" |
@@ -50,11 +54,11 @@ export CONFIG_SITE = "" | |||
50 | export CC = "${CCACHE}${HOST_PREFIX}gcc ${HOST_CC_ARCH}" | 54 | export CC = "${CCACHE}${HOST_PREFIX}gcc ${HOST_CC_ARCH}" |
51 | export CXX = "${CCACHE}${HOST_PREFIX}g++ ${HOST_CC_ARCH}" | 55 | export CXX = "${CCACHE}${HOST_PREFIX}g++ ${HOST_CC_ARCH}" |
52 | export F77 = "${CCACHE}${HOST_PREFIX}g77 ${HOST_CC_ARCH}" | 56 | export F77 = "${CCACHE}${HOST_PREFIX}g77 ${HOST_CC_ARCH}" |
53 | export CPP = "${HOST_PREFIX}gcc -E" | 57 | export CPP = "${HOST_PREFIX}gcc ${HOST_CC_ARCH} -E" |
54 | export LD = "${HOST_PREFIX}ld" | 58 | export LD = "${HOST_PREFIX}ld ${HOST_LD_ARCH} " |
55 | export CCLD = "${CC}" | 59 | export CCLD = "${CC}" |
56 | export AR = "${HOST_PREFIX}ar" | 60 | export AR = "${HOST_PREFIX}ar" |
57 | export AS = "${HOST_PREFIX}as" | 61 | export AS = "${HOST_PREFIX}as ${HOST_AS_ARCH}" |
58 | export RANLIB = "${HOST_PREFIX}ranlib" | 62 | export RANLIB = "${HOST_PREFIX}ranlib" |
59 | export STRIP = "${HOST_PREFIX}strip" | 63 | export STRIP = "${HOST_PREFIX}strip" |
60 | 64 | ||
diff --git a/meta/classes/nativesdk.bbclass b/meta/classes/nativesdk.bbclass index de7a88317c..152d053342 100644 --- a/meta/classes/nativesdk.bbclass +++ b/meta/classes/nativesdk.bbclass | |||
@@ -24,6 +24,8 @@ HOST_VENDOR = "${SDK_VENDOR}" | |||
24 | HOST_OS = "${SDK_OS}" | 24 | HOST_OS = "${SDK_OS}" |
25 | HOST_PREFIX = "${SDK_PREFIX}" | 25 | HOST_PREFIX = "${SDK_PREFIX}" |
26 | HOST_CC_ARCH = "${SDK_CC_ARCH}" | 26 | HOST_CC_ARCH = "${SDK_CC_ARCH}" |
27 | HOST_LD_ARCH = "${SDK_LD_ARCH}" | ||
28 | HOST_AS_ARCH = "${SDK_AS_ARCH}" | ||
27 | #HOST_SYS = "${HOST_ARCH}${TARGET_VENDOR}-${HOST_OS}" | 29 | #HOST_SYS = "${HOST_ARCH}${TARGET_VENDOR}-${HOST_OS}" |
28 | 30 | ||
29 | TARGET_ARCH = "${SDK_ARCH}" | 31 | TARGET_ARCH = "${SDK_ARCH}" |
@@ -31,6 +33,8 @@ TARGET_VENDOR = "${SDK_VENDOR}" | |||
31 | TARGET_OS = "${SDK_OS}" | 33 | TARGET_OS = "${SDK_OS}" |
32 | TARGET_PREFIX = "${SDK_PREFIX}" | 34 | TARGET_PREFIX = "${SDK_PREFIX}" |
33 | TARGET_CC_ARCH = "${SDK_CC_ARCH}" | 35 | TARGET_CC_ARCH = "${SDK_CC_ARCH}" |
36 | TARGET_LD_ARCH = "${SDK_LD_ARCH}" | ||
37 | TARGET_AS_ARCH = "${SDK_AS_ARCH}" | ||
34 | TARGET_FPU = "" | 38 | TARGET_FPU = "" |
35 | 39 | ||
36 | CPPFLAGS = "${BUILDSDK_CPPFLAGS}" | 40 | CPPFLAGS = "${BUILDSDK_CPPFLAGS}" |
diff --git a/meta/classes/toolchain-scripts.bbclass b/meta/classes/toolchain-scripts.bbclass index fe11e7278e..f7b52be752 100644 --- a/meta/classes/toolchain-scripts.bbclass +++ b/meta/classes/toolchain-scripts.bbclass | |||
@@ -24,8 +24,8 @@ toolchain_create_sdk_env_script () { | |||
24 | fi | 24 | fi |
25 | echo 'export CFLAGS="${TARGET_CC_ARCH} --sysroot=${SDKTARGETSYSROOT}"' >> $script | 25 | echo 'export CFLAGS="${TARGET_CC_ARCH} --sysroot=${SDKTARGETSYSROOT}"' >> $script |
26 | echo 'export CXXFLAGS="${TARGET_CC_ARCH} --sysroot=${SDKTARGETSYSROOT}"' >> $script | 26 | echo 'export CXXFLAGS="${TARGET_CC_ARCH} --sysroot=${SDKTARGETSYSROOT}"' >> $script |
27 | echo 'export LDFLAGS="--sysroot=${SDKTARGETSYSROOT}"' >> $script | 27 | echo 'export LDFLAGS="${TARGET_LD_ARCH} --sysroot=${SDKTARGETSYSROOT}"' >> $script |
28 | echo 'export CPPFLAGS="--sysroot=${SDKTARGETSYSROOT}"' >> $script | 28 | echo 'export CPPFLAGS="${TARGET_CC_ARCH} --sysroot=${SDKTARGETSYSROOT}"' >> $script |
29 | echo 'export OECORE_NATIVE_SYSROOT="${SDKPATHNATIVE}"' >> $script | 29 | echo 'export OECORE_NATIVE_SYSROOT="${SDKPATHNATIVE}"' >> $script |
30 | echo 'export OECORE_TARGET_SYSROOT="${SDKTARGETSYSROOT}"' >> $script | 30 | echo 'export OECORE_TARGET_SYSROOT="${SDKTARGETSYSROOT}"' >> $script |
31 | echo 'export OECORE_ACLOCAL_OPTS="-I ${SDKPATHNATIVE}/usr/share/aclocal"' >> $script | 31 | echo 'export OECORE_ACLOCAL_OPTS="-I ${SDKPATHNATIVE}/usr/share/aclocal"' >> $script |
@@ -59,6 +59,7 @@ toolchain_create_tree_env_script () { | |||
59 | fi | 59 | fi |
60 | echo 'export CFLAGS="${TARGET_CC_ARCH}"' >> $script | 60 | echo 'export CFLAGS="${TARGET_CC_ARCH}"' >> $script |
61 | echo 'export CXXFLAGS="${TARGET_CC_ARCH}"' >> $script | 61 | echo 'export CXXFLAGS="${TARGET_CC_ARCH}"' >> $script |
62 | echo 'export LDFLAGS="${TARGET_LD_ARCH}"' >> $script | ||
62 | echo 'export OECORE_NATIVE_SYSROOT="${STAGING_DIR_NATIVE}"' >> $script | 63 | echo 'export OECORE_NATIVE_SYSROOT="${STAGING_DIR_NATIVE}"' >> $script |
63 | echo 'export OECORE_TARGET_SYSROOT="${STAGING_DIR_TARGET}"' >> $script | 64 | echo 'export OECORE_TARGET_SYSROOT="${STAGING_DIR_TARGET}"' >> $script |
64 | echo 'export OECORE_ACLOCAL_OPTS="-I ${STAGING_DIR_NATIVE}/usr/share/aclocal"' >> $script | 65 | echo 'export OECORE_ACLOCAL_OPTS="-I ${STAGING_DIR_NATIVE}/usr/share/aclocal"' >> $script |
@@ -91,8 +92,8 @@ toolchain_create_sdk_env_script_for_installer () { | |||
91 | fi | 92 | fi |
92 | echo 'export CFLAGS="${TARGET_CC_ARCH} --sysroot=##SDKTARGETSYSROOT##"' >> $script | 93 | echo 'export CFLAGS="${TARGET_CC_ARCH} --sysroot=##SDKTARGETSYSROOT##"' >> $script |
93 | echo 'export CXXFLAGS="${TARGET_CC_ARCH} --sysroot=##SDKTARGETSYSROOT##"' >> $script | 94 | echo 'export CXXFLAGS="${TARGET_CC_ARCH} --sysroot=##SDKTARGETSYSROOT##"' >> $script |
94 | echo 'export LDFLAGS="--sysroot=##SDKTARGETSYSROOT##"' >> $script | 95 | echo 'export LDFLAGS="${TARGET_LD_ARCH} --sysroot=##SDKTARGETSYSROOT##"' >> $script |
95 | echo 'export CPPFLAGS="--sysroot=##SDKTARGETSYSROOT##"' >> $script | 96 | echo 'export CPPFLAGS="${TARGET_CC_ARCH} --sysroot=##SDKTARGETSYSROOT##"' >> $script |
96 | echo 'export OECORE_NATIVE_SYSROOT="${SDKPATHNATIVE}"' >> $script | 97 | echo 'export OECORE_NATIVE_SYSROOT="${SDKPATHNATIVE}"' >> $script |
97 | echo 'export OECORE_TARGET_SYSROOT="##SDKTARGETSYSROOT##"' >> $script | 98 | echo 'export OECORE_TARGET_SYSROOT="##SDKTARGETSYSROOT##"' >> $script |
98 | echo 'export OECORE_ACLOCAL_OPTS="-I ${SDKPATHNATIVE}/usr/share/acloal"' >> $script | 99 | echo 'export OECORE_ACLOCAL_OPTS="-I ${SDKPATHNATIVE}/usr/share/acloal"' >> $script |