diff options
author | Richard Purdie <richard@openedhand.com> | 2007-09-01 22:17:06 +0000 |
---|---|---|
committer | Richard Purdie <richard@openedhand.com> | 2007-09-01 22:17:06 +0000 |
commit | c6938aad87ce4b9ce25ecd020ecddfe62b319bcf (patch) | |
tree | bf38fd54cc10deb22025853094b3e33c4043d1b2 /meta/packages/meta/meta-toolchain.bb | |
parent | a7c63ec4828e08e0812f69a5be04422e5dd7b30a (diff) | |
download | poky-c6938aad87ce4b9ce25ecd020ecddfe62b319bcf.tar.gz |
Factor ipkg index and conf file creation into package_ipk.bbclass
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@2637 311d38ba-8fff-0310-9ca6-ca027cbcb966
Diffstat (limited to 'meta/packages/meta/meta-toolchain.bb')
-rw-r--r-- | meta/packages/meta/meta-toolchain.bb | 29 |
1 files changed, 7 insertions, 22 deletions
diff --git a/meta/packages/meta/meta-toolchain.bb b/meta/packages/meta/meta-toolchain.bb index 1a1bde46c0..a0f38404b0 100644 --- a/meta/packages/meta/meta-toolchain.bb +++ b/meta/packages/meta/meta-toolchain.bb | |||
@@ -1,21 +1,15 @@ | |||
1 | DESCRIPTION = "Meta package for building a installable toolchain" | 1 | DESCRIPTION = "Meta package for building a installable toolchain" |
2 | LICENSE = "MIT" | 2 | LICENSE = "MIT" |
3 | DEPENDS = "ipkg-native ipkg-utils-native fakeroot-native sed-native" | 3 | DEPENDS = "ipkg-native ipkg-utils-native fakeroot-native sed-native" |
4 | PR = "r3" | ||
5 | 4 | ||
6 | inherit sdk | 5 | inherit sdk meta |
7 | |||
8 | PACKAGES = "" | ||
9 | |||
10 | BUILD_ALL_DEPS = "1" | ||
11 | do_build[recrdeptask] = "do_build" | ||
12 | 6 | ||
13 | SDK_DIR = "${WORKDIR}/sdk" | 7 | SDK_DIR = "${WORKDIR}/sdk" |
14 | SDK_OUTPUT = "${SDK_DIR}/image" | 8 | SDK_OUTPUT = "${SDK_DIR}/image" |
15 | SDK_DEPLOY = "${TMPDIR}/deploy/sdk" | 9 | SDK_DEPLOY = "${TMPDIR}/deploy/sdk" |
16 | 10 | ||
17 | IPKG_HOST = "ipkg-cl -f ${SDK_DIR}/ipkg-host.conf -o ${SDK_OUTPUT}" | 11 | IPKG_HOST = "ipkg-cl -f ${IPKGCONF_SDK} -o ${SDK_OUTPUT}" |
18 | IPKG_TARGET = "ipkg-cl -f ${SDK_DIR}/ipkg-target.conf -o ${SDK_OUTPUT}/${prefix}" | 12 | IPKG_TARGET = "ipkg-cl -f ${IPKGCONF_TARGET} -o ${SDK_OUTPUT}/${prefix}" |
19 | 13 | ||
20 | HOST_INSTALL = "task-poky-standalone-sdk-host" | 14 | HOST_INSTALL = "task-poky-standalone-sdk-host" |
21 | 15 | ||
@@ -30,20 +24,11 @@ do_populate_sdk() { | |||
30 | rm -rf ${SDK_OUTPUT} | 24 | rm -rf ${SDK_OUTPUT} |
31 | mkdir -p ${SDK_OUTPUT} | 25 | mkdir -p ${SDK_OUTPUT} |
32 | 26 | ||
33 | cat <<EOF >${SDK_DIR}/ipkg-host.conf | 27 | package_generate_ipkg_conf |
34 | src oe file:${DEPLOY_DIR_IPK} | 28 | |
35 | EOF | 29 | for arch in ${PACKAGE_ARCHS}; do |
36 | cat <<EOF >${SDK_DIR}/ipkg-target.conf | ||
37 | src oe file:${DEPLOY_DIR_IPK} | ||
38 | EOF | ||
39 | ipkgarchs="${PACKAGE_ARCHS}" | ||
40 | priority=1 | ||
41 | for arch in $ipkgarchs; do | ||
42 | echo "arch $arch $priority" >> ${SDK_DIR}/ipkg-target.conf | ||
43 | echo "arch ${BUILD_ARCH}-$arch-sdk $priority" >> ${SDK_DIR}/ipkg-host.conf | ||
44 | priority=$(expr $priority + 5) | ||
45 | revipkgarchs="$arch $revipkgarchs" | 30 | revipkgarchs="$arch $revipkgarchs" |
46 | done | 31 | done |
47 | 32 | ||
48 | rm -r ${SDK_OUTPUT} | 33 | rm -r ${SDK_OUTPUT} |
49 | mkdir -p ${SDK_OUTPUT} | 34 | mkdir -p ${SDK_OUTPUT} |