summaryrefslogtreecommitdiffstats
path: root/meta/recipes-tbd
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-tbd')
-rw-r--r--meta/recipes-tbd/meta/external-csl-toolchain/SUPPORTED4
-rw-r--r--meta/recipes-tbd/meta/external-csl-toolchain_2006q3-27.bb57
-rw-r--r--meta/recipes-tbd/meta/external-csl-toolchain_2007q3-51.bb56
-rw-r--r--meta/recipes-tbd/meta/external-csl-toolchain_2008q3-72.bb60
-rw-r--r--meta/recipes-tbd/meta/external-poky-toolchain.bb39
-rw-r--r--meta/recipes-tbd/meta/meta-ide-support.bb14
-rw-r--r--meta/recipes-tbd/meta/meta-toolchain-sdk.bb4
-rw-r--r--meta/recipes-tbd/meta/meta-toolchain.bb100
-rw-r--r--meta/recipes-tbd/meta/package-index.bb29
-rwxr-xr-xmeta/recipes-tbd/meta/run-postinsts/run-postinsts36
-rw-r--r--meta/recipes-tbd/meta/run-postinsts/run-postinsts.awk30
-rw-r--r--meta/recipes-tbd/meta/run-postinsts_1.0.bb26
-rw-r--r--meta/recipes-tbd/meta/staging-linkage_1.0.bb27
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 @@
1en_GB.UTF-8 UTF-8
2en_GB ISO-8859-1
3en_US.UTF-8 UTF-8
4en_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 @@
1INHIBIT_DEFAULT_DEPS = "1"
2
3PROVIDES = "\
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 "
15RPROVIDES = "glibc-utils libsegfault glibc-thread-db"
16PACKAGES_DYNAMIC = "glibc-gconv-*"
17PR = "r3"
18
19SRC_URI = "http://www.codesourcery.com/public/gnu_toolchain/arm-none-linux-gnueabi/arm-${PV}-arm-none-linux-gnueabi-i686-pc-linux-gnu.tar.bz2 \
20file://SUPPORTED"
21
22S = "${WORKDIR}/arm-2006q3"
23
24do_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
34GLIBC_INTERNAL_USE_BINARY_LOCALE ?= "compile"
35
36inherit libc-package
37
38PACKAGES += "libgcc libgcc-dev libstdc++ libstdc++-dev linux-libc-headers"
39FILES_libgcc = "${base_libdir}/libgcc_s.so.1"
40FILES_libgcc-dev = "${base_libdir}/libgcc_s.so"
41FILES_libstdc++ = "${libdir}/libstdc++.so.*"
42FILES_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"
48FILES_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 @@
1INHIBIT_DEFAULT_DEPS = "1"
2
3PROVIDES = "\
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 "
15RPROVIDES = "glibc-utils libsegfault glibc-thread-db"
16PACKAGES_DYNAMIC = "glibc-gconv-*"
17PR = "r1"
18
19SRC_URI = "http://www.codesourcery.com/public/gnu_toolchain/arm-none-linux-gnueabi/arm-${PV}-arm-none-linux-gnueabi-i686-pc-linux-gnu.tar.bz2 \
20file://SUPPORTED"
21
22S = "${WORKDIR}/arm-2007q3"
23
24do_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
34GLIBC_INTERNAL_USE_BINARY_LOCALE ?= "compile"
35
36inherit libc-package
37
38PACKAGES += "libgcc libgcc-dev libstdc++ libstdc++-dev linux-libc-headers"
39FILES_libgcc = "${base_libdir}/libgcc_s.so.1"
40FILES_libgcc-dev = "${base_libdir}/libgcc_s.so"
41FILES_libstdc++ = "${libdir}/libstdc++.so.*"
42FILES_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"
48FILES_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 @@
1INHIBIT_DEFAULT_DEPS = "1"
2
3PROVIDES = "\
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 "
16RPROVIDES = "glibc-utils libsegfault glibc-thread-db"
17PACKAGES_DYNAMIC = "glibc-gconv-*"
18PR = "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
22SRC_URI = "file://SUPPORTED"
23
24do_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
38GLIBC_INTERNAL_USE_BINARY_LOCALE ?= "compile"
39
40inherit libc-package
41
42PACKAGES += "libgcc libgcc-dev libstdc++ libstdc++-dev linux-libc-headers"
43FILES_libgcc = "${base_libdir}/libgcc_s.so.1"
44FILES_libgcc-dev = "${base_libdir}/libgcc_s.so"
45FILES_libstdc++ = "${libdir}/libstdc++.so.*"
46FILES_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"
52FILES_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 @@
1PROVIDES = "\
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 "
12RPROVIDES = "glibc-utils libsegfault glibc-thread-db libgcc-dev libstdc++-dev libstdc++"
13PACKAGES_DYNAMIC = "glibc-gconv-*"
14INHIBIT_DEFAULT_DEPS = "1"
15PR = "r1"
16
17PSTAGING_DISABLED = "1"
18
19do_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 @@
1DESCRIPTION = "Meta package for ensuring the build directory contains all appropriate toolchain packages for using an IDE"
2LICENSE = "MIT"
3DEPENDS = "virtual/libc gdb-cross"
4PR = "r1"
5
6inherit meta toolchain-scripts
7
8do_populate_ide_support () {
9 toolchain_create_tree_env_script
10}
11
12do_populate_ide_support[nostamp] = "1"
13do_populate_ide_support[recrdeptask] = "do_package_write"
14addtask 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 @@
1TOOLCHAIN_TARGET_SDKTASK ?= "task-poky-standalone-gmae-sdk-target task-poky-standalone-gmae-sdk-target-dbg"
2TOOLCHAIN_TARGET_TASK = "${TOOLCHAIN_TARGET_SDKTASK}"
3TOOLCHAIN_OUTPUTNAME = "${SDK_NAME}-toolchain-sdk-${DISTRO_VERSION}"
4require 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 @@
1DESCRIPTION = "Meta package for building a installable toolchain"
2LICENSE = "MIT"
3DEPENDS = "opkg-native opkg-utils-native virtual/fakeroot-native sed-native"
4
5inherit meta toolchain-scripts
6
7SDK_DIR = "${WORKDIR}/sdk"
8SDK_OUTPUT = "${SDK_DIR}/image"
9SDK_DEPLOY = "${TMPDIR}/deploy/sdk"
10
11SDKTARGETSYSROOT = "${SDKPATH}/sysroots/${TARGET_SYS}"
12
13IPKG_HOST = "opkg-cl -f ${IPKGCONF_SDK} -o ${SDK_OUTPUT}"
14IPKG_TARGET = "opkg-cl -f ${IPKGCONF_TARGET} -o ${SDK_OUTPUT}/${SDKTARGETSYSROOT}"
15
16TOOLCHAIN_HOST_TASK ?= "task-sdk-host"
17TOOLCHAIN_TARGET_TASK ?= "task-poky-standalone-sdk-target task-poky-standalone-sdk-target-dbg"
18TOOLCHAIN_OUTPUTNAME ?= "${SDK_NAME}-toolchain-${DISTRO_VERSION}"
19
20RDEPENDS = "${TOOLCHAIN_TARGET_TASK} ${TOOLCHAIN_HOST_TASK}"
21
22EXCLUDE_FROM_WORLD = "1"
23
24do_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
98do_populate_sdk[nostamp] = "1"
99do_populate_sdk[recrdeptask] = "do_package_write"
100addtask 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 @@
1DESCRIPTION = "Rebuild the package index"
2LICENSE = "MIT"
3
4INHIBIT_DEFAULT_DEPS = "1"
5ALLOW_EMPTY = "1"
6PACKAGES = ""
7
8do_fetch() {
9}
10do_unpack() {
11}
12do_patch() {
13}
14do_configure() {
15}
16do_compile() {
17}
18do_install() {
19}
20
21do_build[nostamp] = "1"
22do_build[dirs] = "${DEPLOY_DIR_IPK}"
23do_build() {
24 set -ex
25 package_update_index_ipk
26 set +ex
27}
28
29EXCLUDE_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
8PKGSYSTEM=/var/dpkg
9
10if [ ! -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
17fi
18
19STAMP=$PKGSYSTEM/postinsts-done
20STATFILE=$PKGSYSTEM/status
21STATFILE2=$PKGSYSTEM/status2
22
23if [ -e $STAMP ]; then
24 exit 0
25fi
26
27awk -f /usr/share/run-postinsts/run-postinsts.awk $STATFILE > $STATFILE2
28if [ $? = 0 ]; then
29 mv $STATFILE2 $STATFILE
30 touch $STAMP
31 exit 0
32else
33 rm -f $STATFILE2
34 rm -f $STAMP
35 exit 1
36fi
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
9BEGIN {
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 @@
1DESCRIPTION = "Run postinstall scripts on device using awk"
2SECTION = "devel"
3PR = "r6"
4
5SRC_URI = "file://run-postinsts file://run-postinsts.awk"
6
7INITSCRIPT_NAME = "run-postinsts"
8INITSCRIPT_PARAMS = "start 98 S ."
9
10inherit update-rc.d
11
12do_configure() {
13 :
14}
15
16do_compile () {
17 :
18}
19
20do_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 @@
1DESCRIPTION = "staging-linkage sets up symlinks in staging so old compilers continue to work with the sysroot staging layout changes"
2SECTION = "devel"
3PACKAGES = ""
4
5INHIBIT_DEFAULT_DEPS = "1"
6EXCLUDE_FROM_WORLD = "1"
7PR = "r0"
8
9SRC_URI = ""
10
11do_configure() {
12 :
13}
14
15do_compile () {
16 :
17}
18
19PSTAGING_DISABLED = "1"
20
21do_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}