diff options
-rw-r--r-- | meta/classes/cross-canadian.bbclass | 8 | ||||
-rw-r--r-- | meta/classes/nativesdk.bbclass | 6 | ||||
-rw-r--r-- | meta/conf/bitbake.conf | 4 | ||||
-rw-r--r-- | meta/conf/distro/poky.conf | 4 | ||||
-rw-r--r-- | meta/packages/gcc/gcc-crosssdk-initial.inc | 4 | ||||
-rw-r--r-- | meta/packages/gcc/gcc-crosssdk-intermediate.inc | 4 | ||||
-rw-r--r-- | meta/packages/gcc/gcc-crosssdk.inc | 4 | ||||
-rw-r--r-- | meta/packages/meta/meta-toolchain.bb | 92 |
8 files changed, 51 insertions, 75 deletions
diff --git a/meta/classes/cross-canadian.bbclass b/meta/classes/cross-canadian.bbclass index e5453848ae..29ee99042b 100644 --- a/meta/classes/cross-canadian.bbclass +++ b/meta/classes/cross-canadian.bbclass | |||
@@ -44,9 +44,9 @@ target_prefix := "${prefix}" | |||
44 | target_exec_prefix := "${exec_prefix}" | 44 | target_exec_prefix := "${exec_prefix}" |
45 | 45 | ||
46 | # Change to place files in SDKPATH | 46 | # Change to place files in SDKPATH |
47 | prefix = "${SDKPATH}" | 47 | base_prefix = "${SDKPATHNATIVE}" |
48 | exec_prefix = "${SDKPATH}" | 48 | prefix = "${SDKPATHNATIVE}${prefix_nativesdk}" |
49 | base_prefix = "${SDKPATH}" | 49 | exec_prefix = "${SDKPATHNATIVE}${prefix_nativesdk}" |
50 | 50 | ||
51 | FILES_${PN} = "${prefix}" | 51 | FILES_${PN} = "${prefix}" |
52 | FILES_${PN}-dbg += "${prefix}/.debug \ | 52 | FILES_${PN}-dbg += "${prefix}/.debug \ |
@@ -56,5 +56,5 @@ FILES_${PN}-dbg += "${prefix}/.debug \ | |||
56 | export PKG_CONFIG_DIR = "${STAGING_DIR_HOST}${layout_libdir}/pkgconfig" | 56 | export PKG_CONFIG_DIR = "${STAGING_DIR_HOST}${layout_libdir}/pkgconfig" |
57 | export PKG_CONFIG_SYSROOT_DIR = "${STAGING_DIR_HOST}" | 57 | export PKG_CONFIG_SYSROOT_DIR = "${STAGING_DIR_HOST}" |
58 | 58 | ||
59 | # Cross-canadian packages need to pull in nativesdk so's, sorry for ugliness | 59 | # Cross-canadian packages need to pull in nativesdk dynamic libs |
60 | SHLIBSDIR = "${STAGING_DIR}/${SDK_ARCH}-nativesdk-pokysdk-${BUILD_OS}/shlibs" | 60 | SHLIBSDIR = "${STAGING_DIR}/${SDK_ARCH}-nativesdk-pokysdk-${BUILD_OS}/shlibs" |
diff --git a/meta/classes/nativesdk.bbclass b/meta/classes/nativesdk.bbclass index 2c897c6076..892bae5ecf 100644 --- a/meta/classes/nativesdk.bbclass +++ b/meta/classes/nativesdk.bbclass | |||
@@ -37,9 +37,9 @@ CXXFLAGS = "${BUILDSDK_CFLAGS}" | |||
37 | LDFLAGS = "${BUILDSDK_LDFLAGS}" | 37 | LDFLAGS = "${BUILDSDK_LDFLAGS}" |
38 | 38 | ||
39 | # Change to place files in SDKPATH | 39 | # Change to place files in SDKPATH |
40 | prefix = "${SDKPATH}" | 40 | base_prefix = "${SDKPATHNATIVE}" |
41 | exec_prefix = "${SDKPATH}" | 41 | prefix = "${SDKPATHNATIVE}${prefix_nativesdk}" |
42 | base_prefix = "${SDKPATH}" | 42 | exec_prefix = "${SDKPATHNATIVE}${prefix_nativesdk}" |
43 | 43 | ||
44 | FILES_${PN} += "${prefix}" | 44 | FILES_${PN} += "${prefix}" |
45 | FILES_${PN}-dbg += "${prefix}/.debug \ | 45 | FILES_${PN}-dbg += "${prefix}/.debug \ |
diff --git a/meta/conf/bitbake.conf b/meta/conf/bitbake.conf index 9d8e59457c..492ed9678a 100644 --- a/meta/conf/bitbake.conf +++ b/meta/conf/bitbake.conf | |||
@@ -43,6 +43,9 @@ includedir_native = "${prefix_native}/include" | |||
43 | libdir_native = "${prefix_native}/lib" | 43 | libdir_native = "${prefix_native}/lib" |
44 | datadir_native = "${prefix_native}/share" | 44 | datadir_native = "${prefix_native}/share" |
45 | bindir_cross = "/bin" | 45 | bindir_cross = "/bin" |
46 | prefix_nativesdk = "/usr" | ||
47 | bindir_nativesdk = "${prefix_nativesdk}/bin" | ||
48 | libdir_nativesdk = "${prefix_nativesdk}/lib" | ||
46 | 49 | ||
47 | # | 50 | # |
48 | # Cross recipes need to know about the target layout | 51 | # Cross recipes need to know about the target layout |
@@ -290,6 +293,7 @@ PKGDATA_DIR = "${TMPDIR}/pkgdata/${MULTIMACH_TARGET_SYS}" | |||
290 | 293 | ||
291 | SDK_NAME = "${DISTRO}/${TARGET_ARCH}" | 294 | SDK_NAME = "${DISTRO}/${TARGET_ARCH}" |
292 | SDKPATH = "/usr/local/${SDK_NAME}" | 295 | SDKPATH = "/usr/local/${SDK_NAME}" |
296 | SDKPATHNATIVE = "${SDKPATH}/sysroots/${SDK_SYS}" | ||
293 | 297 | ||
294 | ################################################################## | 298 | ################################################################## |
295 | # Kernel info. | 299 | # Kernel info. |
diff --git a/meta/conf/distro/poky.conf b/meta/conf/distro/poky.conf index 57231fd6ef..951e156c25 100644 --- a/meta/conf/distro/poky.conf +++ b/meta/conf/distro/poky.conf | |||
@@ -58,8 +58,8 @@ require conf/distro/include/poky-${POKYMODE}.inc | |||
58 | POKYLIBC ?= "glibc" | 58 | POKYLIBC ?= "glibc" |
59 | require conf/distro/include/poky-${POKYLIBC}.inc | 59 | require conf/distro/include/poky-${POKYLIBC}.inc |
60 | 60 | ||
61 | SDK_NAME = "${DISTRO}-${POKYMODE}-${POKYLIBC}-${SDK_ARCH}-${TARGET_ARCH}" | 61 | SDK_NAME = "${DISTRO}-${POKYLIBC}-${SDK_ARCH}-${TARGET_ARCH}" |
62 | SDKPATH = "/usr/local/${DISTRO}/${POKYMODE}-${POKYLIBC}" | 62 | SDKPATH = "/opt/${DISTRO}" |
63 | 63 | ||
64 | CACHE = "${TMPDIR}/cache/${POKYMODE}-${POKYLIBC}${@['', '/' + str(bb.data.getVar('MACHINE', d, 1))][bool(bb.data.getVar('MACHINE', d, 1))]}${@['', '/' + str(bb.data.getVar('SDKMACHINE', d, 1))][bool(bb.data.getVar('SDKMACHINE', d, 1))]}" | 64 | CACHE = "${TMPDIR}/cache/${POKYMODE}-${POKYLIBC}${@['', '/' + str(bb.data.getVar('MACHINE', d, 1))][bool(bb.data.getVar('MACHINE', d, 1))]}${@['', '/' + str(bb.data.getVar('SDKMACHINE', d, 1))][bool(bb.data.getVar('SDKMACHINE', d, 1))]}" |
65 | 65 | ||
diff --git a/meta/packages/gcc/gcc-crosssdk-initial.inc b/meta/packages/gcc/gcc-crosssdk-initial.inc index 4b8346b004..794a953472 100644 --- a/meta/packages/gcc/gcc-crosssdk-initial.inc +++ b/meta/packages/gcc/gcc-crosssdk-initial.inc | |||
@@ -1,7 +1,7 @@ | |||
1 | inherit crosssdk | 1 | inherit crosssdk |
2 | 2 | ||
3 | SYSTEMHEADERS = "${SDKPATH}/include" | 3 | SYSTEMHEADERS = "${SDKPATHNATIVE}${prefix_nativesdk}/include" |
4 | SYSTEMLIBS1 = "${SDKPATH}/lib/" | 4 | SYSTEMLIBS1 = "${SDKPATHNATIVE}${libdir_nativesdk}/" |
5 | 5 | ||
6 | DEPENDS = "virtual/${TARGET_PREFIX}binutils-crosssdk gettext-native" | 6 | DEPENDS = "virtual/${TARGET_PREFIX}binutils-crosssdk gettext-native" |
7 | PROVIDES = "virtual/${TARGET_PREFIX}gcc-initial-crosssdk" | 7 | PROVIDES = "virtual/${TARGET_PREFIX}gcc-initial-crosssdk" |
diff --git a/meta/packages/gcc/gcc-crosssdk-intermediate.inc b/meta/packages/gcc/gcc-crosssdk-intermediate.inc index 6034360050..5b88d33139 100644 --- a/meta/packages/gcc/gcc-crosssdk-intermediate.inc +++ b/meta/packages/gcc/gcc-crosssdk-intermediate.inc | |||
@@ -1,7 +1,7 @@ | |||
1 | inherit crosssdk | 1 | inherit crosssdk |
2 | 2 | ||
3 | SYSTEMHEADERS = "${SDKPATH}/include" | 3 | SYSTEMHEADERS = "${SDKPATHNATIVE}${prefix_nativesdk}/include" |
4 | SYSTEMLIBS1 = "${SDKPATH}/lib/" | 4 | SYSTEMLIBS1 = "${SDKPATHNATIVE}${libdir_nativesdk}/" |
5 | 5 | ||
6 | DEPENDS = "virtual/${TARGET_PREFIX}binutils-crosssdk gettext-native" | 6 | DEPENDS = "virtual/${TARGET_PREFIX}binutils-crosssdk gettext-native" |
7 | DEPENDS += "virtual/${TARGET_PREFIX}libc-initial-nativesdk" | 7 | DEPENDS += "virtual/${TARGET_PREFIX}libc-initial-nativesdk" |
diff --git a/meta/packages/gcc/gcc-crosssdk.inc b/meta/packages/gcc/gcc-crosssdk.inc index e2252bbfce..be2d0b0a28 100644 --- a/meta/packages/gcc/gcc-crosssdk.inc +++ b/meta/packages/gcc/gcc-crosssdk.inc | |||
@@ -1,7 +1,7 @@ | |||
1 | inherit crosssdk | 1 | inherit crosssdk |
2 | 2 | ||
3 | SYSTEMHEADERS = "${SDKPATH}/include" | 3 | SYSTEMHEADERS = "${SDKPATHNATIVE}${prefix_nativesdk}/include" |
4 | SYSTEMLIBS1 = "${SDKPATH}/lib/" | 4 | SYSTEMLIBS1 = "${SDKPATHNATIVE}${libdir_nativesdk}/" |
5 | 5 | ||
6 | GCCMULTILIB = "--disable-multilib" | 6 | GCCMULTILIB = "--disable-multilib" |
7 | 7 | ||
diff --git a/meta/packages/meta/meta-toolchain.bb b/meta/packages/meta/meta-toolchain.bb index 9ae5554eaa..43b4f027c4 100644 --- a/meta/packages/meta/meta-toolchain.bb +++ b/meta/packages/meta/meta-toolchain.bb | |||
@@ -6,11 +6,12 @@ inherit meta | |||
6 | 6 | ||
7 | SDK_DIR = "${WORKDIR}/sdk" | 7 | SDK_DIR = "${WORKDIR}/sdk" |
8 | SDK_OUTPUT = "${SDK_DIR}/image" | 8 | SDK_OUTPUT = "${SDK_DIR}/image" |
9 | SDK_OUTPUT2 = "${SDK_DIR}/image-extras" | ||
10 | SDK_DEPLOY = "${TMPDIR}/deploy/sdk" | 9 | SDK_DEPLOY = "${TMPDIR}/deploy/sdk" |
11 | 10 | ||
11 | SDKTARGETSYSROOT = "${SDKPATH}/sysroots/${TARGET_SYS}" | ||
12 | |||
12 | IPKG_HOST = "opkg-cl -f ${IPKGCONF_SDK} -o ${SDK_OUTPUT}" | 13 | IPKG_HOST = "opkg-cl -f ${IPKGCONF_SDK} -o ${SDK_OUTPUT}" |
13 | IPKG_TARGET = "opkg-cl -f ${IPKGCONF_TARGET} -o ${SDK_OUTPUT}/${SDKPATH}/${TARGET_SYS}" | 14 | IPKG_TARGET = "opkg-cl -f ${IPKGCONF_TARGET} -o ${SDK_OUTPUT}/${SDKTARGETSYSROOT}" |
14 | 15 | ||
15 | TOOLCHAIN_HOST_TASK ?= "task-sdk-host" | 16 | TOOLCHAIN_HOST_TASK ?= "task-sdk-host" |
16 | TOOLCHAIN_TARGET_TASK ?= "task-poky-standalone-sdk-target task-poky-standalone-sdk-target-dbg" | 17 | TOOLCHAIN_TARGET_TASK ?= "task-poky-standalone-sdk-target task-poky-standalone-sdk-target-dbg" |
@@ -22,10 +23,9 @@ EXCLUDE_FROM_WORLD = "1" | |||
22 | 23 | ||
23 | do_populate_sdk() { | 24 | do_populate_sdk() { |
24 | rm -rf ${SDK_OUTPUT} | 25 | rm -rf ${SDK_OUTPUT} |
25 | rm -rf ${SDK_OUTPUT2} | ||
26 | mkdir -p ${SDK_OUTPUT} | 26 | mkdir -p ${SDK_OUTPUT} |
27 | mkdir -p ${SDK_OUTPUT}${libdir}/opkg/ | 27 | mkdir -p ${SDK_OUTPUT}${libdir}/opkg/ |
28 | mkdir -p ${SDK_OUTPUT}/${SDKPATH}/${TARGET_SYS}${libdir}/opkg/ | 28 | mkdir -p ${SDK_OUTPUT}/${SDKTARGETSYSROOT}${libdir}/opkg/ |
29 | 29 | ||
30 | rm -f ${IPKGCONF_TARGET} | 30 | rm -f ${IPKGCONF_TARGET} |
31 | touch ${IPKGCONF_TARGET} | 31 | touch ${IPKGCONF_TARGET} |
@@ -45,58 +45,32 @@ do_populate_sdk() { | |||
45 | ${IPKG_TARGET} update | 45 | ${IPKG_TARGET} update |
46 | ${IPKG_TARGET} install ${TOOLCHAIN_TARGET_TASK} | 46 | ${IPKG_TARGET} install ${TOOLCHAIN_TARGET_TASK} |
47 | 47 | ||
48 | install -d ${SDK_OUTPUT}/${SDKPATH}/usr/lib/opkg | 48 | install -d ${SDK_OUTPUT}/${SDKPATHNATIVE}${libdir_nativesdk}/opkg |
49 | mv ${SDK_OUTPUT}/usr/lib/opkg/* ${SDK_OUTPUT}/${SDKPATH}/usr/lib/opkg/ | 49 | mv ${SDK_OUTPUT}/usr/lib/opkg/* ${SDK_OUTPUT}/${SDKPATHNATIVE}${libdir_nativesdk}/opkg/ |
50 | rm -Rf ${SDK_OUTPUT}/usr/lib | 50 | rm -Rf ${SDK_OUTPUT}/usr |
51 | 51 | ||
52 | # Don't ship any libGL in the SDK | 52 | # Don't ship any libGL in the SDK |
53 | rm -rf ${SDK_OUTPUT}/${SDKPATH}/usr/lib/libGL* | 53 | rm -rf ${SDK_OUTPUT}/${SDKPATHNATIVE}${libdir_nativesdk}/libGL* |
54 | 54 | ||
55 | install -d ${SDK_OUTPUT}/${SDKPATH}/${TARGET_SYS}/${sysconfdir} | 55 | install -d ${SDK_OUTPUT}/${SDKTARGETSYSROOT}/${sysconfdir} |
56 | install -m 0644 ${IPKGCONF_TARGET} ${IPKGCONF_SDK} ${SDK_OUTPUT}/${SDKPATH}/${TARGET_SYS}/${sysconfdir}/ | 56 | install -m 0644 ${IPKGCONF_TARGET} ${IPKGCONF_SDK} ${SDK_OUTPUT}/${SDKTARGETSYSROOT}/${sysconfdir}/ |
57 | 57 | ||
58 | install -d ${SDK_OUTPUT}/${SDKPATH}/${sysconfdir} | 58 | install -d ${SDK_OUTPUT}/${SDKPATHNATIVE}/${sysconfdir} |
59 | install -m 0644 ${IPKGCONF_SDK} ${SDK_OUTPUT}/${SDKPATH}/${sysconfdir}/ | 59 | install -m 0644 ${IPKGCONF_SDK} ${SDK_OUTPUT}/${SDKPATHNATIVE}/${sysconfdir}/ |
60 | 60 | ||
61 | # extract and store ipks, pkgdata and shlibs data | 61 | # Can copy pstage files here |
62 | target_pkgs=`cat ${SDK_OUTPUT}/${SDKPATH}/${TARGET_SYS}/usr/lib/opkg/status | grep Package: | cut -f 2 -d ' '` | 62 | # target_pkgs=`cat ${SDK_OUTPUT}/${SDKTARGETSYSROOT}/usr/lib/opkg/status | grep Package: | cut -f 2 -d ' '` |
63 | mkdir -p ${SDK_OUTPUT2}/${SDKPATH}/ipk/ | ||
64 | mkdir -p ${SDK_OUTPUT2}/${SDKPATH}/pkgdata/runtime/ | ||
65 | mkdir -p ${SDK_OUTPUT2}/${SDKPATH}/${TARGET_SYS}/shlibs/ | ||
66 | for pkg in $target_pkgs ; do | ||
67 | for arch in $revipkgarchs; do | ||
68 | pkgnames=${DEPLOY_DIR_IPK}/$arch/${pkg}_*_$arch.ipk | ||
69 | if [ -e $pkgnames ]; then | ||
70 | echo "Found $pkgnames" | ||
71 | cp $pkgnames ${SDK_OUTPUT2}/${SDKPATH}/ipk/ | ||
72 | orig_pkg=`opkg-list-fields $pkgnames | grep OE: | cut -d ' ' -f2` | ||
73 | pkg_subdir=$arch${TARGET_VENDOR}${@['-' + bb.data.getVar('TARGET_OS', d, 1), ''][bb.data.getVar('TARGET_OS', d, 1) == ('' or 'custom')]} | ||
74 | mkdir -p ${SDK_OUTPUT2}/${SDKPATH}/pkgdata/$pkg_subdir/runtime | ||
75 | cp ${TMPDIR}/pkgdata/$pkg_subdir/$orig_pkg ${SDK_OUTPUT2}/${SDKPATH}/pkgdata/$pkg_subdir/ | ||
76 | subpkgs=`cat ${TMPDIR}/pkgdata/$pkg_subdir/$orig_pkg | grep PACKAGES: | cut -b 10-` | ||
77 | for subpkg in $subpkgs; do | ||
78 | cp ${TMPDIR}/pkgdata/$pkg_subdir/runtime/$subpkg ${SDK_OUTPUT2}/${SDKPATH}/pkgdata/$pkg_subdir/runtime/ | ||
79 | if [ -e ${TMPDIR}/pkgdata/$pkg_subdir/runtime/$subpkg.packaged ];then | ||
80 | cp ${TMPDIR}/pkgdata/$pkg_subdir/runtime/$subpkg.packaged ${SDK_OUTPUT2}/${SDKPATH}/pkgdata/$pkg_subdir/runtime/ | ||
81 | fi | ||
82 | if [ -e ${STAGING_DIR_TARGET}/shlibs/$subpkg.list ]; then | ||
83 | cp ${STAGING_DIR_TARGET}/shlibs/$subpkg.* ${SDK_OUTPUT2}/${SDKPATH}/${TARGET_SYS}/shlibs/ | ||
84 | fi | ||
85 | done | ||
86 | break | ||
87 | fi | ||
88 | done | ||
89 | done | ||
90 | 63 | ||
91 | # Fix or remove broken .la files | 64 | # Fix or remove broken .la files |
92 | for i in `find ${SDK_OUTPUT}/${SDKPATH}/${TARGET_SYS} -name \*.la`; do | 65 | for i in `find ${SDK_OUTPUT}/${SDKTARGETSYSROOT} -name \*.la`; do |
93 | sed -i -e "/^dependency_libs=/s,\([[:space:]']\)${base_libdir},\1${SDKPATH}/${TARGET_SYS}${base_libdir},g" \ | 66 | sed -i -e "/^dependency_libs=/s,\([[:space:]']\)${base_libdir},\1${SDKTARGETSYSROOT}${base_libdir},g" \ |
94 | -e "/^dependency_libs=/s,\([[:space:]']\)${libdir},\1${SDKPATH}/${TARGET_SYS}${libdir},g" \ | 67 | -e "/^dependency_libs=/s,\([[:space:]']\)${libdir},\1${SDKTARGETSYSROOT}${libdir},g" \ |
95 | -e "/^dependency_libs=/s,\-\([LR]\)${base_libdir},-\1${SDKPATH}/${TARGET_SYS}${base_libdir},g" \ | 68 | -e "/^dependency_libs=/s,\-\([LR]\)${base_libdir},-\1${SDKTARGETSYSROOT}${base_libdir},g" \ |
96 | -e "/^dependency_libs=/s,\-\([LR]\)${libdir},-\1${SDKPATH}/${TARGET_SYS}${libdir},g" \ | 69 | -e "/^dependency_libs=/s,\-\([LR]\)${libdir},-\1${SDKTARGETSYSROOT}${libdir},g" \ |
97 | -e 's/^installed=yes$/installed=no/' $i | 70 | -e 's/^installed=yes$/installed=no/' $i |
98 | done | 71 | done |
99 | rm -f ${SDK_OUTPUT}/${SDKPATH}/lib/*.la | 72 | #rm -f ${SDK_OUTPUT}/${SDKPATHNATIVE}/lib/*.la |
73 | rm -f ${SDK_OUTPUT}/${SDKPATHNATIVE}${libdir_nativesdk}/*.la | ||
100 | 74 | ||
101 | # Setup site file for external use | 75 | # Setup site file for external use |
102 | siteconfig=${SDK_OUTPUT}/${SDKPATH}/site-config-${TARGET_SYS} | 76 | siteconfig=${SDK_OUTPUT}/${SDKPATH}/site-config-${TARGET_SYS} |
@@ -108,21 +82,21 @@ do_populate_sdk() { | |||
108 | # Create environment setup script | 82 | # Create environment setup script |
109 | script=${SDK_OUTPUT}/${SDKPATH}/environment-setup-${TARGET_SYS} | 83 | script=${SDK_OUTPUT}/${SDKPATH}/environment-setup-${TARGET_SYS} |
110 | touch $script | 84 | touch $script |
111 | echo 'export PATH=${SDKPATH}/bin:$PATH' >> $script | 85 | echo 'export PATH=${SDKPATHNATIVE}${bindir_nativesdk}:$PATH' >> $script |
112 | echo 'export PKG_CONFIG_SYSROOT_DIR=${SDKPATH}/${TARGET_SYS}' >> $script | 86 | echo 'export PKG_CONFIG_SYSROOT_DIR=${SDKTARGETSYSROOT}' >> $script |
113 | echo 'export PKG_CONFIG_PATH=${SDKPATH}/${TARGET_SYS}${libdir}/pkgconfig' >> $script | 87 | echo 'export PKG_CONFIG_PATH=${SDKTARGETSYSROOT}${libdir}/pkgconfig' >> $script |
114 | echo 'export CONFIG_SITE=${SDKPATH}/site-config-${TARGET_SYS}' >> $script | 88 | echo 'export CONFIG_SITE=${SDKPATH}/site-config-${TARGET_SYS}' >> $script |
115 | echo 'export CC=${TARGET_PREFIX}gcc' >> $script | 89 | echo 'export CC=${TARGET_PREFIX}gcc' >> $script |
116 | echo 'export CONFIGURE_FLAGS="--target=${TARGET_SYS} --host=${TARGET_SYS} --build=${SDK_ARCH}-linux"' >> $script | 90 | echo 'export CONFIGURE_FLAGS="--target=${TARGET_SYS} --host=${TARGET_SYS} --build=${SDK_ARCH}-linux"' >> $script |
117 | if [ "${TARGET_OS}" = "darwin8" ]; then | 91 | if [ "${TARGET_OS}" = "darwin8" ]; then |
118 | echo 'export TARGET_CFLAGS="-I${SDKPATH}/${TARGET_SYS}${includedir}"' >> $script | 92 | echo 'export TARGET_CFLAGS="-I${SDKTARGETSYSROOT}${includedir}"' >> $script |
119 | echo 'export TARGET_LDFLAGS="-L${SDKPATH}/${TARGET_SYS}${libdir}"' >> $script | 93 | echo 'export TARGET_LDFLAGS="-L${SDKTARGETSYSROOT}${libdir}"' >> $script |
120 | # Workaround darwin toolchain sysroot path problems | 94 | # Workaround darwin toolchain sysroot path problems |
121 | cd ${SDK_OUTPUT}${SDKPATH}/${TARGET_SYS}/usr | 95 | cd ${SDK_OUTPUT}${SDKTARGETSYSROOT}/usr |
122 | ln -s /usr/local local | 96 | ln -s /usr/local local |
123 | fi | 97 | fi |
124 | echo "alias opkg='LD_LIBRARY_PATH=${SDKPATH}/lib ${SDKPATH}/bin/opkg-cl -f ${SDKPATH}/${sysconfdir}/opkg-sdk.conf -o ${SDKPATH}'" >> $script | 98 | echo "alias opkg='LD_LIBRARY_PATH=${SDKPATHNATIVE}${libdir_nativesdk} ${SDKPATHNATIVE}${bindir_nativesdk}/opkg-cl -f ${SDKPATHNATIVE}/${sysconfdir}/opkg-sdk.conf -o ${SDKPATHNATIVE}'" >> $script |
125 | echo "alias opkg-target='LD_LIBRARY_PATH=${SDKPATH}/lib ${SDKPATH}/bin/opkg-cl -f ${SDKPATH}/${TARGET_SYS}${sysconfdir}/opkg.conf -o ${SDKPATH}/${TARGET_SYS}'" >> $script | 99 | echo "alias opkg-target='LD_LIBRARY_PATH=${SDKPATHNATIVE}${libdir_nativesdk} ${SDKPATHNATIVE}${bindir_nativesdk}/opkg-cl -f ${SDKTARGETSYSROOT}${sysconfdir}/opkg.conf -o ${SDKTARGETSYSROOT}'" >> $script |
126 | 100 | ||
127 | # Add version information | 101 | # Add version information |
128 | versionfile=${SDK_OUTPUT}/${SDKPATH}/version-${TARGET_SYS} | 102 | versionfile=${SDK_OUTPUT}/${SDKPATH}/version-${TARGET_SYS} |
@@ -136,8 +110,6 @@ do_populate_sdk() { | |||
136 | mkdir -p ${SDK_DEPLOY} | 110 | mkdir -p ${SDK_DEPLOY} |
137 | cd ${SDK_OUTPUT} | 111 | cd ${SDK_OUTPUT} |
138 | fakeroot tar cfj ${SDK_DEPLOY}/${TOOLCHAIN_OUTPUTNAME}.tar.bz2 . | 112 | fakeroot tar cfj ${SDK_DEPLOY}/${TOOLCHAIN_OUTPUTNAME}.tar.bz2 . |
139 | cd ${SDK_OUTPUT2} | ||
140 | fakeroot tar cfj ${SDK_DEPLOY}/${TOOLCHAIN_OUTPUTNAME}-extras.tar.bz2 . | ||
141 | } | 113 | } |
142 | 114 | ||
143 | do_populate_sdk[nostamp] = "1" | 115 | do_populate_sdk[nostamp] = "1" |