diff --git a/customization.cfg b/customization.cfg index 2750658..edfa2e2 100644 --- a/customization.cfg +++ b/customization.cfg @@ -118,6 +118,9 @@ _zfsfix="" # Set to "true" to enable support for fsync, an experimental replacement for esync found in Valve Proton 4.11+ - https://steamcommunity.com/games/221410/announcements/detail/2957094910196249305 _fsync="" +# Set to "true" to enable the Binder and Ashmem, the kernel modules required to use the android emulator Anbox. +_anbox="" + # A selection of patches from Zen/Liquorix kernel and additional tweaks for a better gaming experience (ZENIFY) - Default is "true" _zenify="true" diff --git a/linux-tkg-config/prepare b/linux-tkg-config/prepare index fdd64bc..3dffcd3 100644 --- a/linux-tkg-config/prepare +++ b/linux-tkg-config/prepare @@ -1060,6 +1060,23 @@ _tkg_srcprep() { tkgpatch="$srcdir/0011-ZFS-fix.patch" && _tkg_patcher fi fi + + # Anbox modules + if [ "$_basever" > "56" ]; then + if [ -z "$_anbox" ]; then + plain "" + plain "Enable android modules for use with Anbox?" + plain "https://github.com/anbox/anbox" + read -rp "`echo $' > N/y : '`" CONDITION12; + fi + if [[ "$CONDITION12" =~ [yY] ]] || [ "$_zfsfix" = "true" ]; then + echo "CONFIG_ASHMEM=y" >> ./.config + echo "CONFIG_ANDROID=y" >> ./.config + echo "CONFIG_ANDROID_BINDER_IPC=y" >> ./.config + echo "CONFIG_ANDROID_BINDERFS=y" >>./.config + echo 'CONFIG_ANDROID_BINDER_DEVICES="binder,hwbinder,vndbinder"' >>./.config + fi + fi # Community patches if [ -n "$_community_patches" ]; then