linux: disable ASHMEM on >= 5.18

Dropped by upstream, see
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=721412ed3d819e767cac2b06646bf03aa158aaec

It was marked as optional, so it didn't break our builds but resulted in:

    warning: unused option: ASHMEM

Explicitly disable ASHMEM on kernels >=5.18 for clarity and fewer warnings
This commit is contained in:
Atemu 2022-07-07 14:24:33 +02:00
parent a5c867d9fe
commit b5ee4eca8e

View file

@ -911,7 +911,7 @@ let
FSL_MC_UAPI_SUPPORT = mkIf (stdenv.hostPlatform.system == "aarch64-linux") (whenAtLeast "5.12" yes);
ASHMEM = { optional = true; tristate = whenAtLeast "5.0" "y";};
ASHMEM = { optional = true; tristate = whenBetween "5.0" "5.18" "y";};
ANDROID = { optional = true; tristate = whenAtLeast "5.0" "y";};
ANDROID_BINDER_IPC = { optional = true; tristate = whenAtLeast "5.0" "y";};
ANDROID_BINDERFS = { optional = true; tristate = whenAtLeast "5.0" "y";};