From 6c55ca2cae82d0e77fc947c32c680d7b87e0e5e4 Mon Sep 17 00:00:00 2001 From: Elliot Berman Date: Wed, 27 Apr 2022 12:55:25 -0700 Subject: [PATCH] ANDROID: Add flag to indicate compiling against ACK Add a flag: __ANDROID_COMMON_KERNEL__ which out-of-tree vendor drivers can use to check if they are compiling against an Android Common Kernel. These out-of-tree vendor drivers can use this flag + LINUX_KERNEL_VERSION to determine if a feature has been backported. Bug: 229953929 Change-Id: I832344d63f3639479784753edfb7ac405068312f Signed-off-by: Elliot Berman --- build.config.common | 1 + 1 file changed, 1 insertion(+) diff --git a/build.config.common b/build.config.common index 9a3580b33978..52aea299e7a6 100644 --- a/build.config.common +++ b/build.config.common @@ -8,6 +8,7 @@ CLANG_PREBUILT_BIN=prebuilts/clang/host/linux-x86/clang-${CLANG_VERSION}/bin BUILDTOOLS_PREBUILT_BIN=build/kernel/build-tools/path/linux-x86 DTC=${ROOT_DIR}/${BUILDTOOLS_PREBUILT_BIN}/dtc +KCFLAGS=-D__ANDROID_COMMON_KERNEL__ EXTRA_CMDS='' STOP_SHIP_TRACEPRINTK=1 IN_KERNEL_MODULES=1