From 8a97c9eb77eab6b674c2e91e54143fcf9633a1bc Mon Sep 17 00:00:00 2001 From: Matthias Maennich Date: Sun, 12 Dec 2021 15:23:28 +0000 Subject: [PATCH] ANDROID: move CLANG_VERSION definition to build.config.constants Moving this static value to a separate configuration file allows it to be used from other builds as well, such as the Kleaf build. Bug: 210296725 Signed-off-by: Matthias Maennich Change-Id: I07aac5609d8ec986e0e270fdbba3662ac10029f4 --- build.config.common | 4 +++- build.config.constants | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) create mode 100644 build.config.constants diff --git a/build.config.common b/build.config.common index 73e50cb588c7..e9c93042f46a 100644 --- a/build.config.common +++ b/build.config.common @@ -1,9 +1,11 @@ +. ${ROOT_DIR}/${KERNEL_DIR}/build.config.constants + BRANCH=android13-5.10 KMI_GENERATION=0 LLVM=1 DEPMOD=depmod -CLANG_PREBUILT_BIN=prebuilts/clang/host/linux-x86/clang-r437112/bin +CLANG_PREBUILT_BIN=prebuilts/clang/host/linux-x86/clang-${CLANG_VERSION}/bin BUILDTOOLS_PREBUILT_BIN=build/build-tools/path/linux-x86 DTC=${ROOT_DIR}/${BUILDTOOLS_PREBUILT_BIN}/dtc diff --git a/build.config.constants b/build.config.constants new file mode 100644 index 000000000000..3ba91bacef59 --- /dev/null +++ b/build.config.constants @@ -0,0 +1 @@ +CLANG_VERSION=r437112