mirror of
https://dev.iopsys.eu/feed/iopsys.git
synced 2025-12-10 07:44:50 +01:00
iop: generate wifilife tarball for open builds
This commit is contained in:
parent
313e8dc921
commit
c3c90e78d1
2 changed files with 21 additions and 2 deletions
|
|
@ -303,7 +303,7 @@ function genconfig {
|
|||
[ $endptAllowed -eq 0 ] && echo "CONFIG_ENDPT_OPEN=y" >> .config
|
||||
[ $natalieAllowed -eq 0 ] && echo "CONFIG_NATALIE_OPEN=y" >> .config
|
||||
[ $mediatekAllowed -eq 0 ] && echo "CONFIG_MEDIATEK_OPEN=y" >> .config
|
||||
[ $wifilifeAllowed -eq 0 ] && echo "# CONFIG_PACKAGE_wifilife is not set" >> .config #TODO: change to CONFIG_WIFILIFE_OPEN=y when open tarball is available
|
||||
[ $wifilifeAllowed -eq 0 ] && echo "CONFIG_PACKAGE_wifilife=y" >> .config
|
||||
else
|
||||
echo "CONFIG_GITMIRROR_REWRITE=n" >>.config
|
||||
echo "CONFIG_BCM_OPEN=y" >> .config
|
||||
|
|
@ -311,7 +311,7 @@ function genconfig {
|
|||
echo "CONFIG_ENDPT_OPEN=y" >> .config
|
||||
echo "CONFIG_NATALIE_OPEN=y" >> .config
|
||||
echo "CONFIG_MEDIATEK_OPEN=y" >> .config
|
||||
echo "# CONFIG_PACKAGE_wifilife is not set" >> .config #TODO: change to CONFIG_WIFILIFE_OPEN=y when open tarball is available
|
||||
echo "CONFIG_PACKAGE_wifilife=y" >> .config
|
||||
fi
|
||||
|
||||
# Force regeneration of themes
|
||||
|
|
|
|||
|
|
@ -76,6 +76,23 @@ build_ice_consumer() {
|
|||
cd "$curdir"
|
||||
}
|
||||
|
||||
build_wifilife_consumer() {
|
||||
local ver commit
|
||||
ver=$(grep -w "PKG_VERSION:" ./feeds/iopsys/wifilife/Makefile | cut -d'=' -f2)
|
||||
commit=$(grep -w "PKG_SOURCE_VERSION:" ./feeds/iopsys/wifilife/Makefile | cut -d'=' -f2)
|
||||
[ -n "$ver" -a -n "$commit" ] || return
|
||||
ssh $SERVER "test -f $FPATH/wifilife-${ver}_${commit}.tar.xz" && return
|
||||
cd ./build_dir/target-*/wifilife-$ver/ipkg-* || cd ./build_dir/target-mips*musl-*/wifilife-$ver/ipkg-*
|
||||
cp -rf wifilife wifilife-open-$ver
|
||||
rm -rf wifilife-open-$ver/CONTROL/
|
||||
tar Jcf wifilife-open-${ver}_${commit}.tar.xz wifilife-open-$ver
|
||||
scp -pv wifilife-open-${ver}_${commit}.tar.xz $SERVER:$FPATH/
|
||||
cp wifilife-open-${ver}_${commit}.tar.xz $curdir/
|
||||
rm -rf wifilife-open-$ver
|
||||
rm -f wifilife-open-${ver}_${commit}.tar.xz
|
||||
cd "$curdir"
|
||||
}
|
||||
|
||||
build_mediatek_kernel() {
|
||||
local mediatek_commit kernel_version kernel
|
||||
|
||||
|
|
@ -153,9 +170,11 @@ function generate_tarballs {
|
|||
build_natalie_consumer
|
||||
build_endptmngr_consumer
|
||||
build_ice_consumer
|
||||
build_wifilife_consumer
|
||||
elif [ "$stk_target" == "mediatek" ]; then
|
||||
build_mediatek_kernel
|
||||
build_ice_consumer
|
||||
build_wifilife_consumer
|
||||
else
|
||||
echo "Invalid target: $stk_target"
|
||||
print_usage
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue