diff options
Diffstat (limited to 'meta/classes')
| -rw-r--r-- | meta/classes/autotools.bbclass | 38 | ||||
| -rw-r--r-- | meta/classes/base.bbclass | 7 | ||||
| -rw-r--r-- | meta/classes/packaged-staging.bbclass | 3 |
3 files changed, 28 insertions, 20 deletions
diff --git a/meta/classes/autotools.bbclass b/meta/classes/autotools.bbclass index 83ab063376..365258f65f 100644 --- a/meta/classes/autotools.bbclass +++ b/meta/classes/autotools.bbclass | |||
| @@ -175,6 +175,26 @@ autotools_stage_dir() { | |||
| 175 | fi | 175 | fi |
| 176 | } | 176 | } |
| 177 | 177 | ||
| 178 | autotools_stage_libdir() { | ||
| 179 | from="$1" | ||
| 180 | to="$2" | ||
| 181 | |||
| 182 | olddir=`pwd` | ||
| 183 | cd $from | ||
| 184 | las=$(find . -name \*.la -type f) | ||
| 185 | cd $olddir | ||
| 186 | echo "Found la files: $las" | ||
| 187 | for i in $las | ||
| 188 | do | ||
| 189 | sed -e 's/^installed=yes$/installed=no/' \ | ||
| 190 | -e '/^dependency_libs=/s,${WORKDIR}[[:alnum:]/\._+-]*/\([[:alnum:]\._+-]*\),${STAGING_LIBDIR}/\1,g' \ | ||
| 191 | -e "/^dependency_libs=/s,\([[:space:]']\)${libdir},\1${STAGING_LIBDIR},g" \ | ||
| 192 | -i $from/$i | ||
| 193 | done | ||
| 194 | autotools_stage_dir $from $to | ||
| 195 | } | ||
| 196 | |||
| 197 | |||
| 178 | autotools_stage_all() { | 198 | autotools_stage_all() { |
| 179 | if [ "${INHIBIT_AUTO_STAGE}" = "1" ] | 199 | if [ "${INHIBIT_AUTO_STAGE}" = "1" ] |
| 180 | then | 200 | then |
| @@ -193,19 +213,11 @@ autotools_stage_all() { | |||
| 193 | fi | 213 | fi |
| 194 | if [ -d ${STAGE_TEMP}/${libdir} ] | 214 | if [ -d ${STAGE_TEMP}/${libdir} ] |
| 195 | then | 215 | then |
| 196 | olddir=`pwd` | 216 | autotools_stage_libdir ${STAGE_TEMP}/${libdir} ${STAGING_LIBDIR} |
| 197 | cd ${STAGE_TEMP}/${libdir} | 217 | fi |
| 198 | las=$(find . -name \*.la -type f) | 218 | if [ -d ${STAGE_TEMP}/${base_libdir} ] |
| 199 | cd $olddir | 219 | then |
| 200 | echo "Found la files: $las" | 220 | autotools_stage_libdir ${STAGE_TEMP}/${base_libdir} ${STAGING_DIR_HOST}${layout_base_libdir} |
| 201 | for i in $las | ||
| 202 | do | ||
| 203 | sed -e 's/^installed=yes$/installed=no/' \ | ||
| 204 | -e '/^dependency_libs=/s,${WORKDIR}[[:alnum:]/\._+-]*/\([[:alnum:]\._+-]*\),${STAGING_LIBDIR}/\1,g' \ | ||
| 205 | -e "/^dependency_libs=/s,\([[:space:]']\)${libdir},\1${STAGING_LIBDIR},g" \ | ||
| 206 | -i ${STAGE_TEMP}/${libdir}/$i | ||
| 207 | done | ||
| 208 | autotools_stage_dir ${STAGE_TEMP}/${libdir} ${STAGING_LIBDIR} | ||
| 209 | fi | 221 | fi |
| 210 | rm -rf ${STAGE_TEMP}/${mandir} || true | 222 | rm -rf ${STAGE_TEMP}/${mandir} || true |
| 211 | rm -rf ${STAGE_TEMP}/${infodir} || true | 223 | rm -rf ${STAGE_TEMP}/${infodir} || true |
diff --git a/meta/classes/base.bbclass b/meta/classes/base.bbclass index 1b70bfdd5f..76b21382f5 100644 --- a/meta/classes/base.bbclass +++ b/meta/classes/base.bbclass | |||
| @@ -742,12 +742,9 @@ def generate_git_config(e): | |||
| 742 | 742 | ||
| 743 | f = open(gitconfig_path, 'w') | 743 | f = open(gitconfig_path, 'w') |
| 744 | f.write("[core]\n") | 744 | f.write("[core]\n") |
| 745 | ignore_count = 1 | 745 | ignore_hosts = data.getVar('GIT_PROXY_IGNORE', e.data, True).split() |
| 746 | ignore_host = data.getVar('GIT_PROXY_IGNORE_1', e.data, True) | 746 | for ignore_host in ignore_hosts: |
| 747 | while (ignore_host): | ||
| 748 | f.write(" gitproxy = none for %s\n" % ignore_host) | 747 | f.write(" gitproxy = none for %s\n" % ignore_host) |
| 749 | ignore_count += 1 | ||
| 750 | ignore_host = data.getVar('GIT_PROXY_IGNORE_%s' % ignore_count, e.data, True) | ||
| 751 | f.write(proxy_command) | 748 | f.write(proxy_command) |
| 752 | f.close | 749 | f.close |
| 753 | 750 | ||
diff --git a/meta/classes/packaged-staging.bbclass b/meta/classes/packaged-staging.bbclass index 2497ac4d11..144087fedc 100644 --- a/meta/classes/packaged-staging.bbclass +++ b/meta/classes/packaged-staging.bbclass | |||
| @@ -159,9 +159,8 @@ staging_helper () { | |||
| 159 | mkdir -p ${TMPDIR}${layout_libdir}/opkg/info/ | 159 | mkdir -p ${TMPDIR}${layout_libdir}/opkg/info/ |
| 160 | fi | 160 | fi |
| 161 | if [ ! -e ${TMPDIR}${layout_libdir}/ipkg/ ]; then | 161 | if [ ! -e ${TMPDIR}${layout_libdir}/ipkg/ ]; then |
| 162 | mkdir -p ${TMPDIR}${layout_libdir}/opkg | ||
| 163 | cd ${TMPDIR}${layout_libdir}/ | 162 | cd ${TMPDIR}${layout_libdir}/ |
| 164 | ln -sf opkg/ ipkg | 163 | ln -sf opkg/ ipkg || true |
| 165 | fi | 164 | fi |
| 166 | } | 165 | } |
| 167 | 166 | ||
