Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/romiyusnandar/kernel_compile


https://github.com/romiyusnandar/kernel_compile

Last synced: 24 days ago
JSON representation

Awesome Lists containing this project

README

        

# This for Proton Clang

#### For example, i will compile kernel for ```tissot```
### First

Export your device arch

#### For ```arm64``` device
export ARCH=arm64 && export SUBARCH=arm64
#### For ```arm32``` device
export ARCH=arm32 && export SUBARCH=arm32
#### Export your ```proton-clang```
export PATH="//proton-clang/bin:$PATH"
example

export PATH="/home/kakashi/proton-clang/bin:$PATH"
#### Export the ```strip```, for ```arm64```
export STRIP="//proton-clang/aarch64-linux-gnu/bin/strip"
#### Export the ```strip```, for ```arm32```
export STRIP="/home/kakashi/proton-clang/arm-linux-gnueabi/bin/strip"

### If you never ccompile kernel before (it's first time), skip this step, go to defconfig

make O=out clean && make O=out mrpoper

### Make your ```device_defconfigs```

make tissot_defconfig O=out

### Let compile the kernel

make -j$(nproc --all) O=out \
ARCH=arm64 \
AR=llvm-ar \
NM=llvm-nm \
OBJCOPY=llvm-objcopy \
OBJDUMP=llvm-objdump \
STRIP=llvm-strip \
CC=clang \
CROSS_COMPILE=aarch64-linux-gnu- \
CROSS_COMPILE_ARM32=arm-linux-gnueabi-