Option to enable Binder and Ashmem modules for use with Anbox (#122)
* Add the option to enable Binder and Ashmem These kernel modules are needed for Anbox, and maybe other android projects as well. * Delete prepare * Add files via upload * Add binder and ashmem option to prepare * Got rid of the extra prepare file, oops
This commit is contained in:
parent
b69de7d1cc
commit
1c22d6853c
@ -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"
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user