diff options
| author | Saul Wold <Saul.Wold@intel.com> | 2010-11-22 13:57:13 +0000 |
|---|---|---|
| committer | Richard Purdie <rpurdie@linux.intel.com> | 2010-11-22 13:57:13 +0000 |
| commit | cfe12efb5ec9586dab6961f141d52b103bd8b1d1 (patch) | |
| tree | 7108e22aa7ddf6cfc2f1b6c6b73a811187706ecb /meta/recipes-core | |
| parent | 762fd6b7b3b22d7a8cb80ef9e9ba62e7ef21af3e (diff) | |
| download | poky-cfe12efb5ec9586dab6961f141d52b103bd8b1d1.tar.gz | |
Meta: Recipe Reogranization
This is the next stage of recipe reorganization, in this stage
many recipes where moved to a new meta-demoapps layer since this
is more appropriate for demo usage then the core. Additional some
recipes were moved to meta-extras to indicate they may be depercated
at a future time.
A number of recipes were modified since dependencies need to be
corrected.
Signed-off-by: Saul Wold <Saul.Wold@intel.com>
Diffstat (limited to 'meta/recipes-core')
| -rw-r--r-- | meta/recipes-core/meta/external-csl-toolchain/SUPPORTED | 4 | ||||
| -rw-r--r-- | meta/recipes-core/meta/external-csl-toolchain_2008q3-72.bb | 63 | ||||
| -rw-r--r-- | meta/recipes-core/meta/external-poky-toolchain.bb | 42 | ||||
| -rw-r--r-- | meta/recipes-core/meta/external-python-tarball.bb | 87 | ||||
| -rw-r--r-- | meta/recipes-core/meta/meta-ide-support.bb | 14 | ||||
| -rw-r--r-- | meta/recipes-core/meta/meta-toolchain-sdk.bb | 4 | ||||
| -rw-r--r-- | meta/recipes-core/meta/meta-toolchain.bb | 103 | ||||
| -rw-r--r-- | meta/recipes-core/meta/package-index.bb | 29 | ||||
| -rw-r--r-- | meta/recipes-core/tasks/task-poky-tools.bb | 2 |
9 files changed, 348 insertions, 0 deletions
diff --git a/meta/recipes-core/meta/external-csl-toolchain/SUPPORTED b/meta/recipes-core/meta/external-csl-toolchain/SUPPORTED new file mode 100644 index 0000000000..fe9406acd1 --- /dev/null +++ b/meta/recipes-core/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-core/meta/external-csl-toolchain_2008q3-72.bb b/meta/recipes-core/meta/external-csl-toolchain_2008q3-72.bb new file mode 100644 index 0000000000..0d58445de2 --- /dev/null +++ b/meta/recipes-core/meta/external-csl-toolchain_2008q3-72.bb | |||
| @@ -0,0 +1,63 @@ | |||
| 1 | INHIBIT_DEFAULT_DEPS = "1" | ||
| 2 | |||
| 3 | # License applies to this recipe code, not the toolchain itself | ||
| 4 | LICENSE = "MIT" | ||
| 5 | |||
| 6 | PROVIDES = "\ | ||
| 7 | linux-libc-headers \ | ||
| 8 | virtual/arm-none-linux-gnueabi-gcc \ | ||
| 9 | virtual/arm-none-linux-gnueabi-g++ \ | ||
| 10 | virtual/arm-none-linux-gnueabi-gcc-initial \ | ||
| 11 | virtual/arm-none-linux-gnueabi-gcc-intermediate \ | ||
| 12 | virtual/arm-none-linux-gnueabi-binutils \ | ||
| 13 | virtual/arm-none-linux-gnueabi-libc-for-gcc \ | ||
| 14 | virtual/libc \ | ||
| 15 | virtual/libintl \ | ||
| 16 | virtual/libiconv \ | ||
| 17 | glibc-thread-db \ | ||
| 18 | virtual/linux-libc-headers " | ||
| 19 | RPROVIDES = "glibc-utils libsegfault glibc-thread-db" | ||
| 20 | PACKAGES_DYNAMIC = "glibc-gconv-*" | ||
| 21 | PR = "r1" | ||
| 22 | |||
| 23 | #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 \ | ||
| 24 | |||
| 25 | SRC_URI = "file://SUPPORTED" | ||
| 26 | |||
| 27 | do_install() { | ||
| 28 | echo "EXTERNAL_TOOLCHAIN is ${EXTERNAL_TOOLCHAIN}" | ||
| 29 | install -d ${D}${sysconfdir} ${D}${bindir} ${D}${sbindir} ${D}${base_bindir} ${D}${libdir} | ||
| 30 | install -d ${D}${base_libdir} ${D}${base_sbindir} ${D}${datadir} | ||
| 31 | |||
| 32 | cp -a ${EXTERNAL_TOOLCHAIN}/arm-none-linux-gnueabi/libc/lib/* ${D}${base_libdir} | ||
| 33 | cp -a ${EXTERNAL_TOOLCHAIN}/arm-none-linux-gnueabi/libc/etc/* ${D}${sysconfdir} | ||
| 34 | cp -a ${EXTERNAL_TOOLCHAIN}/arm-none-linux-gnueabi/libc/sbin/* ${D}${base_sbindir} | ||
| 35 | cp -a ${EXTERNAL_TOOLCHAIN}/arm-none-linux-gnueabi/libc/usr/* ${D}/usr | ||
| 36 | |||
| 37 | sed -i -e "s# /lib# ../../lib#g" -e "s# /usr/lib# .#g" ${D}${libdir}/libc.so | ||
| 38 | sed -i -e "s# /lib# ../../lib#g" -e "s# /usr/lib# .#g" ${D}${libdir}/libpthread.so | ||
| 39 | } | ||
| 40 | |||
| 41 | GLIBC_INTERNAL_USE_BINARY_LOCALE ?= "compile" | ||
| 42 | |||
| 43 | inherit libc-package | ||
| 44 | |||
| 45 | PACKAGES += "libgcc libgcc-dev libstdc++ libstdc++-dev linux-libc-headers" | ||
| 46 | FILES_libgcc = "${base_libdir}/libgcc_s.so.1" | ||
| 47 | FILES_libgcc-dev = "${base_libdir}/libgcc_s.so" | ||
| 48 | FILES_libstdc++ = "${libdir}/libstdc++.so.*" | ||
| 49 | FILES_libstdc++-dev = "${includedir}/c++/${PV} \ | ||
| 50 | ${libdir}/libstdc++.so \ | ||
| 51 | ${libdir}/libstdc++.la \ | ||
| 52 | ${libdir}/libstdc++.a \ | ||
| 53 | ${libdir}/libsupc++.la \ | ||
| 54 | ${libdir}/libsupc++.a" | ||
| 55 | FILES_linux-libc-headers = "${includedir}/asm* \ | ||
| 56 | ${includedir}/linux \ | ||
| 57 | ${includedir}/mtd \ | ||
| 58 | ${includedir}/rdma \ | ||
| 59 | ${includedir}/scsi \ | ||
| 60 | ${includedir}/sound \ | ||
| 61 | ${includedir}/video \ | ||
| 62 | " | ||
| 63 | |||
diff --git a/meta/recipes-core/meta/external-poky-toolchain.bb b/meta/recipes-core/meta/external-poky-toolchain.bb new file mode 100644 index 0000000000..a387ab3e60 --- /dev/null +++ b/meta/recipes-core/meta/external-poky-toolchain.bb | |||
| @@ -0,0 +1,42 @@ | |||
| 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 | # License applies to this recipe code, not the toolchain itself | ||
| 20 | LICENSE = "MIT" | ||
| 21 | |||
| 22 | do_install() { | ||
| 23 | if [ ! -e ${prefix}/environment-setup ]; then | ||
| 24 | echo "The Poky toolchain could not be found in ${prefix}!" | ||
| 25 | exit 1 | ||
| 26 | fi | ||
| 27 | |||
| 28 | install -d ${DEPLOY_DIR}/ipk/ | ||
| 29 | install -d ${STAGING_DIR}/pkgdata/ | ||
| 30 | install -d ${STAGING_DIR_TARGET}/shlibs/ | ||
| 31 | install -d ${STAGING_DIR_TARGET}/${base_libdir}/ | ||
| 32 | install -d ${STAGING_DIR_TARGET}/${libdir}/ | ||
| 33 | install -d ${STAGING_DIR_TARGET}/${includedir}/ | ||
| 34 | |||
| 35 | cp -ar ${prefix}/ipk/* ${DEPLOY_DIR}/ipk/ | ||
| 36 | cp -ar ${prefix}/pkgdata/* ${STAGING_DIR}/pkgdata/ | ||
| 37 | cp -ar ${prefix}/${TARGET_SYS}/shlibs/* ${STAGING_DIR_TARGET}/shlibs/ | ||
| 38 | cp -ar ${prefix}/${TARGET_SYS}/lib/* ${STAGING_DIR_TARGET}/${base_libdir}/ | ||
| 39 | cp -ar ${prefix}/${TARGET_SYS}/usr/include/* ${STAGING_DIR_TARGET}/${includedir}/ | ||
| 40 | cp -ar ${prefix}/${TARGET_SYS}/usr/lib/* ${STAGING_DIR_TARGET}/${libdir}/ | ||
| 41 | } | ||
| 42 | |||
diff --git a/meta/recipes-core/meta/external-python-tarball.bb b/meta/recipes-core/meta/external-python-tarball.bb new file mode 100644 index 0000000000..1812ba5506 --- /dev/null +++ b/meta/recipes-core/meta/external-python-tarball.bb | |||
| @@ -0,0 +1,87 @@ | |||
| 1 | DESCRIPTION = "Meta package for building a standalone python tarball" | ||
| 2 | LICENSE = "MIT" | ||
| 3 | DEPENDS = "opkg-native opkg-utils-native virtual/fakeroot-native sed-native" | ||
| 4 | |||
| 5 | inherit meta | ||
| 6 | |||
| 7 | SDK_DIR = "${WORKDIR}/sdk" | ||
| 8 | SDK_OUTPUT = "${SDK_DIR}/image" | ||
| 9 | SDK_DEPLOY = "${TMPDIR}/deploy/sdk" | ||
| 10 | |||
| 11 | IPKG_HOST = "opkg-cl -f ${IPKGCONF_SDK} -o ${SDK_OUTPUT}" | ||
| 12 | |||
| 13 | TOOLCHAIN_HOST_TASK ?= "\ | ||
| 14 | python-nativesdk-core \ | ||
| 15 | python-nativesdk-textutils \ | ||
| 16 | python-nativesdk-sqlite3 \ | ||
| 17 | python-nativesdk-pickle \ | ||
| 18 | python-nativesdk-logging \ | ||
| 19 | python-nativesdk-elementtree \ | ||
| 20 | python-nativesdk-curses \ | ||
| 21 | python-nativesdk-compile \ | ||
| 22 | python-nativesdk-compiler \ | ||
| 23 | python-nativesdk-fcntl \ | ||
| 24 | python-nativesdk-shell \ | ||
| 25 | python-nativesdk-misc \ | ||
| 26 | python-nativesdk-subprocess \ | ||
| 27 | python-nativesdk-xmlrpc \ | ||
| 28 | python-nativesdk-netclient \ | ||
| 29 | python-nativesdk-netserver \ | ||
| 30 | python-nativesdk-distutils" | ||
| 31 | |||
| 32 | TOOLCHAIN_OUTPUTNAME ?= "python-nativesdk-standalone-${SDKMACHINE}" | ||
| 33 | |||
| 34 | RDEPENDS = "${TOOLCHAIN_HOST_TASK}" | ||
| 35 | |||
| 36 | EXCLUDE_FROM_WORLD = "1" | ||
| 37 | |||
| 38 | do_populate_sdk() { | ||
| 39 | rm -rf ${SDK_OUTPUT} | ||
| 40 | mkdir -p ${SDK_OUTPUT} | ||
| 41 | mkdir -p ${SDK_OUTPUT}${localstatedir}/lib/opkg/ | ||
| 42 | |||
| 43 | rm -f ${IPKGCONF_TARGET} | ||
| 44 | touch ${IPKGCONF_TARGET} | ||
| 45 | rm -f ${IPKGCONF_SDK} | ||
| 46 | touch ${IPKGCONF_SDK} | ||
| 47 | |||
| 48 | package_update_index_ipk | ||
| 49 | package_generate_ipkg_conf | ||
| 50 | |||
| 51 | for arch in ${PACKAGE_ARCHS}; do | ||
| 52 | revipkgarchs="$arch $revipkgarchs" | ||
| 53 | done | ||
| 54 | |||
| 55 | ${IPKG_HOST} update | ||
| 56 | ${IPKG_HOST} install ${TOOLCHAIN_HOST_TASK} | ||
| 57 | |||
| 58 | install -d ${SDK_OUTPUT}/${SDKPATHNATIVE}${localstatedir_nativesdk}/lib/opkg | ||
| 59 | mv ${SDK_OUTPUT}/var/lib/opkg/* ${SDK_OUTPUT}/${SDKPATHNATIVE}${localstatedir_nativesdk}/lib/opkg/ | ||
| 60 | rm -Rf ${SDK_OUTPUT}/var | ||
| 61 | |||
| 62 | install -d ${SDK_OUTPUT}/${SDKPATHNATIVE}/${sysconfdir} | ||
| 63 | install -m 0644 ${IPKGCONF_SDK} ${SDK_OUTPUT}/${SDKPATHNATIVE}/${sysconfdir}/ | ||
| 64 | |||
| 65 | rm -f ${SDK_OUTPUT}/${SDKPATHNATIVE}${libdir_nativesdk}/*.la | ||
| 66 | |||
| 67 | # Link the ld.so.cache file into the hosts filesystem | ||
| 68 | ln -s /etc/ld.so.cache ${SDK_OUTPUT}/${SDKPATHNATIVE}/etc/ld.so.cache | ||
| 69 | |||
| 70 | # Add version information | ||
| 71 | versionfile=${SDK_OUTPUT}/${SDKPATH}/version-${MULTIMACH_TARGET_SYS} | ||
| 72 | touch $versionfile | ||
| 73 | echo 'Distro: ${DISTRO}' >> $versionfile | ||
| 74 | echo 'Distro Version: ${DISTRO_VERSION}' >> $versionfile | ||
| 75 | echo 'Metadata Revision: ${METADATA_REVISION}' >> $versionfile | ||
| 76 | echo 'Timestamp: ${DATETIME}' >> $versionfile | ||
| 77 | |||
| 78 | # Package it up | ||
| 79 | mkdir -p ${SDK_DEPLOY} | ||
| 80 | cd ${SDK_OUTPUT} | ||
| 81 | ${FAKEROOT} tar cfj ${SDK_DEPLOY}/${TOOLCHAIN_OUTPUTNAME}.tar.bz2 . | ||
| 82 | } | ||
| 83 | |||
| 84 | do_populate_sdk[nostamp] = "1" | ||
| 85 | do_populate_sdk[recrdeptask] = "do_package_write" | ||
| 86 | addtask populate_sdk before do_build after do_install | ||
| 87 | |||
diff --git a/meta/recipes-core/meta/meta-ide-support.bb b/meta/recipes-core/meta/meta-ide-support.bb new file mode 100644 index 0000000000..8fe9a23036 --- /dev/null +++ b/meta/recipes-core/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 qemu-helper-native unfs-server-native" | ||
| 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-core/meta/meta-toolchain-sdk.bb b/meta/recipes-core/meta/meta-toolchain-sdk.bb new file mode 100644 index 0000000000..8572f021d7 --- /dev/null +++ b/meta/recipes-core/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-core/meta/meta-toolchain.bb b/meta/recipes-core/meta/meta-toolchain.bb new file mode 100644 index 0000000000..2fab8f94b2 --- /dev/null +++ b/meta/recipes-core/meta/meta-toolchain.bb | |||
| @@ -0,0 +1,103 @@ | |||
| 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}/var | ||
| 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 | # Link the ld.so.cache file into the hosts filesystem | ||
| 76 | ln -s /etc/ld.so.cache ${SDK_OUTPUT}/${SDKPATHNATIVE}/etc/ld.so.cache | ||
| 77 | |||
| 78 | # Setup site file for external use | ||
| 79 | siteconfig=${SDK_OUTPUT}/${SDKPATH}/site-config-${MULTIMACH_TARGET_SYS} | ||
| 80 | touch $siteconfig | ||
| 81 | for sitefile in ${CONFIG_SITE} ; do | ||
| 82 | cat $sitefile >> $siteconfig | ||
| 83 | done | ||
| 84 | |||
| 85 | toolchain_create_sdk_env_script | ||
| 86 | |||
| 87 | # Add version information | ||
| 88 | versionfile=${SDK_OUTPUT}/${SDKPATH}/version-${MULTIMACH_TARGET_SYS} | ||
| 89 | touch $versionfile | ||
| 90 | echo 'Distro: ${DISTRO}' >> $versionfile | ||
| 91 | echo 'Distro Version: ${DISTRO_VERSION}' >> $versionfile | ||
| 92 | echo 'Metadata Revision: ${METADATA_REVISION}' >> $versionfile | ||
| 93 | echo 'Timestamp: ${DATETIME}' >> $versionfile | ||
| 94 | |||
| 95 | # Package it up | ||
| 96 | mkdir -p ${SDK_DEPLOY} | ||
| 97 | cd ${SDK_OUTPUT} | ||
| 98 | ${FAKEROOT} tar cfj ${SDK_DEPLOY}/${TOOLCHAIN_OUTPUTNAME}.tar.bz2 . | ||
| 99 | } | ||
| 100 | |||
| 101 | do_populate_sdk[nostamp] = "1" | ||
| 102 | do_populate_sdk[recrdeptask] = "do_package_write" | ||
| 103 | addtask populate_sdk before do_build after do_install | ||
diff --git a/meta/recipes-core/meta/package-index.bb b/meta/recipes-core/meta/package-index.bb new file mode 100644 index 0000000000..21822fe9da --- /dev/null +++ b/meta/recipes-core/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-core/tasks/task-poky-tools.bb b/meta/recipes-core/tasks/task-poky-tools.bb index 0a2533c525..0bb07a2984 100644 --- a/meta/recipes-core/tasks/task-poky-tools.bb +++ b/meta/recipes-core/tasks/task-poky-tools.bb | |||
| @@ -63,6 +63,7 @@ RDEPENDS_task-poky-tools-profile_append_atom-pc = " lttng-ust" | |||
| 63 | 63 | ||
| 64 | RDEPENDS_task-poky-tools-testapps = "\ | 64 | RDEPENDS_task-poky-tools-testapps = "\ |
| 65 | blktool \ | 65 | blktool \ |
| 66 | fstests \ | ||
| 66 | tslib-calibrate \ | 67 | tslib-calibrate \ |
| 67 | tslib-tests \ | 68 | tslib-tests \ |
| 68 | lrzsz \ | 69 | lrzsz \ |
| @@ -72,6 +73,7 @@ RDEPENDS_task-poky-tools-testapps = "\ | |||
| 72 | owl-video \ | 73 | owl-video \ |
| 73 | gst-meta-video \ | 74 | gst-meta-video \ |
| 74 | gst-meta-audio \ | 75 | gst-meta-audio \ |
| 76 | x11perf \ | ||
| 75 | xrestop \ | 77 | xrestop \ |
| 76 | xwininfo \ | 78 | xwininfo \ |
| 77 | xprop \ | 79 | xprop \ |
