diff options
-rw-r--r-- | meta/classes/toolchain-scripts.bbclass | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/meta/classes/toolchain-scripts.bbclass b/meta/classes/toolchain-scripts.bbclass index cda453dadd..5c9acda6de 100644 --- a/meta/classes/toolchain-scripts.bbclass +++ b/meta/classes/toolchain-scripts.bbclass | |||
@@ -24,10 +24,12 @@ toolchain_create_sdk_env_script () { | |||
24 | echo 'export CXXFLAGS="${TARGET_CC_ARCH}"' >> $script | 24 | echo 'export CXXFLAGS="${TARGET_CC_ARCH}"' >> $script |
25 | echo "alias opkg='LD_LIBRARY_PATH=${SDKPATHNATIVE}${libdir_nativesdk} ${SDKPATHNATIVE}${bindir_nativesdk}/opkg-cl -f ${SDKPATHNATIVE}/${sysconfdir}/opkg-sdk.conf -o ${SDKPATHNATIVE}'" >> $script | 25 | echo "alias opkg='LD_LIBRARY_PATH=${SDKPATHNATIVE}${libdir_nativesdk} ${SDKPATHNATIVE}${bindir_nativesdk}/opkg-cl -f ${SDKPATHNATIVE}/${sysconfdir}/opkg-sdk.conf -o ${SDKPATHNATIVE}'" >> $script |
26 | echo "alias opkg-target='LD_LIBRARY_PATH=${SDKPATHNATIVE}${libdir_nativesdk} ${SDKPATHNATIVE}${bindir_nativesdk}/opkg-cl -f ${SDKTARGETSYSROOT}${sysconfdir}/opkg.conf -o ${SDKTARGETSYSROOT}'" >> $script | 26 | echo "alias opkg-target='LD_LIBRARY_PATH=${SDKPATHNATIVE}${libdir_nativesdk} ${SDKPATHNATIVE}${bindir_nativesdk}/opkg-cl -f ${SDKTARGETSYSROOT}${sysconfdir}/opkg.conf -o ${SDKTARGETSYSROOT}'" >> $script |
27 | echo 'export POKY_NATIVE_SYSROOT="${SDKPATHNATIVE}"' >> $script | ||
28 | echo 'export POKY_DISTRO_VERSION="${DISTRO_VERSION}"' >> $script | ||
27 | } | 29 | } |
28 | 30 | ||
29 | # This function creates an environment-setup-script in the TMPDIR which enables a Poky IDE to integrate with the | 31 | # This function creates an environment-setup-script in the TMPDIR which enables |
30 | # build tree | 32 | # a Poky IDE to integrate with the build tree |
31 | toolchain_create_tree_env_script () { | 33 | toolchain_create_tree_env_script () { |
32 | script=${TMPDIR}/environment-setup-${MULTIMACH_TARGET_SYS} | 34 | script=${TMPDIR}/environment-setup-${MULTIMACH_TARGET_SYS} |
33 | rm -f $script | 35 | rm -f $script |
@@ -50,4 +52,5 @@ toolchain_create_tree_env_script () { | |||
50 | fi | 52 | fi |
51 | echo 'export CFLAGS="${TARGET_CC_ARCH}"' >> $script | 53 | echo 'export CFLAGS="${TARGET_CC_ARCH}"' >> $script |
52 | echo 'export CXXFLAGS="${TARGET_CC_ARCH}"' >> $script | 54 | echo 'export CXXFLAGS="${TARGET_CC_ARCH}"' >> $script |
55 | echo 'export POKY_NATIVE_SYSROOT="${STAGING_DIR_NATIVE}"' >> $script | ||
53 | } | 56 | } |