Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

This is a collection of scripts aimed at streamlining the process of kernel compilation for improved efficiency and effectiveness.

NotificationsYou must be signed in to change notification settings

karthik558/Kernel-Compile-Script

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 

Repository files navigation

#Kernel Building Script that i am using.

HOW TO USE THIS SCRIPT

<<< Explaining the script components >>>

export ARCH=arm64 - Change according to your device

export SUBARCH=arm64 - Change according to your device

TC_DIR="/home/ubuntu/Kernel" - TC_DIR = Tool chain directory

MPATH="$TC_DIR/clang12/bin/:$PATH" - MPATH = Tool chain bin directory

rm -f out/arch/arm64/boot/Image.gz-dtb - Removing previously compiled kernel Image.gz-dtb

make O=out vendor/violet-perf_defconfig - Show your deconfig file

PATH="$MPATH" make -j32 O=out \ - j= no of cores

NM=llvm-nm
OBJCOPY=llvm-objcopy
LD=ld.lld \ - This are kernel need files

CROSS_COMPILE=aarch64-linux-gnu-
CROSS_COMPILE_ARM32=arm-linux-gnueabi-
CC=clang \ - CC=clang is your compiler use GCC instead of clang according to the toolchain you are using

AR=llvm-ar
OBJDUMP=llvm-objdump
STRIP=llvm-strip - This are kernel need files

2>&1 | tee error.log - save logs

cp out/arch/arm64/boot/Image.gz-dtb /home/ubuntu/Kernel/Anykernel - Copying your compiled kernel image zip to Flasher/Anykernel

cd /home/ubuntu/Kernel/Anykernel - Entering to the Flasher script

if [ -f "Image.gz-dtb" ]; thenzip -r9 Ryzen+-violet-"$DATE".zip * -x .git README.md *placeholder - Change the name of the device and the first name according to your wish

About

This is a collection of scripts aimed at streamlining the process of kernel compilation for improved efficiency and effectiveness.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors2

  •  
  •  

Languages


[8]ページ先頭

©2009-2025 Movatter.jp