build: add build script
Use latest Clang 17
This commit is contained in:
parent
6059e0c826
commit
b3cfd33cd4
10
build_kernel.sh
Normal file → Executable file
10
build_kernel.sh
Normal file → Executable file
|
@ -1,11 +1,13 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
export PATH=$(pwd)/toolchain/clang/host/linux-x86/clang-r383902/bin:$PATH
|
export PATH=$(pwd)/toolchain/clang/host/linux-x86/clang-r487747c/bin:$PATH
|
||||||
export CROSS_COMPILE=$(pwd)/toolchain/clang/host/linux-x86/clang-r383902/bin/aarch64-linux-gnu-
|
export CROSS_COMPILE=$(pwd)/toolchain/clang/host/linux-x86/clang-r487747c/bin/aarch64-linux-gnu-
|
||||||
export CC=$(pwd)/toolchain/clang/host/linux-x86/clang-r383902/bin/clang
|
export CC=$(pwd)/toolchain/clang/host/linux-x86/clang-r487747c/bin/clang
|
||||||
export CLANG_TRIPLE=aarch64-linux-gnu-
|
export CLANG_TRIPLE=aarch64-linux-gnu-
|
||||||
export ARCH=arm64
|
export ARCH=arm64
|
||||||
export PLATFORM_VERSION=12
|
export PLATFORM_VERSION=14
|
||||||
|
export TARGET_SOC=mt6877
|
||||||
|
export TARGET_BUILD_VARIANT=user
|
||||||
|
|
||||||
export KCFLAGS=-w
|
export KCFLAGS=-w
|
||||||
export CONFIG_SECTION_MISMATCH_WARN_ONLY=y
|
export CONFIG_SECTION_MISMATCH_WARN_ONLY=y
|
||||||
|
|
Loading…
Reference in a new issue