mirror of
https://git.yoctoproject.org/poky
synced 2026-06-01 00:59:48 +00:00
meta-toolchain: Generate site config files and an environmental setup script
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@3365 311d38ba-8fff-0310-9ca6-ca027cbcb966
This commit is contained in:
@@ -93,17 +93,34 @@ do_populate_sdk() {
|
|||||||
done
|
done
|
||||||
done
|
done
|
||||||
|
|
||||||
# remove unwanted executables
|
# Remove unwanted executables
|
||||||
rm -rf ${SDK_OUTPUT}/${prefix}/sbin ${SDK_OUTPUT}/${prefix}/etc
|
rm -rf ${SDK_OUTPUT}/${prefix}/sbin ${SDK_OUTPUT}/${prefix}/etc
|
||||||
|
|
||||||
# remove broken .la files
|
# Remove broken .la files
|
||||||
rm -f ${SDK_OUTPUT}/${prefix}/${TARGET_SYS}/lib/*.la
|
rm -f ${SDK_OUTPUT}/${prefix}/${TARGET_SYS}/lib/*.la
|
||||||
|
|
||||||
|
# Generate link for sysroot use
|
||||||
# /usr/local/poky/eabi-glibc/arm/arm-poky-linux-gnueabi/usr -> .
|
# /usr/local/poky/eabi-glibc/arm/arm-poky-linux-gnueabi/usr -> .
|
||||||
cd ${SDK_OUTPUT}/${prefix}/${TARGET_SYS}
|
cd ${SDK_OUTPUT}/${prefix}/${TARGET_SYS}
|
||||||
ln -sf . usr
|
ln -sf . usr
|
||||||
|
|
||||||
mkdir -p ${SDK_DEPLOY}
|
# Setup site file for external use
|
||||||
|
siteconfig=${SDK_OUTPUT}/${prefix}/site-config
|
||||||
|
touch $siteconfig
|
||||||
|
for sitefile in ${CONFIG_SITE} ; do
|
||||||
|
cat $sitefile >> $siteconfig
|
||||||
|
done
|
||||||
|
|
||||||
|
# Create environment setup script
|
||||||
|
script=${SDK_OUTPUT}/${prefix}/environment-setup
|
||||||
|
touch $script
|
||||||
|
echo 'export PATH=${prefix}/bin:$PATH' >> $script
|
||||||
|
echo 'export PKG_CONFIG_SYSROOT_DIR=${prefix}/${TARGET_SYS}' >> $script
|
||||||
|
echo 'export PKG_CONFIG_PATH=${prefix}/${TARGET_SYS}/lib/pkgconfig' >> $script
|
||||||
|
echo 'export CONFIG_SITE=${prefix}/site-config' >> $script
|
||||||
|
|
||||||
|
# Package it up
|
||||||
|
mkdir -p ${SDK_DEPLOY}
|
||||||
cd ${SDK_OUTPUT}
|
cd ${SDK_OUTPUT}
|
||||||
fakeroot tar cfj ${SDK_DEPLOY}/${SDK_NAME}-toolchain-${DISTRO_VERSION}.tar.bz2 .
|
fakeroot tar cfj ${SDK_DEPLOY}/${SDK_NAME}-toolchain-${DISTRO_VERSION}.tar.bz2 .
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user