From b3cfd33cd40f28e34a3724592a36b7c04bdd2fb7 Mon Sep 17 00:00:00 2001 From: Fede2782 <78815152+Fede2782@users.noreply.github.com> Date: Sun, 28 Apr 2024 11:57:14 +0200 Subject: [PATCH] build: add build script Use latest Clang 17 --- build_kernel.sh | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) mode change 100644 => 100755 build_kernel.sh diff --git a/build_kernel.sh b/build_kernel.sh old mode 100644 new mode 100755 index 5e44b17d7..b7fd6b2ba --- a/build_kernel.sh +++ b/build_kernel.sh @@ -1,11 +1,13 @@ #!/bin/bash -export PATH=$(pwd)/toolchain/clang/host/linux-x86/clang-r383902/bin:$PATH -export CROSS_COMPILE=$(pwd)/toolchain/clang/host/linux-x86/clang-r383902/bin/aarch64-linux-gnu- -export CC=$(pwd)/toolchain/clang/host/linux-x86/clang-r383902/bin/clang +export PATH=$(pwd)/toolchain/clang/host/linux-x86/clang-r487747c/bin:$PATH +export CROSS_COMPILE=$(pwd)/toolchain/clang/host/linux-x86/clang-r487747c/bin/aarch64-linux-gnu- +export CC=$(pwd)/toolchain/clang/host/linux-x86/clang-r487747c/bin/clang export CLANG_TRIPLE=aarch64-linux-gnu- export ARCH=arm64 -export PLATFORM_VERSION=12 +export PLATFORM_VERSION=14 +export TARGET_SOC=mt6877 +export TARGET_BUILD_VARIANT=user export KCFLAGS=-w export CONFIG_SECTION_MISMATCH_WARN_ONLY=y