Last active
January 30, 2022 18:13
-
-
Save faizauthar12/66ad8626fb67e78039465f5357df2a44 to your computer and use it in GitHub Desktop.
Building kernel Script
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
DEFCONFIG=$1 | |
JOB=$2 | |
# Declare your CLANG n GCC Location HERE! | |
CLANG_PATH=~/Android/clang/proton-clang | |
#GCC_PATH=~/Android/gcc/aarch64-linux-android-4.9 | |
# export ANDROID_MAJOR_VERSION=q | |
make O=out ARCH=arm64 $DEFCONFIG | |
PATH="$CLANG_PATH/bin:${PATH}" \ | |
make -j$2 O=out \ | |
ARCH=arm64 \ | |
CC=clang \ | |
CROSS_COMPILE=aarch64-linux-gnu- \ | |
AR=llvm-ar \ | |
NM=llvm-nm \ | |
OBJCOPY=llvm-objcopy \ | |
OBJDUMP=llvm-objdump \ | |
STRIP=llvm-strip |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment