forked from LineageOS/android_kernel_sony_msm8994
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Re4son <3520622-re4son@users.noreply.gitlab.com>
- Loading branch information
1 parent
2091224
commit 4bf6700
Showing
1 changed file
with
46 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
#!/bin/bash | ||
|
||
############################################################################################ | ||
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | ||
# Kernel Source: | ||
# git clone https://github.com/Re4son/android_kernel_oneplus_msm8994 -b nethunter-16.0 | ||
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | ||
############################################################################################ | ||
|
||
############################################## | ||
# Toolchains | ||
############################################## | ||
|
||
# Clang | ||
unset CLANG_ROOT | ||
unset CLANG_SRC | ||
unset CLANG_PATH | ||
unset LD_LIBRARY_PATH | ||
unset CLANG_TRIPLE | ||
unset CC | ||
|
||
# GCC 64bit | ||
## arm64 cross compiler directory: | ||
CCD64="${TD}/aarch64-standalone-4.9" | ||
export CROSS_COMPILE=${CCD64}/bin/aarch64-linux-android- | ||
## Source repository: | ||
CROSS_COMPILE_SRC="https://images.kali.org/nethunter/toolchains/google_aarch64-standalone-oreo-4.9.tar.xz" | ||
CROSS_COMPILE_SRC_TYPE="wget" | ||
|
||
# GCC 32bit | ||
## armhf cross compiler directory: | ||
##CCD32="${TD}/armhf-standalone-4.9" | ||
##export CROSS_COMPILE_ARM32=${CCD32}/bin/arm-linux-androideabi- | ||
## Source repository: | ||
##CROSS_COMPILE_ARM32_SRC="https://images.kali.org/nethunter/toolchains/google_armhf-standalone-4.9.tar.xz" | ||
##CROSS_COMPILE_ARM32_TYPE="wget" | ||
|
||
# Directory structure on the target device that will contain the modules directory | ||
MODULE_DIRTREE="" | ||
|
||
# Source Path for module tree to be copied to into nethunter zip | ||
MODULES_IN=$BUILD_DIR/modules_out/lib/modules | ||
|
||
# Kernel local name | ||
export LOCALVERSION=-Re4son-1.0 | ||
|