build: add build script

Use latest Clang 17
This commit is contained in:
Fede2782 2024-04-28 11:57:14 +02:00
parent 6059e0c826
commit b3cfd33cd4
No known key found for this signature in database
GPG key ID: 1DD0FACD495CE046

10
build_kernel.sh Normal file → Executable file
View file

@ -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