mint0x33/build_kernel.sh
2024-10-21 22:41:23 +02:00

50 lines
1.7 KiB
Bash
Executable file

#!/bin/bash
# =========================================
# _____ _
# | ___| __ ___ ___| |__
# | |_ | '__/ _ \/ __| '_ \
# | _|| | | __/\__ \ | | |
# |_| |_| \___||___/_| |_|
#
# =========================================
#
# Minty - The kernel build script for Mint
# The Fresh Project
# Copyright (C) 2019-2021 TenSeventy7
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <https://www.gnu.org/licenses/>.
#
# =========================
#
ORIGIN_DIR=$(pwd)
LLVM_TOOLCHAIN=$ORIGIN_DIR/toolchain/linux-x86-android-9.0.0_r6-clang-4639204
GNU_TOOLCHAIN=$ORIGIN_DIR/toolchain/android_prebuilts_gcc_linux-x86_aarch64_aarch64-linux-android-4.9
PATH=$LLVM_TOOLCHAIN/bin:$GNU_TOOLCHAIN/bin:$PATH
# compiler -> LLVM
#export CLANG=$LLVM_TOOLCHAIN/bin/clang
# binutils -> GNU
export CROSS_COMPILE=aarch64-linux-androidkernel-
export CLANG_TRIPLE=aarch64-linux-gnu-
export PLATFORM_VERSION=13
export ANDROID_MAJOR_VERSION=t
export ARCH=arm64
make CC=clang -j$(nproc --all) exynos9610-a51xx_defconfig
make CC=clang #-j$(nproc --all)