[oe-commits] org.oe.dev meta-sdk, meta-sdk-sbox: these are general targets, so they should only contain a basic toolchain
koen commit
openembedded-commits at lists.openembedded.org
Fri Apr 6 12:07:24 UTC 2007
meta-sdk, meta-sdk-sbox: these are general targets, so they should only contain a basic toolchain
* attempt to make them generic instead of hardcoding 'arm-linux'
Author: koen at openembedded.org
Branch: org.openembedded.dev
Revision: 55afd742e7037c861468cec658b3b564e3ad9cf5
ViewMTN: http://monotone.openembedded.org/revision.psp?id=55afd742e7037c861468cec658b3b564e3ad9cf5
Files:
1
packages/meta/meta-sdk-sbox.bb
packages/meta/meta-sdk.bb
Diffs:
#
# mt diff -r636bac75e27918f87914b16fd745dd92dd014ea4 -r55afd742e7037c861468cec658b3b564e3ad9cf5
#
#
#
# patch "packages/meta/meta-sdk-sbox.bb"
# from [6e24d2ccdd6e99d6c9f698f0f2cdba71f152249a]
# to [1612a39c7f005a7a4e1262ce75c6a0e53310cbd9]
#
# patch "packages/meta/meta-sdk.bb"
# from [b7a259b8024130e4d0d3c2d658ba7fa78ec2fa14]
# to [1653acfe9105da485154734df513d00b9e63789a]
#
============================================================
--- packages/meta/meta-sdk-sbox.bb 6e24d2ccdd6e99d6c9f698f0f2cdba71f152249a
+++ packages/meta/meta-sdk-sbox.bb 1612a39c7f005a7a4e1262ce75c6a0e53310cbd9
@@ -1,7 +1,7 @@ PACKAGES = ""
DESCRIPTION = "Meta package for a Scratchbox SDK"
LICENSE = "MIT"
PACKAGES = ""
-PR = "r4"
+PR = "r5"
inherit rootfs_ipk sdk meta
@@ -16,10 +16,7 @@ TARGET_INSTALL = "\
TARGET_INSTALL = "\
task-sdk-base \
task-sdk-sbox \
- task-sdk-x11 \
- task-sdk-x11-ext \
- task-sdk-gpe \
- task-sdk-gpephone"
+ "
DEPENDS = "ipkg-native ipkg-utils-native fakeroot-native sed-native"
RDEPENDS = "${TARGET_INSTALL}"
@@ -62,7 +59,7 @@ EOF
#cp -pPR ${SDK_OUTPUT}/${prefix}/lib/* ${SDK_OUTPUT}/${prefix}/${TARGET_SYS}/lib
#rm -rf ${SDK_OUTPUT}/${prefix}/lib/*
- cp -pPR ${TMPDIR}/cross/${TARGET_SYS}/include/linux/ ${SDK_OUTPUT}/${prefix}/usr/include/
+ cp -pPR ${TMPDIR}/cross/${TARGET_SYS}/include/${TARGET_OS}/ ${SDK_OUTPUT}/${prefix}/usr/include/
cp -pPR ${TMPDIR}/cross/${TARGET_SYS}/include/asm/ ${SDK_OUTPUT}/${prefix}/usr/include/
chmod -R a+r ${SDK_OUTPUT}/${prefix}/usr/include/
find ${SDK_OUTPUT}/${prefix}/usr/include/ -type d | xargs chmod +x
============================================================
--- packages/meta/meta-sdk.bb b7a259b8024130e4d0d3c2d658ba7fa78ec2fa14
+++ packages/meta/meta-sdk.bb 1653acfe9105da485154734df513d00b9e63789a
@@ -1,7 +1,7 @@ DEPENDS = "ipkg-native ipkg-utils-native
DESCRIPTION = "Meta package for SDK including GPE and Opie"
LICENSE = "MIT"
DEPENDS = "ipkg-native ipkg-utils-native fakeroot-native sed-native"
-PR = "r11"
+PR = "r12"
inherit sdk meta
@@ -19,10 +19,7 @@ TARGET_INSTALL = "\
TARGET_INSTALL = "\
task-sdk-base \
- task-sdk-opie \
- task-sdk-x11 \
- task-sdk-x11-ext \
- task-sdk-gpe"
+ "
RDEPENDS = "${TARGET_INSTALL} ${HOST_INSTALL}"
@@ -65,7 +62,7 @@ EOF
mv ${SDK_OUTPUT}/${prefix}/${TARGET_SYS}/lib/gcc* ${SDK_OUTPUT}/${prefix}/lib
- cp -pPR ${TMPDIR}/cross/${TARGET_SYS}/include/linux/ ${SDK_OUTPUT}/${prefix}/${TARGET_SYS}/include/
+ cp -pPR ${TMPDIR}/cross/${TARGET_SYS}/include/${TARGET_OS}/ ${SDK_OUTPUT}/${prefix}/${TARGET_SYS}/include/
cp -pPR ${TMPDIR}/cross/${TARGET_SYS}/include/asm/ ${SDK_OUTPUT}/${prefix}/${TARGET_SYS}/include/
chmod -R a+r ${SDK_OUTPUT}/${prefix}/${TARGET_SYS}/include/
find ${SDK_OUTPUT}/${prefix}/${TARGET_SYS}/include/ -type d | xargs chmod +x
@@ -73,22 +70,22 @@ EOF
echo 'GROUP ( libpthread.so.0 libpthread_nonshared.a )' > ${SDK_OUTPUT}/${prefix}/${TARGET_SYS}/lib/libpthread.so
echo 'GROUP ( libc.so.6 libc_nonshared.a )' > ${SDK_OUTPUT}/${prefix}/${TARGET_SYS}/lib/libc.so
# remove unwanted housekeeping files
- mv ${SDK_OUTPUT}${libdir}/../arm-linux/lib/ipkg/status ${SDK_OUTPUT}/${prefix}/package-status
+ mv ${SDK_OUTPUT}${libdir}/../${TARGET_ARCH}-${TARGET_OS}/lib/ipkg/status ${SDK_OUTPUT}/${prefix}/package-status
rm -rf ${SDK_OUTPUT}${libdir}/ipkg
# remove unwanted executables
rm -rf ${SDK_OUTPUT}/${prefix}/sbin ${SDK_OUTPUT}/${prefix}/etc
# remove broken .la files
- rm ${SDK_OUTPUT}/${prefix}/arm-linux/lib/*.la
+ rm ${SDK_OUTPUT}/${prefix}/${TARGET_ARCH}-${TARGET_OS}/lib/*.la
# fix pkgconfig data files
- cd ${SDK_OUTPUT}/${prefix}/arm-linux/lib/pkgconfig
+ cd ${SDK_OUTPUT}/${prefix}/${TARGET_ARCH}-${TARGET_OS}/lib/pkgconfig
for f in *.pc ; do
- sed -i 's%=/usr%=${prefix}/arm-linux%g' "$f"
+ sed -i 's%=/usr%=${prefix}/${TARGET_ARCH}-${TARGET_OS}%g' "$f"
done
for f in *.pc ; do
- sed -i 's%${STAGING_DIR}%/usr/local/arm/oe%g' "$f"
+ sed -i 's%${STAGING_DIR}%/usr/local/${TARGET_ARCH}/oe%g' "$f"
done
mkdir -p ${SDK_DEPLOY}
More information about the Openembedded-commits
mailing list