try to avoid overhead by using openwrt as intended
This commit is contained in:
parent
6815f3ca52
commit
e58a6bbe95
1 changed files with 8 additions and 7 deletions
15
buildscript
15
buildscript
|
@ -140,8 +140,8 @@ prepare() {
|
||||||
|
|
||||||
test -d $builddir || mkdir $builddir
|
test -d $builddir || mkdir $builddir
|
||||||
|
|
||||||
/bin/rm -rf $target
|
# /bin/rm -rf $target
|
||||||
svn export src/openwrt $target
|
# svn export src/openwrt $target
|
||||||
|
|
||||||
## generate own feeds.conf
|
## generate own feeds.conf
|
||||||
#this local variable should be globally configure variable used in get_source and here
|
#this local variable should be globally configure variable used in get_source and here
|
||||||
|
@ -155,7 +155,7 @@ prepare() {
|
||||||
done
|
done
|
||||||
|
|
||||||
echo cleaning feeds
|
echo cleaning feeds
|
||||||
test -d $target/feeds && /bin/rm -rf $target/feeds
|
# test -d $target/feeds && /bin/rm -rf $target/feeds
|
||||||
|
|
||||||
$target/scripts/feeds update
|
$target/scripts/feeds update
|
||||||
|
|
||||||
|
@ -172,11 +172,11 @@ prepare() {
|
||||||
|
|
||||||
# todo evaluate this with the new openwrt
|
# todo evaluate this with the new openwrt
|
||||||
# This changes the default behavior of sysupgrade to not save the config
|
# This changes the default behavior of sysupgrade to not save the config
|
||||||
cat build_patches/sysupgrade_no_config_save.patch | patch -p0 -d $target
|
cat build_patches/sysupgrade_no_config_save.patch | patch -f -p0 -d $target
|
||||||
|
|
||||||
#saves ~200MB for each build
|
#saves ~200MB for each build
|
||||||
test -d ./src/dl || mkdir ./src/dl
|
# test -d ./src/dl || mkdir ./src/dl
|
||||||
ln -s ../../src/dl $target/dl
|
# ln -s ../../src/dl $target/dl
|
||||||
|
|
||||||
board_prepare
|
board_prepare
|
||||||
}
|
}
|
||||||
|
@ -286,7 +286,7 @@ postbuild() {
|
||||||
|
|
||||||
clean() {
|
clean() {
|
||||||
board_clean
|
board_clean
|
||||||
/bin/rm -rf bin $builddir
|
# /bin/rm -rf bin $builddir
|
||||||
}
|
}
|
||||||
|
|
||||||
buildall() {
|
buildall() {
|
||||||
|
@ -312,6 +312,7 @@ if [ "$1" != "selectbsp" -a "$1" != "selectcommunity" -a "$1" != "buildall" ]; t
|
||||||
echo "Working with $(/bin/ls -l selected_bsp | awk '{ print $11 }') and" \
|
echo "Working with $(/bin/ls -l selected_bsp | awk '{ print $11 }') and" \
|
||||||
"$(/bin/ls -l selected_community | awk '{ print $11 }')"
|
"$(/bin/ls -l selected_community | awk '{ print $11 }')"
|
||||||
. selected_bsp
|
. selected_bsp
|
||||||
|
target=src/openwrt
|
||||||
tpl_translate=$(awk -F= 'BEGIN{printf("sed")} /^.+$/{gsub("/", "\\/", $0); printf(" -es/\\${%s}/%s/g",$1,$2)}' selected_community)
|
tpl_translate=$(awk -F= 'BEGIN{printf("sed")} /^.+$/{gsub("/", "\\/", $0); printf(" -es/\\${%s}/%s/g",$1,$2)}' selected_community)
|
||||||
echo
|
echo
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Add table
Reference in a new issue