Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/romiyusnandar/kernel_compile
https://github.com/romiyusnandar/kernel_compile
Last synced: 24 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/romiyusnandar/kernel_compile
- Owner: romiyusnandar
- Created: 2022-04-23T22:30:50.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-05-28T04:13:36.000Z (over 2 years ago)
- Last Synced: 2024-06-10T13:19:22.903Z (7 months ago)
- Size: 9.77 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# This for Proton Clang
#### For example, i will compile kernel for ```tissot```
### FirstExport 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"
exampleexport 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 defconfigmake 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-