diff options
-rw-r--r-- | meta/packages/meta/external-poky-toolchain.bb | 2 | ||||
-rw-r--r-- | meta/packages/meta/meta-toolchain.bb | 16 |
2 files changed, 6 insertions, 12 deletions
diff --git a/meta/packages/meta/external-poky-toolchain.bb b/meta/packages/meta/external-poky-toolchain.bb index 9ba6ee031c..03b27dbd2f 100644 --- a/meta/packages/meta/external-poky-toolchain.bb +++ b/meta/packages/meta/external-poky-toolchain.bb | |||
@@ -27,12 +27,10 @@ do_stage() { | |||
27 | 27 | ||
28 | install -d ${DEPLOY_DIR}/ipk/ | 28 | install -d ${DEPLOY_DIR}/ipk/ |
29 | install -d ${STAGING_DIR}/pkgdata/ | 29 | install -d ${STAGING_DIR}/pkgdata/ |
30 | install -d ${STAGING_DIR}/pkgmaps/ | ||
31 | install -d ${STAGING_DIR_TARGET}/shlibs/ | 30 | install -d ${STAGING_DIR_TARGET}/shlibs/ |
32 | 31 | ||
33 | cp -ar ${prefix}/ipk/* ${DEPLOY_DIR}/ipk/ | 32 | cp -ar ${prefix}/ipk/* ${DEPLOY_DIR}/ipk/ |
34 | cp -ar ${prefix}/pkgdata/* ${STAGING_DIR}/pkgdata/ | 33 | cp -ar ${prefix}/pkgdata/* ${STAGING_DIR}/pkgdata/ |
35 | cp -ar ${prefix}/pkgmaps/* ${STAGING_DIR}/pkgmaps/ | ||
36 | cp -ar ${prefix}/${TARGET_SYS}/shlibs/* ${STAGING_DIR_TARGET}/shlibs/ | 34 | cp -ar ${prefix}/${TARGET_SYS}/shlibs/* ${STAGING_DIR_TARGET}/shlibs/ |
37 | } | 35 | } |
38 | 36 | ||
diff --git a/meta/packages/meta/meta-toolchain.bb b/meta/packages/meta/meta-toolchain.bb index 2f913eaefb..36e2e3b4d5 100644 --- a/meta/packages/meta/meta-toolchain.bb +++ b/meta/packages/meta/meta-toolchain.bb | |||
@@ -62,18 +62,18 @@ do_populate_sdk() { | |||
62 | mv ${SDK_OUTPUT}/usr/lib/ipkg/status ${SDK_OUTPUT}/${prefix}/package-status-host | 62 | mv ${SDK_OUTPUT}/usr/lib/ipkg/status ${SDK_OUTPUT}/${prefix}/package-status-host |
63 | rm -Rf ${SDK_OUTPUT}/usr/lib | 63 | rm -Rf ${SDK_OUTPUT}/usr/lib |
64 | 64 | ||
65 | # extract and store ipks, pkgdata, pkgmaps and shlibs data | 65 | # extract and store ipks, pkgdata and shlibs data |
66 | target_pkgs=`cat ${SDK_OUTPUT}/${prefix}/package-status | grep Package: | cut -f 2 -d ' '` | 66 | target_pkgs=`cat ${SDK_OUTPUT}/${prefix}/package-status | grep Package: | cut -f 2 -d ' '` |
67 | mkdir -p ${SDK_OUTPUT}/${prefix}/ipk/ | 67 | mkdir -p ${SDK_OUTPUT}/${prefix}/ipk/ |
68 | mkdir -p ${SDK_OUTPUT}/${prefix}/pkgdata/runtime/ | 68 | mkdir -p ${SDK_OUTPUT}/${prefix}/pkgdata/runtime/ |
69 | mkdir -p ${SDK_OUTPUT}/${prefix}/pkgmaps/debian/ | ||
70 | mkdir -p ${SDK_OUTPUT}/${prefix}/${TARGET_SYS}/shlibs/ | 69 | mkdir -p ${SDK_OUTPUT}/${prefix}/${TARGET_SYS}/shlibs/ |
71 | for pkg in $target_pkgs ; do | 70 | for pkg in $target_pkgs ; do |
72 | for arch in $revipkgarchs; do | 71 | for arch in $revipkgarchs; do |
73 | if [ -e ${DEPLOY_DIR_IPK}/$arch/${pkg}_*_$arch.ipk ]; then | 72 | pkgnames=${DEPLOY_DIR_IPK}/$arch/${pkg}_*_$arch.ipk |
74 | echo "Found ${DEPLOY_DIR_IPK}/$arch/${pkg}_$arch.ipk" | 73 | if [ -e $pkgnames ]; then |
75 | cp ${DEPLOY_DIR_IPK}/$arch/${pkg}_*_$arch.ipk ${SDK_OUTPUT}/${prefix}/ipk/ | 74 | echo "Found $pkgnames" |
76 | orig_pkg=`ipkg-list-fields ${DEPLOY_DIR_IPK}/$arch/${pkg}_*_$arch.ipk | grep OE: | cut -d ' ' -f2` | 75 | cp $pkgnames ${SDK_OUTPUT}/${prefix}/ipk/ |
76 | orig_pkg=`ipkg-list-fields $pkgnames | grep OE: | cut -d ' ' -f2` | ||
77 | pkg_subdir=$arch${TARGET_VENDOR}${@['-' + bb.data.getVar('TARGET_OS', d, 1), ''][bb.data.getVar('TARGET_OS', d, 1) == ('' or 'custom')]} | 77 | pkg_subdir=$arch${TARGET_VENDOR}${@['-' + bb.data.getVar('TARGET_OS', d, 1), ''][bb.data.getVar('TARGET_OS', d, 1) == ('' or 'custom')]} |
78 | mkdir -p ${SDK_OUTPUT}/${prefix}/pkgdata/$pkg_subdir/runtime | 78 | mkdir -p ${SDK_OUTPUT}/${prefix}/pkgdata/$pkg_subdir/runtime |
79 | cp ${STAGING_DIR}/pkgdata/$pkg_subdir/$orig_pkg ${SDK_OUTPUT}/${prefix}/pkgdata/$pkg_subdir/ | 79 | cp ${STAGING_DIR}/pkgdata/$pkg_subdir/$orig_pkg ${SDK_OUTPUT}/${prefix}/pkgdata/$pkg_subdir/ |
@@ -83,9 +83,6 @@ do_populate_sdk() { | |||
83 | if [ -e ${STAGING_DIR}/pkgdata/$pkg_subdir/runtime/$subpkg.packaged ];then | 83 | if [ -e ${STAGING_DIR}/pkgdata/$pkg_subdir/runtime/$subpkg.packaged ];then |
84 | cp ${STAGING_DIR}/pkgdata/$pkg_subdir/runtime/$subpkg.packaged ${SDK_OUTPUT}/${prefix}/pkgdata/$pkg_subdir/runtime/ | 84 | cp ${STAGING_DIR}/pkgdata/$pkg_subdir/runtime/$subpkg.packaged ${SDK_OUTPUT}/${prefix}/pkgdata/$pkg_subdir/runtime/ |
85 | fi | 85 | fi |
86 | if [ -e ${STAGING_DIR}/pkgmaps/debian/$subpkg ]; then | ||
87 | cp ${STAGING_DIR}/pkgmaps/debian/$subpkg ${SDK_OUTPUT}/${prefix}/pkgmaps/debian/ | ||
88 | fi | ||
89 | if [ -e ${STAGING_DIR_TARGET}/shlibs/$subpkg.list ]; then | 86 | if [ -e ${STAGING_DIR_TARGET}/shlibs/$subpkg.list ]; then |
90 | cp ${STAGING_DIR_TARGET}/shlibs/$subpkg.* ${SDK_OUTPUT}/${prefix}/${TARGET_SYS}/shlibs/ | 87 | cp ${STAGING_DIR_TARGET}/shlibs/$subpkg.* ${SDK_OUTPUT}/${prefix}/${TARGET_SYS}/shlibs/ |
91 | fi | 88 | fi |
@@ -95,7 +92,6 @@ do_populate_sdk() { | |||
95 | done | 92 | done |
96 | done | 93 | done |
97 | 94 | ||
98 | |||
99 | # remove unwanted executables | 95 | # remove unwanted executables |
100 | rm -rf ${SDK_OUTPUT}/${prefix}/sbin ${SDK_OUTPUT}/${prefix}/etc | 96 | rm -rf ${SDK_OUTPUT}/${prefix}/sbin ${SDK_OUTPUT}/${prefix}/etc |
101 | 97 | ||