remove associative array and for loops to init submoduls
This commit is contained in:
parent
856871f6cb
commit
3a307255fc
1 changed files with 17 additions and 13 deletions
30
PKGBUILD
30
PKGBUILD
|
@ -50,20 +50,24 @@ prepare() {
|
||||||
sed -i "s/if(${pattern}_FOUND)/if(false)/g" ./companion/src/CMakeLists.txt
|
sed -i "s/if(${pattern}_FOUND)/if(false)/g" ./companion/src/CMakeLists.txt
|
||||||
done
|
done
|
||||||
|
|
||||||
declare -A submodules=(
|
cd "$_pkgbase/radio/src/thirdparty/"
|
||||||
["$_pkgbase/radio/src/thirdparty/"]="AccessDenied FreeRTOS-Kernel Segger_RTT"
|
git submodule init
|
||||||
["$_pkgbase/radio/src/thirdparty/FreeRTOS/portable/ThirdParty/"]="FreeRTOS-Kernel-Community-Supported-Ports FreeRTOS-Kernel-Partner-Supported-Ports"
|
git config submodule.AccessDenied.url $srcdir/AccessDenied
|
||||||
["$_pkgbase/radio/src/thirdparty/libopenui/thirdparty/"]="lvgl stb"
|
git config submodule.FreeRTOS-Kernel.url $srcdir/FreeRTOS-Kernel
|
||||||
)
|
git config submodule.Segger_RTT.url $srcdir/Segger_RTT
|
||||||
|
git submodule update --init
|
||||||
|
|
||||||
for path in "${!submodules[@]}"; do
|
cd "$_pkgbase/radio/src/thirdparty/FreeRTOS/portable/ThirdParty/"
|
||||||
cd $path
|
git submodule init
|
||||||
git submodule init
|
git config submodule.FreeRTOS-Kernel-Community-Supported-Ports.url $srcdir/FreeRTOS-Kernel-Community-Supported-Ports
|
||||||
for module in ${submodules[$path]}; do
|
git config submodule.FreeRTOS-Kernel-Partner-Supported-Ports.url $srcdir/FreeRTOS-Kernel-Partner-Supported-Ports
|
||||||
git config submodule.$module.url $srcdir/$module
|
git submodule update --init
|
||||||
done
|
|
||||||
git submodule update --init
|
cd "$_pkgbase/radio/src/thirdparty/libopenui/thirdparty/"
|
||||||
done
|
git submodule init
|
||||||
|
git config submodule.lvgl.url $srcdir/lvgl
|
||||||
|
git config submodule.stb.url $srcdir/stb
|
||||||
|
git submodule update --init
|
||||||
}
|
}
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
|
|
Loading…
Reference in a new issue