linux5(7-12)-tkg: Add a patch to build Android ashmem and binder as modules instead of built-in for anbox usage.
https://nest.parrot.sh/packages/kernel/linux/-/raw/master/debian/patches/debian/android-enable-building-ashmem-and-binder-as-modules.patch https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=901492 Fixes https://github.com/Frogging-Family/linux-tkg/issues/130 Fixes https://github.com/Frogging-Family/linux-tkg/issues/158
This commit is contained in:
@@ -1119,6 +1119,7 @@ CONFIG_DEBUG_INFO_BTF_MODULES=y\n
|
||||
read -rp "`echo $' > N/y : '`" CONDITION12;
|
||||
fi
|
||||
if [[ "$CONDITION12" =~ [yY] ]] || [ "$_anbox" = "true" ]; then
|
||||
msg2 "Patching kernel to build Android ashmem and binder as modules instead of built-in"
|
||||
echo "CONFIG_ASHMEM=y" >> ./.config
|
||||
echo "CONFIG_ION=y" >> ./.config
|
||||
echo "# CONFIG_ION_SYSTEM_HEAP is not set" >> ./.config
|
||||
@@ -1127,6 +1128,7 @@ CONFIG_DEBUG_INFO_BTF_MODULES=y\n
|
||||
echo "CONFIG_ANDROID_BINDERFS=y" >>./.config
|
||||
echo 'CONFIG_ANDROID_BINDER_DEVICES="binder,hwbinder,vndbinder"' >>./.config
|
||||
echo "# CONFIG_ANDROID_BINDER_IPC_SELFTEST is not set" >> ./.config
|
||||
tkgpatch="$srcdir/0013-anbox-modules.patch" && _tkg_patcher
|
||||
fi
|
||||
fi
|
||||
|
||||
|
Reference in New Issue
Block a user