Skip to content

Commit

Permalink
script: Fixes for adrenotools generator
Browse files Browse the repository at this point in the history
  • Loading branch information
EliasTheGrandMasterOfMistakes authored Aug 8, 2024
1 parent 1e720fd commit 09cf6cd
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions turnip_builder.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ nocolor='\033[0m'
deps="meson ninja patchelf unzip curl pip flex bison zip"
workdir="$(pwd)/turnip_workdir"
magiskdir="$workdir/turnip_module"
adrenotoolsdir="$workdir/turnip_adrenotools"
ndkver="android-ndk-r27-beta2"
sdkver="31"
mesasrc="https://gitlab.freedesktop.org/mesa/mesa/-/archive/main/mesa-main.zip"
Expand Down Expand Up @@ -179,11 +180,10 @@ generate_adrenotools(){
}
EOF

cp "$workdir"/mesa-main/build-android-aarch64/src/freedreno/vulkan/libvulkan_freedreno.so $workdir/turnip_adrenotools
patchelf --set-soname vulkan.ad07xx.so libvulkan_freedreno.so
cp "$workdir"/vulkan.adreno.so "$adrenotoolsdir"/
patchelf --set-soname vulkan.ad07xx.so libvulkan_freedreno.so
cd $workdir
zip -r "$workdir"/turnip_adrenotools/turnip_adrenotools.zip ./* &> /dev/null
cp "$workdir"/turnip_adrenotools/turnip_adrenotools.zip $workdir/
zip -r "$workdir"/turnip_adrenotools.zip "$adrenotoolsdir"* &> /dev/null/
if ! [ -a "$workdir"/turnip_adrenotools.zip ];
then echo -e "$red-Packing failed!$nocolor" && exit 1
else echo -e "$green-All done, you can take your module from here;$nocolor" && echo "$workdir"/turnip_adrenotools.zip
Expand Down

0 comments on commit 09cf6cd

Please sign in to comment.