diff options
-rw-r--r-- | meta/packages/meta/meta-toolchain.bb | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/meta/packages/meta/meta-toolchain.bb b/meta/packages/meta/meta-toolchain.bb index 9f2520d2a5..9deda4c1c0 100644 --- a/meta/packages/meta/meta-toolchain.bb +++ b/meta/packages/meta/meta-toolchain.bb | |||
@@ -39,8 +39,11 @@ do_populate_sdk() { | |||
39 | mv ${SDK_OUTPUT}/usr/lib/opkg/* ${SDK_OUTPUT}/${prefix}/usr/lib/opkg/ | 39 | mv ${SDK_OUTPUT}/usr/lib/opkg/* ${SDK_OUTPUT}/${prefix}/usr/lib/opkg/ |
40 | rm -Rf ${SDK_OUTPUT}/usr/lib | 40 | rm -Rf ${SDK_OUTPUT}/usr/lib |
41 | 41 | ||
42 | install -d ${SDK_OUTPUT}/${prefix}/${TARGET_SYS}/${layout_sysconfdir} | ||
43 | install -m 0644 ${IPKGCONF_TARGET} ${IPKGCONF_SDK} ${SDK_OUTPUT}/${prefix}/${TARGET_SYS}/${layout_sysconfdir}/ | ||
44 | |||
42 | install -d ${SDK_OUTPUT}/${sysconfdir} | 45 | install -d ${SDK_OUTPUT}/${sysconfdir} |
43 | install -m 0644 ${IPKGCONF_TARGET} ${IPKGCONF_SDK} ${SDK_OUTPUT}/${sysconfdir} | 46 | install -m 0644 ${IPKGCONF_SDK} ${SDK_OUTPUT}/${sysconfdir}/ |
44 | 47 | ||
45 | # extract and store ipks, pkgdata and shlibs data | 48 | # extract and store ipks, pkgdata and shlibs data |
46 | target_pkgs=`cat ${SDK_OUTPUT}/${prefix}/package-status | grep Package: | cut -f 2 -d ' '` | 49 | target_pkgs=`cat ${SDK_OUTPUT}/${prefix}/package-status | grep Package: | cut -f 2 -d ' '` |
@@ -89,10 +92,10 @@ do_populate_sdk() { | |||
89 | touch $script | 92 | touch $script |
90 | echo 'export PATH=${prefix}/bin:$PATH' >> $script | 93 | echo 'export PATH=${prefix}/bin:$PATH' >> $script |
91 | echo 'export PKG_CONFIG_SYSROOT_DIR=${prefix}/${TARGET_SYS}' >> $script | 94 | echo 'export PKG_CONFIG_SYSROOT_DIR=${prefix}/${TARGET_SYS}' >> $script |
92 | echo 'export PKG_CONFIG_PATH=${prefix}/${TARGET_SYS}/${layout_libdir}/pkgconfig' >> $script | 95 | echo 'export PKG_CONFIG_PATH=${prefix}/${TARGET_SYS}${layout_libdir}/pkgconfig' >> $script |
93 | echo 'export CONFIG_SITE=${prefix}/site-config' >> $script | 96 | echo 'export CONFIG_SITE=${prefix}/site-config' >> $script |
94 | echo "alias opkg='LD_LIBRARY_PATH=${prefix}/lib ${prefix}/bin/opkg-cl -f ${sysconfdir}/opkg-sdk.conf -o ${prefix}'" >> $script | 97 | echo "alias opkg='LD_LIBRARY_PATH=${prefix}/lib ${prefix}/bin/opkg-cl -f ${sysconfdir}/opkg-sdk.conf -o ${prefix}'" >> $script |
95 | echo "alias opkg-target='LD_LIBRARY_PATH=${prefix}/lib ${prefix}/bin/opkg-cl -f ${sysconfdir}/opkg.conf -o ${prefix}/${TARGET_SYS}'" >> $script | 98 | echo "alias opkg-target='LD_LIBRARY_PATH=${prefix}/lib ${prefix}/bin/opkg-cl -f ${prefix}/${TARGET_SYS}${layout_sysconfdir}/opkg.conf -o ${prefix}/${TARGET_SYS}'" >> $script |
96 | 99 | ||
97 | # Add version information | 100 | # Add version information |
98 | versionfile=${SDK_OUTPUT}/${prefix}/version | 101 | versionfile=${SDK_OUTPUT}/${prefix}/version |