summaryrefslogtreecommitdiff
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 000000000..fe9406acd
--- /dev/null
+++ b/meta/recipes-tbd/meta/external-csl-toolchain/SUPPORTED
@@ -0,0 +1,4 @@
+en_GB.UTF-8 UTF-8
+en_GB ISO-8859-1
+en_US.UTF-8 UTF-8
+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 000000000..197c288f1
--- /dev/null
+++ b/meta/recipes-tbd/meta/external-csl-toolchain_2006q3-27.bb
@@ -0,0 +1,57 @@
+INHIBIT_DEFAULT_DEPS = "1"
+
+PROVIDES = "\
+ linux-libc-headers \
+ virtual/arm-none-linux-gnueabi-gcc \
+ virtual/arm-none-linux-gnueabi-g++ \
+ virtual/arm-none-linux-gnueabi-gcc-initial \
+ virtual/arm-none-linux-gnueabi-binutils \
+ virtual/arm-none-linux-gnueabi-libc-for-gcc \
+ virtual/libc \
+ virtual/libintl \
+ virtual/libiconv \
+ glibc-thread-db \
+ virtual/linux-libc-headers "
+RPROVIDES = "glibc-utils libsegfault glibc-thread-db"
+PACKAGES_DYNAMIC = "glibc-gconv-*"
+PR = "r3"
+
+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 \
+file://SUPPORTED"
+
+S = "${WORKDIR}/arm-2006q3"
+
+do_install() {
+ install -d ${D}${sysconfdir} ${D}${bindir} ${D}${sbindir} ${D}${base_bindir} ${D}${libdir}
+ install -d ${D}${base_libdir} ${D}${base_sbindir} ${D}${datadir}
+
+ cp -a ${S}/arm-none-linux-gnueabi/libc/lib/* ${D}${base_libdir}
+ cp -a ${S}/arm-none-linux-gnueabi/libc/etc/* ${D}${sysconfdir}
+ cp -a ${S}/arm-none-linux-gnueabi/libc/sbin/* ${D}${base_sbindir}
+ cp -a ${S}/arm-none-linux-gnueabi/libc/usr/* ${D}/usr
+}
+
+GLIBC_INTERNAL_USE_BINARY_LOCALE ?= "compile"
+
+inherit libc-package
+
+PACKAGES += "libgcc libgcc-dev libstdc++ libstdc++-dev linux-libc-headers"
+FILES_libgcc = "${base_libdir}/libgcc_s.so.1"
+FILES_libgcc-dev = "${base_libdir}/libgcc_s.so"
+FILES_libstdc++ = "${libdir}/libstdc++.so.*"
+FILES_libstdc++-dev = "${includedir}/c++/${PV} \
+ ${libdir}/libstdc++.so \
+ ${libdir}/libstdc++.la \
+ ${libdir}/libstdc++.a \
+ ${libdir}/libsupc++.la \
+ ${libdir}/libsupc++.a"
+FILES_linux-libc-headers = "${includedir}/asm* \
+ ${includedir}/linux \
+ ${includedir}/mtd \
+ ${includedir}/rdma \
+ ${includedir}/scsi \
+ ${includedir}/sound \
+ ${includedir}/video \
+"
+
+
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 000000000..ce75e716e
--- /dev/null
+++ b/meta/recipes-tbd/meta/external-csl-toolchain_2007q3-51.bb
@@ -0,0 +1,56 @@
+INHIBIT_DEFAULT_DEPS = "1"
+
+PROVIDES = "\
+ linux-libc-headers \
+ virtual/arm-none-linux-gnueabi-gcc \
+ virtual/arm-none-linux-gnueabi-g++ \
+ virtual/arm-none-linux-gnueabi-gcc-initial \
+ virtual/arm-none-linux-gnueabi-binutils \
+ virtual/arm-none-linux-gnueabi-libc-for-gcc \
+ virtual/libc \
+ virtual/libintl \
+ virtual/libiconv \
+ glibc-thread-db \
+ virtual/linux-libc-headers "
+RPROVIDES = "glibc-utils libsegfault glibc-thread-db"
+PACKAGES_DYNAMIC = "glibc-gconv-*"
+PR = "r1"
+
+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 \
+file://SUPPORTED"
+
+S = "${WORKDIR}/arm-2007q3"
+
+do_install() {
+ install -d ${D}${sysconfdir} ${D}${bindir} ${D}${sbindir} ${D}${base_bindir} ${D}${libdir}
+ install -d ${D}${base_libdir} ${D}${base_sbindir} ${D}${datadir}
+
+ cp -a ${S}/arm-none-linux-gnueabi/libc/lib/* ${D}${base_libdir}
+ cp -a ${S}/arm-none-linux-gnueabi/libc/etc/* ${D}${sysconfdir}
+ cp -a ${S}/arm-none-linux-gnueabi/libc/sbin/* ${D}${base_sbindir}
+ cp -a ${S}/arm-none-linux-gnueabi/libc/usr/* ${D}/usr
+}
+
+GLIBC_INTERNAL_USE_BINARY_LOCALE ?= "compile"
+
+inherit libc-package
+
+PACKAGES += "libgcc libgcc-dev libstdc++ libstdc++-dev linux-libc-headers"
+FILES_libgcc = "${base_libdir}/libgcc_s.so.1"
+FILES_libgcc-dev = "${base_libdir}/libgcc_s.so"
+FILES_libstdc++ = "${libdir}/libstdc++.so.*"
+FILES_libstdc++-dev = "${includedir}/c++/${PV} \
+ ${libdir}/libstdc++.so \
+ ${libdir}/libstdc++.la \
+ ${libdir}/libstdc++.a \
+ ${libdir}/libsupc++.la \
+ ${libdir}/libsupc++.a"
+FILES_linux-libc-headers = "${includedir}/asm* \
+ ${includedir}/linux \
+ ${includedir}/mtd \
+ ${includedir}/rdma \
+ ${includedir}/scsi \
+ ${includedir}/sound \
+ ${includedir}/video \
+"
+
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 000000000..20e169019
--- /dev/null
+++ b/meta/recipes-tbd/meta/external-csl-toolchain_2008q3-72.bb
@@ -0,0 +1,60 @@
+INHIBIT_DEFAULT_DEPS = "1"
+
+PROVIDES = "\
+ linux-libc-headers \
+ virtual/arm-none-linux-gnueabi-gcc \
+ virtual/arm-none-linux-gnueabi-g++ \
+ virtual/arm-none-linux-gnueabi-gcc-initial \
+ virtual/arm-none-linux-gnueabi-gcc-intermediate \
+ virtual/arm-none-linux-gnueabi-binutils \
+ virtual/arm-none-linux-gnueabi-libc-for-gcc \
+ virtual/libc \
+ virtual/libintl \
+ virtual/libiconv \
+ glibc-thread-db \
+ virtual/linux-libc-headers "
+RPROVIDES = "glibc-utils libsegfault glibc-thread-db"
+PACKAGES_DYNAMIC = "glibc-gconv-*"
+PR = "r1"
+
+#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 \
+
+SRC_URI = "file://SUPPORTED"
+
+do_install() {
+ echo "EXTERNAL_TOOLCHAIN is ${EXTERNAL_TOOLCHAIN}"
+ install -d ${D}${sysconfdir} ${D}${bindir} ${D}${sbindir} ${D}${base_bindir} ${D}${libdir}
+ install -d ${D}${base_libdir} ${D}${base_sbindir} ${D}${datadir}
+
+ cp -a ${EXTERNAL_TOOLCHAIN}/arm-none-linux-gnueabi/libc/lib/* ${D}${base_libdir}
+ cp -a ${EXTERNAL_TOOLCHAIN}/arm-none-linux-gnueabi/libc/etc/* ${D}${sysconfdir}
+ cp -a ${EXTERNAL_TOOLCHAIN}/arm-none-linux-gnueabi/libc/sbin/* ${D}${base_sbindir}
+ cp -a ${EXTERNAL_TOOLCHAIN}/arm-none-linux-gnueabi/libc/usr/* ${D}/usr
+
+ sed -i -e "s# /lib# ../../lib#g" -e "s# /usr/lib# .#g" ${D}${libdir}/libc.so
+ sed -i -e "s# /lib# ../../lib#g" -e "s# /usr/lib# .#g" ${D}${libdir}/libpthread.so
+}
+
+GLIBC_INTERNAL_USE_BINARY_LOCALE ?= "compile"
+
+inherit libc-package
+
+PACKAGES += "libgcc libgcc-dev libstdc++ libstdc++-dev linux-libc-headers"
+FILES_libgcc = "${base_libdir}/libgcc_s.so.1"
+FILES_libgcc-dev = "${base_libdir}/libgcc_s.so"
+FILES_libstdc++ = "${libdir}/libstdc++.so.*"
+FILES_libstdc++-dev = "${includedir}/c++/${PV} \
+ ${libdir}/libstdc++.so \
+ ${libdir}/libstdc++.la \
+ ${libdir}/libstdc++.a \
+ ${libdir}/libsupc++.la \
+ ${libdir}/libsupc++.a"
+FILES_linux-libc-headers = "${includedir}/asm* \
+ ${includedir}/linux \
+ ${includedir}/mtd \
+ ${includedir}/rdma \
+ ${includedir}/scsi \
+ ${includedir}/sound \
+ ${includedir}/video \
+"
+
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 000000000..081eff6ad
--- /dev/null
+++ b/meta/recipes-tbd/meta/external-poky-toolchain.bb
@@ -0,0 +1,39 @@
+PROVIDES = "\
+ linux-libc-headers \
+ virtual/${TARGET_PREFIX}gcc \
+ virtual/${TARGET_PREFIX}gcc-intermediate \
+ virtual/${TARGET_PREFIX}gcc-initial \
+ virtual/${TARGET_PREFIX}binutils \
+ virtual/${TARGET_PREFIX}libc-for-gcc \
+ virtual/libc \
+ virtual/libintl \
+ virtual/libiconv \
+ virtual/linux-libc-headers "
+RPROVIDES = "glibc-utils libsegfault glibc-thread-db libgcc-dev libstdc++-dev libstdc++"
+PACKAGES_DYNAMIC = "glibc-gconv-*"
+INHIBIT_DEFAULT_DEPS = "1"
+PR = "r1"
+
+PSTAGING_DISABLED = "1"
+
+do_install() {
+ if [ ! -e ${prefix}/environment-setup ]; then
+ echo "The Poky toolchain could not be found in ${prefix}!"
+ exit 1
+ fi
+
+ install -d ${DEPLOY_DIR}/ipk/
+ install -d ${STAGING_DIR}/pkgdata/
+ install -d ${STAGING_DIR_TARGET}/shlibs/
+ install -d ${STAGING_DIR_TARGET}/${base_libdir}/
+ install -d ${STAGING_DIR_TARGET}/${libdir}/
+ install -d ${STAGING_DIR_TARGET}/${includedir}/
+
+ cp -ar ${prefix}/ipk/* ${DEPLOY_DIR}/ipk/
+ cp -ar ${prefix}/pkgdata/* ${STAGING_DIR}/pkgdata/
+ cp -ar ${prefix}/${TARGET_SYS}/shlibs/* ${STAGING_DIR_TARGET}/shlibs/
+ cp -ar ${prefix}/${TARGET_SYS}/lib/* ${STAGING_DIR_TARGET}/${base_libdir}/
+ cp -ar ${prefix}/${TARGET_SYS}/usr/include/* ${STAGING_DIR_TARGET}/${includedir}/
+ cp -ar ${prefix}/${TARGET_SYS}/usr/lib/* ${STAGING_DIR_TARGET}/${libdir}/
+}
+
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 000000000..70a0c64ab
--- /dev/null
+++ b/meta/recipes-tbd/meta/meta-ide-support.bb
@@ -0,0 +1,14 @@
+DESCRIPTION = "Meta package for ensuring the build directory contains all appropriate toolchain packages for using an IDE"
+LICENSE = "MIT"
+DEPENDS = "virtual/libc gdb-cross"
+PR = "r1"
+
+inherit meta toolchain-scripts
+
+do_populate_ide_support () {
+ toolchain_create_tree_env_script
+}
+
+do_populate_ide_support[nostamp] = "1"
+do_populate_ide_support[recrdeptask] = "do_package_write"
+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 000000000..8572f021d
--- /dev/null
+++ b/meta/recipes-tbd/meta/meta-toolchain-sdk.bb
@@ -0,0 +1,4 @@
+TOOLCHAIN_TARGET_SDKTASK ?= "task-poky-standalone-gmae-sdk-target task-poky-standalone-gmae-sdk-target-dbg"
+TOOLCHAIN_TARGET_TASK = "${TOOLCHAIN_TARGET_SDKTASK}"
+TOOLCHAIN_OUTPUTNAME = "${SDK_NAME}-toolchain-sdk-${DISTRO_VERSION}"
+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 000000000..8054b5f7b
--- /dev/null
+++ b/meta/recipes-tbd/meta/meta-toolchain.bb
@@ -0,0 +1,100 @@
+DESCRIPTION = "Meta package for building a installable toolchain"
+LICENSE = "MIT"
+DEPENDS = "opkg-native opkg-utils-native virtual/fakeroot-native sed-native"
+
+inherit meta toolchain-scripts
+
+SDK_DIR = "${WORKDIR}/sdk"
+SDK_OUTPUT = "${SDK_DIR}/image"
+SDK_DEPLOY = "${TMPDIR}/deploy/sdk"
+
+SDKTARGETSYSROOT = "${SDKPATH}/sysroots/${TARGET_SYS}"
+
+IPKG_HOST = "opkg-cl -f ${IPKGCONF_SDK} -o ${SDK_OUTPUT}"
+IPKG_TARGET = "opkg-cl -f ${IPKGCONF_TARGET} -o ${SDK_OUTPUT}/${SDKTARGETSYSROOT}"
+
+TOOLCHAIN_HOST_TASK ?= "task-sdk-host"
+TOOLCHAIN_TARGET_TASK ?= "task-poky-standalone-sdk-target task-poky-standalone-sdk-target-dbg"
+TOOLCHAIN_OUTPUTNAME ?= "${SDK_NAME}-toolchain-${DISTRO_VERSION}"
+
+RDEPENDS = "${TOOLCHAIN_TARGET_TASK} ${TOOLCHAIN_HOST_TASK}"
+
+EXCLUDE_FROM_WORLD = "1"
+
+do_populate_sdk() {
+ rm -rf ${SDK_OUTPUT}
+ mkdir -p ${SDK_OUTPUT}
+ mkdir -p ${SDK_OUTPUT}${localstatedir}/lib/opkg/
+ mkdir -p ${SDK_OUTPUT}/${SDKTARGETSYSROOT}${localstatedir}/lib/opkg/
+
+ rm -f ${IPKGCONF_TARGET}
+ touch ${IPKGCONF_TARGET}
+ rm -f ${IPKGCONF_SDK}
+ touch ${IPKGCONF_SDK}
+
+ package_update_index_ipk
+ package_generate_ipkg_conf
+
+ for arch in ${PACKAGE_ARCHS}; do
+ revipkgarchs="$arch $revipkgarchs"
+ done
+
+ ${IPKG_HOST} update
+ ${IPKG_HOST} install ${TOOLCHAIN_HOST_TASK}
+
+ ${IPKG_TARGET} update
+ ${IPKG_TARGET} install ${TOOLCHAIN_TARGET_TASK}
+
+ install -d ${SDK_OUTPUT}/${SDKPATHNATIVE}${localstatedir_nativesdk}/lib/opkg
+ mv ${SDK_OUTPUT}/var/lib/opkg/* ${SDK_OUTPUT}/${SDKPATHNATIVE}${localstatedir_nativesdk}/lib/opkg/
+ rm -Rf ${SDK_OUTPUT}/usr
+
+ # Don't ship any libGL in the SDK
+ rm -rf ${SDK_OUTPUT}/${SDKPATHNATIVE}${libdir_nativesdk}/libGL*
+
+ install -d ${SDK_OUTPUT}/${SDKTARGETSYSROOT}/${sysconfdir}
+ install -m 0644 ${IPKGCONF_TARGET} ${IPKGCONF_SDK} ${SDK_OUTPUT}/${SDKTARGETSYSROOT}/${sysconfdir}/
+
+ install -d ${SDK_OUTPUT}/${SDKPATHNATIVE}/${sysconfdir}
+ install -m 0644 ${IPKGCONF_SDK} ${SDK_OUTPUT}/${SDKPATHNATIVE}/${sysconfdir}/
+
+ # Can copy pstage files here
+ # target_pkgs=`cat ${SDK_OUTPUT}/${SDKTARGETSYSROOT}/var/lib/opkg/status | grep Package: | cut -f 2 -d ' '`
+
+ # Fix or remove broken .la files
+ for i in `find ${SDK_OUTPUT}/${SDKTARGETSYSROOT} -name \*.la`; do
+ sed -i -e "/^dependency_libs=/s,\([[:space:]']\)${base_libdir},\1${SDKTARGETSYSROOT}${base_libdir},g" \
+ -e "/^dependency_libs=/s,\([[:space:]']\)${libdir},\1${SDKTARGETSYSROOT}${libdir},g" \
+ -e "/^dependency_libs=/s,\-\([LR]\)${base_libdir},-\1${SDKTARGETSYSROOT}${base_libdir},g" \
+ -e "/^dependency_libs=/s,\-\([LR]\)${libdir},-\1${SDKTARGETSYSROOT}${libdir},g" \
+ -e 's/^installed=yes$/installed=no/' $i
+ done
+ #rm -f ${SDK_OUTPUT}/${SDKPATHNATIVE}/lib/*.la
+ rm -f ${SDK_OUTPUT}/${SDKPATHNATIVE}${libdir_nativesdk}/*.la
+
+ # Setup site file for external use
+ siteconfig=${SDK_OUTPUT}/${SDKPATH}/site-config-${MULTIMACH_TARGET_SYS}
+ touch $siteconfig
+ for sitefile in ${CONFIG_SITE} ; do
+ cat $sitefile >> $siteconfig
+ done
+
+ toolchain_create_sdk_env_script
+
+ # Add version information
+ versionfile=${SDK_OUTPUT}/${SDKPATH}/version-${MULTIMACH_TARGET_SYS}
+ touch $versionfile
+ echo 'Distro: ${DISTRO}' >> $versionfile
+ echo 'Distro Version: ${DISTRO_VERSION}' >> $versionfile
+ echo 'Metadata Revision: ${METADATA_REVISION}' >> $versionfile
+ echo 'Timestamp: ${DATETIME}' >> $versionfile
+
+ # Package it up
+ mkdir -p ${SDK_DEPLOY}
+ cd ${SDK_OUTPUT}
+ ${FAKEROOT} tar cfj ${SDK_DEPLOY}/${TOOLCHAIN_OUTPUTNAME}.tar.bz2 .
+}
+
+do_populate_sdk[nostamp] = "1"
+do_populate_sdk[recrdeptask] = "do_package_write"
+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 000000000..21822fe9d
--- /dev/null
+++ b/meta/recipes-tbd/meta/package-index.bb
@@ -0,0 +1,29 @@
+DESCRIPTION = "Rebuild the package index"
+LICENSE = "MIT"
+
+INHIBIT_DEFAULT_DEPS = "1"
+ALLOW_EMPTY = "1"
+PACKAGES = ""
+
+do_fetch() {
+}
+do_unpack() {
+}
+do_patch() {
+}
+do_configure() {
+}
+do_compile() {
+}
+do_install() {
+}
+
+do_build[nostamp] = "1"
+do_build[dirs] = "${DEPLOY_DIR_IPK}"
+do_build() {
+ set -ex
+ package_update_index_ipk
+ set +ex
+}
+
+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 000000000..f632d1c7d
--- /dev/null
+++ b/meta/recipes-tbd/meta/run-postinsts/run-postinsts
@@ -0,0 +1,36 @@
+#!/bin/sh
+#
+# Copyright 2007 Openedhand Ltd.
+#
+# Author: Richard Purdie <rpurdie@openedhand.com>
+#
+
+PKGSYSTEM=/var/dpkg
+
+if [ ! -e $PKGSYSTEM/status ]; then
+ if [ -e /usr/lib/opkg/status ]; then
+ PKGSYSTEM=/usr/lib/opkg
+ else
+ echo "No package system found"
+ exit 1
+ fi
+fi
+
+STAMP=$PKGSYSTEM/postinsts-done
+STATFILE=$PKGSYSTEM/status
+STATFILE2=$PKGSYSTEM/status2
+
+if [ -e $STAMP ]; then
+ exit 0
+fi
+
+awk -f /usr/share/run-postinsts/run-postinsts.awk $STATFILE > $STATFILE2
+if [ $? = 0 ]; then
+ mv $STATFILE2 $STATFILE
+ touch $STAMP
+ exit 0
+else
+ rm -f $STATFILE2
+ rm -f $STAMP
+ exit 1
+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 000000000..09a1400cf
--- /dev/null
+++ b/meta/recipes-tbd/meta/run-postinsts/run-postinsts.awk
@@ -0,0 +1,30 @@
+#
+# Copyright 2007 Openedhand Ltd.
+#
+# Author: Richard Purdie <rpurdie@openedhand.com>
+#
+# Rather hacky proof of concept
+#
+
+BEGIN {
+ rc=system("test -d /usr/dpkg/info/")
+ if (rc==0)
+ pkgdir="/var/dpkg/info"
+ else
+ pkgdir="/usr/lib/opkg/info"
+ package=""
+}
+/Package:.*/ {
+ package = substr($0, 10)
+}
+/Status:.*unpacked.*/ {
+ print "Configuring: " package > "/dev/stderr"
+ ret = system(pkgdir "/" package ".postinst 1>&2")
+ if (ret == 0)
+ $0 = gensub("unpacked", "installed", 1)
+ else
+ print "Postinstall failed for " package > "/dev/stderr"
+}
+{
+ print $0
+}
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 000000000..f9559147e
--- /dev/null
+++ b/meta/recipes-tbd/meta/run-postinsts_1.0.bb
@@ -0,0 +1,26 @@
+DESCRIPTION = "Run postinstall scripts on device using awk"
+SECTION = "devel"
+PR = "r6"
+
+SRC_URI = "file://run-postinsts file://run-postinsts.awk"
+
+INITSCRIPT_NAME = "run-postinsts"
+INITSCRIPT_PARAMS = "start 98 S ."
+
+inherit update-rc.d
+
+do_configure() {
+ :
+}
+
+do_compile () {
+ :
+}
+
+do_install() {
+ install -d ${D}${sysconfdir}/init.d/
+ install -m 0755 ${WORKDIR}/run-postinsts ${D}${sysconfdir}/init.d/
+
+ install -d ${D}${datadir}/${PN}/
+ install -m 0644 ${WORKDIR}/run-postinsts.awk ${D}${datadir}/${PN}/
+}
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 000000000..9ecc0d5af
--- /dev/null
+++ b/meta/recipes-tbd/meta/staging-linkage_1.0.bb
@@ -0,0 +1,27 @@
+DESCRIPTION = "staging-linkage sets up symlinks in staging so old compilers continue to work with the sysroot staging layout changes"
+SECTION = "devel"
+PACKAGES = ""
+
+INHIBIT_DEFAULT_DEPS = "1"
+EXCLUDE_FROM_WORLD = "1"
+PR = "r0"
+
+SRC_URI = ""
+
+do_configure() {
+ :
+}
+
+do_compile () {
+ :
+}
+
+PSTAGING_DISABLED = "1"
+
+do_install () {
+ if [ -e ${STAGING_DIR_HOST}${base_libdir} ]; then
+ cp -pPRr ${STAGING_DIR_HOST}${base_libdir}/* ${STAGING_LIBDIR}
+ mv ${STAGING_DIR_HOST}${base_libdir}/ ${STAGING_DIR_HOST}${libdir}-oldbackup
+ fi
+ ln -s ${STAGING_LIBDIR}/ ${STAGING_DIR_HOST}${base_libdir}
+}