diff options
author | Richard Purdie <rpurdie@linux.intel.com> | 2010-09-20 14:18:45 +0100 |
---|---|---|
committer | Richard Purdie <rpurdie@linux.intel.com> | 2010-09-20 14:18:45 +0100 |
commit | 79a4501a2ead92cb512eef0bd3dfe133d0e5d799 (patch) | |
tree | 5f82f1971c81034799bd5ab330e54b281020fc24 /meta/recipes-tbd | |
parent | 03d9669cbcc35a49120b9cc277723bccd93f4cf3 (diff) | |
download | poky-79a4501a2ead92cb512eef0bd3dfe133d0e5d799.tar.gz |
Complete packages -> recipes transition
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
Diffstat (limited to 'meta/recipes-tbd')
-rw-r--r-- | meta/recipes-tbd/meta/external-csl-toolchain/SUPPORTED | 4 | ||||
-rw-r--r-- | meta/recipes-tbd/meta/external-csl-toolchain_2006q3-27.bb | 57 | ||||
-rw-r--r-- | meta/recipes-tbd/meta/external-csl-toolchain_2007q3-51.bb | 56 | ||||
-rw-r--r-- | meta/recipes-tbd/meta/external-csl-toolchain_2008q3-72.bb | 60 | ||||
-rw-r--r-- | meta/recipes-tbd/meta/external-poky-toolchain.bb | 39 | ||||
-rw-r--r-- | meta/recipes-tbd/meta/meta-ide-support.bb | 14 | ||||
-rw-r--r-- | meta/recipes-tbd/meta/meta-toolchain-sdk.bb | 4 | ||||
-rw-r--r-- | meta/recipes-tbd/meta/meta-toolchain.bb | 100 | ||||
-rw-r--r-- | meta/recipes-tbd/meta/package-index.bb | 29 | ||||
-rwxr-xr-x | meta/recipes-tbd/meta/run-postinsts/run-postinsts | 36 | ||||
-rw-r--r-- | meta/recipes-tbd/meta/run-postinsts/run-postinsts.awk | 30 | ||||
-rw-r--r-- | meta/recipes-tbd/meta/run-postinsts_1.0.bb | 26 | ||||
-rw-r--r-- | meta/recipes-tbd/meta/staging-linkage_1.0.bb | 27 |
13 files changed, 482 insertions, 0 deletions
diff --git a/meta/recipes-tbd/meta/external-csl-toolchain/SUPPORTED b/meta/recipes-tbd/meta/external-csl-toolchain/SUPPORTED new file mode 100644 index 0000000000..fe9406acd1 --- /dev/null +++ b/meta/recipes-tbd/meta/external-csl-toolchain/SUPPORTED | |||
@@ -0,0 +1,4 @@ | |||
1 | en_GB.UTF-8 UTF-8 | ||
2 | en_GB ISO-8859-1 | ||
3 | en_US.UTF-8 UTF-8 | ||
4 | en_US ISO-8859-1 | ||
diff --git a/meta/recipes-tbd/meta/external-csl-toolchain_2006q3-27.bb b/meta/recipes-tbd/meta/external-csl-toolchain_2006q3-27.bb new file mode 100644 index 0000000000..197c288f1a --- /dev/null +++ b/meta/recipes-tbd/meta/external-csl-toolchain_2006q3-27.bb | |||
@@ -0,0 +1,57 @@ | |||
1 | INHIBIT_DEFAULT_DEPS = "1" | ||
2 | |||
3 | PROVIDES = "\ | ||
4 | linux-libc-headers \ | ||
5 | virtual/arm-none-linux-gnueabi-gcc \ | ||
6 | virtual/arm-none-linux-gnueabi-g++ \ | ||
7 | virtual/arm-none-linux-gnueabi-gcc-initial \ | ||
8 | virtual/arm-none-linux-gnueabi-binutils \ | ||
9 | virtual/arm-none-linux-gnueabi-libc-for-gcc \ | ||
10 | virtual/libc \ | ||
11 | virtual/libintl \ | ||
12 | virtual/libiconv \ | ||
13 | glibc-thread-db \ | ||
14 | virtual/linux-libc-headers " | ||
15 | RPROVIDES = "glibc-utils libsegfault glibc-thread-db" | ||
16 | PACKAGES_DYNAMIC = "glibc-gconv-*" | ||
17 | PR = "r3" | ||
18 | |||
19 | SRC_URI = "http://www.codesourcery.com/public/gnu_toolchain/arm-none-linux-gnueabi/arm-${PV}-arm-none-linux-gnueabi-i686-pc-linux-gnu.tar.bz2 \ | ||
20 | file://SUPPORTED" | ||
21 | |||
22 | S = "${WORKDIR}/arm-2006q3" | ||
23 | |||
24 | do_install() { | ||
25 | install -d ${D}${sysconfdir} ${D}${bindir} ${D}${sbindir} ${D}${base_bindir} ${D}${libdir} | ||
26 | install -d ${D}${base_libdir} ${D}${base_sbindir} ${D}${datadir} | ||
27 | |||
28 | cp -a ${S}/arm-none-linux-gnueabi/libc/lib/* ${D}${base_libdir} | ||
29 | cp -a ${S}/arm-none-linux-gnueabi/libc/etc/* ${D}${sysconfdir} | ||
30 | cp -a ${S}/arm-none-linux-gnueabi/libc/sbin/* ${D}${base_sbindir} | ||
31 | cp -a ${S}/arm-none-linux-gnueabi/libc/usr/* ${D}/usr | ||
32 | } | ||
33 | |||
34 | GLIBC_INTERNAL_USE_BINARY_LOCALE ?= "compile" | ||
35 | |||
36 | inherit libc-package | ||
37 | |||
38 | PACKAGES += "libgcc libgcc-dev libstdc++ libstdc++-dev linux-libc-headers" | ||
39 | FILES_libgcc = "${base_libdir}/libgcc_s.so.1" | ||
40 | FILES_libgcc-dev = "${base_libdir}/libgcc_s.so" | ||
41 | FILES_libstdc++ = "${libdir}/libstdc++.so.*" | ||
42 | FILES_libstdc++-dev = "${includedir}/c++/${PV} \ | ||
43 | ${libdir}/libstdc++.so \ | ||
44 | ${libdir}/libstdc++.la \ | ||
45 | ${libdir}/libstdc++.a \ | ||
46 | ${libdir}/libsupc++.la \ | ||
47 | ${libdir}/libsupc++.a" | ||
48 | FILES_linux-libc-headers = "${includedir}/asm* \ | ||
49 | ${includedir}/linux \ | ||
50 | ${includedir}/mtd \ | ||
51 | ${includedir}/rdma \ | ||
52 | ${includedir}/scsi \ | ||
53 | ${includedir}/sound \ | ||
54 | ${includedir}/video \ | ||
55 | " | ||
56 | |||
57 | |||
diff --git a/meta/recipes-tbd/meta/external-csl-toolchain_2007q3-51.bb b/meta/recipes-tbd/meta/external-csl-toolchain_2007q3-51.bb new file mode 100644 index 0000000000..ce75e716e7 --- /dev/null +++ b/meta/recipes-tbd/meta/external-csl-toolchain_2007q3-51.bb | |||
@@ -0,0 +1,56 @@ | |||
1 | INHIBIT_DEFAULT_DEPS = "1" | ||
2 | |||
3 | PROVIDES = "\ | ||
4 | linux-libc-headers \ | ||
5 | virtual/arm-none-linux-gnueabi-gcc \ | ||
6 | virtual/arm-none-linux-gnueabi-g++ \ | ||
7 | virtual/arm-none-linux-gnueabi-gcc-initial \ | ||
8 | virtual/arm-none-linux-gnueabi-binutils \ | ||
9 | virtual/arm-none-linux-gnueabi-libc-for-gcc \ | ||
10 | virtual/libc \ | ||
11 | virtual/libintl \ | ||
12 | virtual/libiconv \ | ||
13 | glibc-thread-db \ | ||
14 | virtual/linux-libc-headers " | ||
15 | RPROVIDES = "glibc-utils libsegfault glibc-thread-db" | ||
16 | PACKAGES_DYNAMIC = "glibc-gconv-*" | ||
17 | PR = "r1" | ||
18 | |||
19 | SRC_URI = "http://www.codesourcery.com/public/gnu_toolchain/arm-none-linux-gnueabi/arm-${PV}-arm-none-linux-gnueabi-i686-pc-linux-gnu.tar.bz2 \ | ||
20 | file://SUPPORTED" | ||
21 | |||
22 | S = "${WORKDIR}/arm-2007q3" | ||
23 | |||
24 | do_install() { | ||
25 | install -d ${D}${sysconfdir} ${D}${bindir} ${D}${sbindir} ${D}${base_bindir} ${D}${libdir} | ||
26 | install -d ${D}${base_libdir} ${D}${base_sbindir} ${D}${datadir} | ||
27 | |||
28 | cp -a ${S}/arm-none-linux-gnueabi/libc/lib/* ${D}${base_libdir} | ||
29 | cp -a ${S}/arm-none-linux-gnueabi/libc/etc/* ${D}${sysconfdir} | ||
30 | cp -a ${S}/arm-none-linux-gnueabi/libc/sbin/* ${D}${base_sbindir} | ||
31 | cp -a ${S}/arm-none-linux-gnueabi/libc/usr/* ${D}/usr | ||
32 | } | ||
33 | |||
34 | GLIBC_INTERNAL_USE_BINARY_LOCALE ?= "compile" | ||
35 | |||
36 | inherit libc-package | ||
37 | |||
38 | PACKAGES += "libgcc libgcc-dev libstdc++ libstdc++-dev linux-libc-headers" | ||
39 | FILES_libgcc = "${base_libdir}/libgcc_s.so.1" | ||
40 | FILES_libgcc-dev = "${base_libdir}/libgcc_s.so" | ||
41 | FILES_libstdc++ = "${libdir}/libstdc++.so.*" | ||
42 | FILES_libstdc++-dev = "${includedir}/c++/${PV} \ | ||
43 | ${libdir}/libstdc++.so \ | ||
44 | ${libdir}/libstdc++.la \ | ||
45 | ${libdir}/libstdc++.a \ | ||
46 | ${libdir}/libsupc++.la \ | ||
47 | ${libdir}/libsupc++.a" | ||
48 | FILES_linux-libc-headers = "${includedir}/asm* \ | ||
49 | ${includedir}/linux \ | ||
50 | ${includedir}/mtd \ | ||
51 | ${includedir}/rdma \ | ||
52 | ${includedir}/scsi \ | ||
53 | ${includedir}/sound \ | ||
54 | ${includedir}/video \ | ||
55 | " | ||
56 | |||
diff --git a/meta/recipes-tbd/meta/external-csl-toolchain_2008q3-72.bb b/meta/recipes-tbd/meta/external-csl-toolchain_2008q3-72.bb new file mode 100644 index 0000000000..20e1690196 --- /dev/null +++ b/meta/recipes-tbd/meta/external-csl-toolchain_2008q3-72.bb | |||
@@ -0,0 +1,60 @@ | |||
1 | INHIBIT_DEFAULT_DEPS = "1" | ||
2 | |||
3 | PROVIDES = "\ | ||
4 | linux-libc-headers \ | ||
5 | virtual/arm-none-linux-gnueabi-gcc \ | ||
6 | virtual/arm-none-linux-gnueabi-g++ \ | ||
7 | virtual/arm-none-linux-gnueabi-gcc-initial \ | ||
8 | virtual/arm-none-linux-gnueabi-gcc-intermediate \ | ||
9 | virtual/arm-none-linux-gnueabi-binutils \ | ||
10 | virtual/arm-none-linux-gnueabi-libc-for-gcc \ | ||
11 | virtual/libc \ | ||
12 | virtual/libintl \ | ||
13 | virtual/libiconv \ | ||
14 | glibc-thread-db \ | ||
15 | virtual/linux-libc-headers " | ||
16 | RPROVIDES = "glibc-utils libsegfault glibc-thread-db" | ||
17 | PACKAGES_DYNAMIC = "glibc-gconv-*" | ||
18 | PR = "r1" | ||
19 | |||
20 | #SRC_URI = "http://www.codesourcery.com/public/gnu_toolchain/arm-none-linux-gnueabi/arm-${PV}-arm-none-linux-gnueabi-i686-pc-linux-gnu.tar.bz2 \ | ||
21 | |||
22 | SRC_URI = "file://SUPPORTED" | ||
23 | |||
24 | do_install() { | ||
25 | echo "EXTERNAL_TOOLCHAIN is ${EXTERNAL_TOOLCHAIN}" | ||
26 | install -d ${D}${sysconfdir} ${D}${bindir} ${D}${sbindir} ${D}${base_bindir} ${D}${libdir} | ||
27 | install -d ${D}${base_libdir} ${D}${base_sbindir} ${D}${datadir} | ||
28 | |||
29 | cp -a ${EXTERNAL_TOOLCHAIN}/arm-none-linux-gnueabi/libc/lib/* ${D}${base_libdir} | ||
30 | cp -a ${EXTERNAL_TOOLCHAIN}/arm-none-linux-gnueabi/libc/etc/* ${D}${sysconfdir} | ||
31 | cp -a ${EXTERNAL_TOOLCHAIN}/arm-none-linux-gnueabi/libc/sbin/* ${D}${base_sbindir} | ||
32 | cp -a ${EXTERNAL_TOOLCHAIN}/arm-none-linux-gnueabi/libc/usr/* ${D}/usr | ||
33 | |||
34 | sed -i -e "s# /lib# ../../lib#g" -e "s# /usr/lib# .#g" ${D}${libdir}/libc.so | ||
35 | sed -i -e "s# /lib# ../../lib#g" -e "s# /usr/lib# .#g" ${D}${libdir}/libpthread.so | ||
36 | } | ||
37 | |||
38 | GLIBC_INTERNAL_USE_BINARY_LOCALE ?= "compile" | ||
39 | |||
40 | inherit libc-package | ||
41 | |||
42 | PACKAGES += "libgcc libgcc-dev libstdc++ libstdc++-dev linux-libc-headers" | ||
43 | FILES_libgcc = "${base_libdir}/libgcc_s.so.1" | ||
44 | FILES_libgcc-dev = "${base_libdir}/libgcc_s.so" | ||
45 | FILES_libstdc++ = "${libdir}/libstdc++.so.*" | ||
46 | FILES_libstdc++-dev = "${includedir}/c++/${PV} \ | ||
47 | ${libdir}/libstdc++.so \ | ||
48 | ${libdir}/libstdc++.la \ | ||
49 | ${libdir}/libstdc++.a \ | ||
50 | ${libdir}/libsupc++.la \ | ||
51 | ${libdir}/libsupc++.a" | ||
52 | FILES_linux-libc-headers = "${includedir}/asm* \ | ||
53 | ${includedir}/linux \ | ||
54 | ${includedir}/mtd \ | ||
55 | ${includedir}/rdma \ | ||
56 | ${includedir}/scsi \ | ||
57 | ${includedir}/sound \ | ||
58 | ${includedir}/video \ | ||
59 | " | ||
60 | |||
diff --git a/meta/recipes-tbd/meta/external-poky-toolchain.bb b/meta/recipes-tbd/meta/external-poky-toolchain.bb new file mode 100644 index 0000000000..081eff6ad8 --- /dev/null +++ b/meta/recipes-tbd/meta/external-poky-toolchain.bb | |||
@@ -0,0 +1,39 @@ | |||
1 | PROVIDES = "\ | ||
2 | linux-libc-headers \ | ||
3 | virtual/${TARGET_PREFIX}gcc \ | ||
4 | virtual/${TARGET_PREFIX}gcc-intermediate \ | ||
5 | virtual/${TARGET_PREFIX}gcc-initial \ | ||
6 | virtual/${TARGET_PREFIX}binutils \ | ||
7 | virtual/${TARGET_PREFIX}libc-for-gcc \ | ||
8 | virtual/libc \ | ||
9 | virtual/libintl \ | ||
10 | virtual/libiconv \ | ||
11 | virtual/linux-libc-headers " | ||
12 | RPROVIDES = "glibc-utils libsegfault glibc-thread-db libgcc-dev libstdc++-dev libstdc++" | ||
13 | PACKAGES_DYNAMIC = "glibc-gconv-*" | ||
14 | INHIBIT_DEFAULT_DEPS = "1" | ||
15 | PR = "r1" | ||
16 | |||
17 | PSTAGING_DISABLED = "1" | ||
18 | |||
19 | do_install() { | ||
20 | if [ ! -e ${prefix}/environment-setup ]; then | ||
21 | echo "The Poky toolchain could not be found in ${prefix}!" | ||
22 | exit 1 | ||
23 | fi | ||
24 | |||
25 | install -d ${DEPLOY_DIR}/ipk/ | ||
26 | install -d ${STAGING_DIR}/pkgdata/ | ||
27 | install -d ${STAGING_DIR_TARGET}/shlibs/ | ||
28 | install -d ${STAGING_DIR_TARGET}/${base_libdir}/ | ||
29 | install -d ${STAGING_DIR_TARGET}/${libdir}/ | ||
30 | install -d ${STAGING_DIR_TARGET}/${includedir}/ | ||
31 | |||
32 | cp -ar ${prefix}/ipk/* ${DEPLOY_DIR}/ipk/ | ||
33 | cp -ar ${prefix}/pkgdata/* ${STAGING_DIR}/pkgdata/ | ||
34 | cp -ar ${prefix}/${TARGET_SYS}/shlibs/* ${STAGING_DIR_TARGET}/shlibs/ | ||
35 | cp -ar ${prefix}/${TARGET_SYS}/lib/* ${STAGING_DIR_TARGET}/${base_libdir}/ | ||
36 | cp -ar ${prefix}/${TARGET_SYS}/usr/include/* ${STAGING_DIR_TARGET}/${includedir}/ | ||
37 | cp -ar ${prefix}/${TARGET_SYS}/usr/lib/* ${STAGING_DIR_TARGET}/${libdir}/ | ||
38 | } | ||
39 | |||
diff --git a/meta/recipes-tbd/meta/meta-ide-support.bb b/meta/recipes-tbd/meta/meta-ide-support.bb new file mode 100644 index 0000000000..70a0c64aba --- /dev/null +++ b/meta/recipes-tbd/meta/meta-ide-support.bb | |||
@@ -0,0 +1,14 @@ | |||
1 | DESCRIPTION = "Meta package for ensuring the build directory contains all appropriate toolchain packages for using an IDE" | ||
2 | LICENSE = "MIT" | ||
3 | DEPENDS = "virtual/libc gdb-cross" | ||
4 | PR = "r1" | ||
5 | |||
6 | inherit meta toolchain-scripts | ||
7 | |||
8 | do_populate_ide_support () { | ||
9 | toolchain_create_tree_env_script | ||
10 | } | ||
11 | |||
12 | do_populate_ide_support[nostamp] = "1" | ||
13 | do_populate_ide_support[recrdeptask] = "do_package_write" | ||
14 | addtask populate_ide_support before do_build after do_install | ||
diff --git a/meta/recipes-tbd/meta/meta-toolchain-sdk.bb b/meta/recipes-tbd/meta/meta-toolchain-sdk.bb new file mode 100644 index 0000000000..8572f021d7 --- /dev/null +++ b/meta/recipes-tbd/meta/meta-toolchain-sdk.bb | |||
@@ -0,0 +1,4 @@ | |||
1 | TOOLCHAIN_TARGET_SDKTASK ?= "task-poky-standalone-gmae-sdk-target task-poky-standalone-gmae-sdk-target-dbg" | ||
2 | TOOLCHAIN_TARGET_TASK = "${TOOLCHAIN_TARGET_SDKTASK}" | ||
3 | TOOLCHAIN_OUTPUTNAME = "${SDK_NAME}-toolchain-sdk-${DISTRO_VERSION}" | ||
4 | require meta-toolchain.bb | ||
diff --git a/meta/recipes-tbd/meta/meta-toolchain.bb b/meta/recipes-tbd/meta/meta-toolchain.bb new file mode 100644 index 0000000000..8054b5f7b8 --- /dev/null +++ b/meta/recipes-tbd/meta/meta-toolchain.bb | |||
@@ -0,0 +1,100 @@ | |||
1 | DESCRIPTION = "Meta package for building a installable toolchain" | ||
2 | LICENSE = "MIT" | ||
3 | DEPENDS = "opkg-native opkg-utils-native virtual/fakeroot-native sed-native" | ||
4 | |||
5 | inherit meta toolchain-scripts | ||
6 | |||
7 | SDK_DIR = "${WORKDIR}/sdk" | ||
8 | SDK_OUTPUT = "${SDK_DIR}/image" | ||
9 | SDK_DEPLOY = "${TMPDIR}/deploy/sdk" | ||
10 | |||
11 | SDKTARGETSYSROOT = "${SDKPATH}/sysroots/${TARGET_SYS}" | ||
12 | |||
13 | IPKG_HOST = "opkg-cl -f ${IPKGCONF_SDK} -o ${SDK_OUTPUT}" | ||
14 | IPKG_TARGET = "opkg-cl -f ${IPKGCONF_TARGET} -o ${SDK_OUTPUT}/${SDKTARGETSYSROOT}" | ||
15 | |||
16 | TOOLCHAIN_HOST_TASK ?= "task-sdk-host" | ||
17 | TOOLCHAIN_TARGET_TASK ?= "task-poky-standalone-sdk-target task-poky-standalone-sdk-target-dbg" | ||
18 | TOOLCHAIN_OUTPUTNAME ?= "${SDK_NAME}-toolchain-${DISTRO_VERSION}" | ||
19 | |||
20 | RDEPENDS = "${TOOLCHAIN_TARGET_TASK} ${TOOLCHAIN_HOST_TASK}" | ||
21 | |||
22 | EXCLUDE_FROM_WORLD = "1" | ||
23 | |||
24 | do_populate_sdk() { | ||
25 | rm -rf ${SDK_OUTPUT} | ||
26 | mkdir -p ${SDK_OUTPUT} | ||
27 | mkdir -p ${SDK_OUTPUT}${localstatedir}/lib/opkg/ | ||
28 | mkdir -p ${SDK_OUTPUT}/${SDKTARGETSYSROOT}${localstatedir}/lib/opkg/ | ||
29 | |||
30 | rm -f ${IPKGCONF_TARGET} | ||
31 | touch ${IPKGCONF_TARGET} | ||
32 | rm -f ${IPKGCONF_SDK} | ||
33 | touch ${IPKGCONF_SDK} | ||
34 | |||
35 | package_update_index_ipk | ||
36 | package_generate_ipkg_conf | ||
37 | |||
38 | for arch in ${PACKAGE_ARCHS}; do | ||
39 | revipkgarchs="$arch $revipkgarchs" | ||
40 | done | ||
41 | |||
42 | ${IPKG_HOST} update | ||
43 | ${IPKG_HOST} install ${TOOLCHAIN_HOST_TASK} | ||
44 | |||
45 | ${IPKG_TARGET} update | ||
46 | ${IPKG_TARGET} install ${TOOLCHAIN_TARGET_TASK} | ||
47 | |||
48 | install -d ${SDK_OUTPUT}/${SDKPATHNATIVE}${localstatedir_nativesdk}/lib/opkg | ||
49 | mv ${SDK_OUTPUT}/var/lib/opkg/* ${SDK_OUTPUT}/${SDKPATHNATIVE}${localstatedir_nativesdk}/lib/opkg/ | ||
50 | rm -Rf ${SDK_OUTPUT}/usr | ||
51 | |||
52 | # Don't ship any libGL in the SDK | ||
53 | rm -rf ${SDK_OUTPUT}/${SDKPATHNATIVE}${libdir_nativesdk}/libGL* | ||
54 | |||
55 | install -d ${SDK_OUTPUT}/${SDKTARGETSYSROOT}/${sysconfdir} | ||
56 | install -m 0644 ${IPKGCONF_TARGET} ${IPKGCONF_SDK} ${SDK_OUTPUT}/${SDKTARGETSYSROOT}/${sysconfdir}/ | ||
57 | |||
58 | install -d ${SDK_OUTPUT}/${SDKPATHNATIVE}/${sysconfdir} | ||
59 | install -m 0644 ${IPKGCONF_SDK} ${SDK_OUTPUT}/${SDKPATHNATIVE}/${sysconfdir}/ | ||
60 | |||
61 | # Can copy pstage files here | ||
62 | # target_pkgs=`cat ${SDK_OUTPUT}/${SDKTARGETSYSROOT}/var/lib/opkg/status | grep Package: | cut -f 2 -d ' '` | ||
63 | |||
64 | # Fix or remove broken .la files | ||
65 | for i in `find ${SDK_OUTPUT}/${SDKTARGETSYSROOT} -name \*.la`; do | ||
66 | sed -i -e "/^dependency_libs=/s,\([[:space:]']\)${base_libdir},\1${SDKTARGETSYSROOT}${base_libdir},g" \ | ||
67 | -e "/^dependency_libs=/s,\([[:space:]']\)${libdir},\1${SDKTARGETSYSROOT}${libdir},g" \ | ||
68 | -e "/^dependency_libs=/s,\-\([LR]\)${base_libdir},-\1${SDKTARGETSYSROOT}${base_libdir},g" \ | ||
69 | -e "/^dependency_libs=/s,\-\([LR]\)${libdir},-\1${SDKTARGETSYSROOT}${libdir},g" \ | ||
70 | -e 's/^installed=yes$/installed=no/' $i | ||
71 | done | ||
72 | #rm -f ${SDK_OUTPUT}/${SDKPATHNATIVE}/lib/*.la | ||
73 | rm -f ${SDK_OUTPUT}/${SDKPATHNATIVE}${libdir_nativesdk}/*.la | ||
74 | |||
75 | # Setup site file for external use | ||
76 | siteconfig=${SDK_OUTPUT}/${SDKPATH}/site-config-${MULTIMACH_TARGET_SYS} | ||
77 | touch $siteconfig | ||
78 | for sitefile in ${CONFIG_SITE} ; do | ||
79 | cat $sitefile >> $siteconfig | ||
80 | done | ||
81 | |||
82 | toolchain_create_sdk_env_script | ||
83 | |||
84 | # Add version information | ||
85 | versionfile=${SDK_OUTPUT}/${SDKPATH}/version-${MULTIMACH_TARGET_SYS} | ||
86 | touch $versionfile | ||
87 | echo 'Distro: ${DISTRO}' >> $versionfile | ||
88 | echo 'Distro Version: ${DISTRO_VERSION}' >> $versionfile | ||
89 | echo 'Metadata Revision: ${METADATA_REVISION}' >> $versionfile | ||
90 | echo 'Timestamp: ${DATETIME}' >> $versionfile | ||
91 | |||
92 | # Package it up | ||
93 | mkdir -p ${SDK_DEPLOY} | ||
94 | cd ${SDK_OUTPUT} | ||
95 | ${FAKEROOT} tar cfj ${SDK_DEPLOY}/${TOOLCHAIN_OUTPUTNAME}.tar.bz2 . | ||
96 | } | ||
97 | |||
98 | do_populate_sdk[nostamp] = "1" | ||
99 | do_populate_sdk[recrdeptask] = "do_package_write" | ||
100 | addtask populate_sdk before do_build after do_install | ||
diff --git a/meta/recipes-tbd/meta/package-index.bb b/meta/recipes-tbd/meta/package-index.bb new file mode 100644 index 0000000000..21822fe9da --- /dev/null +++ b/meta/recipes-tbd/meta/package-index.bb | |||
@@ -0,0 +1,29 @@ | |||
1 | DESCRIPTION = "Rebuild the package index" | ||
2 | LICENSE = "MIT" | ||
3 | |||
4 | INHIBIT_DEFAULT_DEPS = "1" | ||
5 | ALLOW_EMPTY = "1" | ||
6 | PACKAGES = "" | ||
7 | |||
8 | do_fetch() { | ||
9 | } | ||
10 | do_unpack() { | ||
11 | } | ||
12 | do_patch() { | ||
13 | } | ||
14 | do_configure() { | ||
15 | } | ||
16 | do_compile() { | ||
17 | } | ||
18 | do_install() { | ||
19 | } | ||
20 | |||
21 | do_build[nostamp] = "1" | ||
22 | do_build[dirs] = "${DEPLOY_DIR_IPK}" | ||
23 | do_build() { | ||
24 | set -ex | ||
25 | package_update_index_ipk | ||
26 | set +ex | ||
27 | } | ||
28 | |||
29 | EXCLUDE_FROM_WORLD = "1" | ||
diff --git a/meta/recipes-tbd/meta/run-postinsts/run-postinsts b/meta/recipes-tbd/meta/run-postinsts/run-postinsts new file mode 100755 index 0000000000..f632d1c7d3 --- /dev/null +++ b/meta/recipes-tbd/meta/run-postinsts/run-postinsts | |||
@@ -0,0 +1,36 @@ | |||
1 | #!/bin/sh | ||
2 | # | ||
3 | # Copyright 2007 Openedhand Ltd. | ||
4 | # | ||
5 | # Author: Richard Purdie <rpurdie@openedhand.com> | ||
6 | # | ||
7 | |||
8 | PKGSYSTEM=/var/dpkg | ||
9 | |||
10 | if [ ! -e $PKGSYSTEM/status ]; then | ||
11 | if [ -e /usr/lib/opkg/status ]; then | ||
12 | PKGSYSTEM=/usr/lib/opkg | ||
13 | else | ||
14 | echo "No package system found" | ||
15 | exit 1 | ||
16 | fi | ||
17 | fi | ||
18 | |||
19 | STAMP=$PKGSYSTEM/postinsts-done | ||
20 | STATFILE=$PKGSYSTEM/status | ||
21 | STATFILE2=$PKGSYSTEM/status2 | ||
22 | |||
23 | if [ -e $STAMP ]; then | ||
24 | exit 0 | ||
25 | fi | ||
26 | |||
27 | awk -f /usr/share/run-postinsts/run-postinsts.awk $STATFILE > $STATFILE2 | ||
28 | if [ $? = 0 ]; then | ||
29 | mv $STATFILE2 $STATFILE | ||
30 | touch $STAMP | ||
31 | exit 0 | ||
32 | else | ||
33 | rm -f $STATFILE2 | ||
34 | rm -f $STAMP | ||
35 | exit 1 | ||
36 | fi | ||
diff --git a/meta/recipes-tbd/meta/run-postinsts/run-postinsts.awk b/meta/recipes-tbd/meta/run-postinsts/run-postinsts.awk new file mode 100644 index 0000000000..09a1400cf4 --- /dev/null +++ b/meta/recipes-tbd/meta/run-postinsts/run-postinsts.awk | |||
@@ -0,0 +1,30 @@ | |||
1 | # | ||
2 | # Copyright 2007 Openedhand Ltd. | ||
3 | # | ||
4 | # Author: Richard Purdie <rpurdie@openedhand.com> | ||
5 | # | ||
6 | # Rather hacky proof of concept | ||
7 | # | ||
8 | |||
9 | BEGIN { | ||
10 | rc=system("test -d /usr/dpkg/info/") | ||
11 | if (rc==0) | ||
12 | pkgdir="/var/dpkg/info" | ||
13 | else | ||
14 | pkgdir="/usr/lib/opkg/info" | ||
15 | package="" | ||
16 | } | ||
17 | /Package:.*/ { | ||
18 | package = substr($0, 10) | ||
19 | } | ||
20 | /Status:.*unpacked.*/ { | ||
21 | print "Configuring: " package > "/dev/stderr" | ||
22 | ret = system(pkgdir "/" package ".postinst 1>&2") | ||
23 | if (ret == 0) | ||
24 | $0 = gensub("unpacked", "installed", 1) | ||
25 | else | ||
26 | print "Postinstall failed for " package > "/dev/stderr" | ||
27 | } | ||
28 | { | ||
29 | print $0 | ||
30 | } | ||
diff --git a/meta/recipes-tbd/meta/run-postinsts_1.0.bb b/meta/recipes-tbd/meta/run-postinsts_1.0.bb new file mode 100644 index 0000000000..f9559147e4 --- /dev/null +++ b/meta/recipes-tbd/meta/run-postinsts_1.0.bb | |||
@@ -0,0 +1,26 @@ | |||
1 | DESCRIPTION = "Run postinstall scripts on device using awk" | ||
2 | SECTION = "devel" | ||
3 | PR = "r6" | ||
4 | |||
5 | SRC_URI = "file://run-postinsts file://run-postinsts.awk" | ||
6 | |||
7 | INITSCRIPT_NAME = "run-postinsts" | ||
8 | INITSCRIPT_PARAMS = "start 98 S ." | ||
9 | |||
10 | inherit update-rc.d | ||
11 | |||
12 | do_configure() { | ||
13 | : | ||
14 | } | ||
15 | |||
16 | do_compile () { | ||
17 | : | ||
18 | } | ||
19 | |||
20 | do_install() { | ||
21 | install -d ${D}${sysconfdir}/init.d/ | ||
22 | install -m 0755 ${WORKDIR}/run-postinsts ${D}${sysconfdir}/init.d/ | ||
23 | |||
24 | install -d ${D}${datadir}/${PN}/ | ||
25 | install -m 0644 ${WORKDIR}/run-postinsts.awk ${D}${datadir}/${PN}/ | ||
26 | } | ||
diff --git a/meta/recipes-tbd/meta/staging-linkage_1.0.bb b/meta/recipes-tbd/meta/staging-linkage_1.0.bb new file mode 100644 index 0000000000..9ecc0d5af1 --- /dev/null +++ b/meta/recipes-tbd/meta/staging-linkage_1.0.bb | |||
@@ -0,0 +1,27 @@ | |||
1 | DESCRIPTION = "staging-linkage sets up symlinks in staging so old compilers continue to work with the sysroot staging layout changes" | ||
2 | SECTION = "devel" | ||
3 | PACKAGES = "" | ||
4 | |||
5 | INHIBIT_DEFAULT_DEPS = "1" | ||
6 | EXCLUDE_FROM_WORLD = "1" | ||
7 | PR = "r0" | ||
8 | |||
9 | SRC_URI = "" | ||
10 | |||
11 | do_configure() { | ||
12 | : | ||
13 | } | ||
14 | |||
15 | do_compile () { | ||
16 | : | ||
17 | } | ||
18 | |||
19 | PSTAGING_DISABLED = "1" | ||
20 | |||
21 | do_install () { | ||
22 | if [ -e ${STAGING_DIR_HOST}${base_libdir} ]; then | ||
23 | cp -pPRr ${STAGING_DIR_HOST}${base_libdir}/* ${STAGING_LIBDIR} | ||
24 | mv ${STAGING_DIR_HOST}${base_libdir}/ ${STAGING_DIR_HOST}${libdir}-oldbackup | ||
25 | fi | ||
26 | ln -s ${STAGING_LIBDIR}/ ${STAGING_DIR_HOST}${base_libdir} | ||
27 | } | ||