experimental
Last change
on this file since a247e46 was 53bc10b, checked in by Manuel Canales Esparcia <manuel@…>, 19 years ago |
Added MAKEFLAGS support.
|
-
Property mode
set to
100644
|
File size:
891 bytes
|
Rev | Line | |
---|
[2c2471d] | 1 | #!/bin/bash
|
---|
| 2 |
|
---|
| 3 | # $Id$
|
---|
| 4 |
|
---|
| 5 | set +e
|
---|
| 6 |
|
---|
| 7 |
|
---|
| 8 | #----------------------------------#
|
---|
| 9 | wrt_optimize() { # Apply pkg specific opt's to build
|
---|
| 10 | #----------------------------------#
|
---|
| 11 | local pkg=$1
|
---|
| 12 | local optLvl optVal OPT_VAR
|
---|
| 13 |
|
---|
| 14 | optLvl=`awk -v pkg="$pkg" '$1 == pkg { print $2 }' $JHALFSDIR/opt_override`
|
---|
| 15 | if [[ "$optLvl" = "" ]] ; then
|
---|
| 16 | optLvl=$DEF_OPT_LVL;
|
---|
| 17 | fi
|
---|
| 18 |
|
---|
| 19 | for OPT_VAR in $ACTIVE_OPT_VARS ; do
|
---|
| 20 | eval optVal=\$${OPT_VAR}_$optLvl
|
---|
| 21 |
|
---|
| 22 | if [[ "$optVal" != "unset" ]]; then
|
---|
| 23 | (
|
---|
| 24 | cat << EOF
|
---|
| 25 | @echo "export $OPT_VAR=\"$optVal\"" >> envars
|
---|
| 26 | EOF
|
---|
| 27 | ) >> $MKFILE.tmp
|
---|
| 28 | else
|
---|
| 29 | continue
|
---|
| 30 | fi
|
---|
| 31 | done
|
---|
[53bc10b] | 32 | }
|
---|
| 33 |
|
---|
| 34 | #----------------------------------#
|
---|
| 35 | wrt_makeflags() { # Apply MAKEFLAGS to build
|
---|
| 36 | #----------------------------------#
|
---|
| 37 | if [[ "$MAKEFLAGS" != "unset" ]]; then
|
---|
| 38 | (
|
---|
| 39 | cat << EOF
|
---|
| 40 | @echo "export MAKEFLAGS=\"$MAKEFLAGS\"" >> envars
|
---|
| 41 | EOF
|
---|
| 42 | ) >> $MKFILE.tmp
|
---|
| 43 | else
|
---|
| 44 | continue
|
---|
| 45 | fi
|
---|
| 46 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.