Coder Social home page Coder Social logo

radcolor / kranul_bleeder Goto Github PK

View Code? Open in Web Editor NEW
4.0 1.0 2.0 9 KB

πŸ€– Ever wanted to just compile your own kernel without knowing anything, you are in right place!

License: Apache License 2.0

Shell 100.00%
kernel buildbot linux-kernel

kranul_bleeder's Introduction

Welcome Karamel Bleeders!

Ever wanted to just compile a kernel for your device without knowing anything about commands, compilers, and about linux enviroment.

Well you are f##king welcome here!

Things you need before starting

  • A kernel tree source, that is bootable obviously.
  • Compilers to compile your kernel (Don't worry iam here).
  • AnyKernel, so that you can flash your kernel in your device (for that also iam here to help).

Things you must know before starting

  • About defconfig(Default Configure) - it's a file mainly located inside your_kernel_repo/arch/arm/ arm64/config/HERE. you need that file name and replace in this line, remember it's device specific file you need to figure out on own or either ask your kernel owner for which file to use.

  • English?

  • and yes ofcourse a mind.

So, how to?

Here are the 5 crucial steps that can help you to compile your own kernel.

1. Clone this repository, we will be doing everthing inside this repository folder. for that type the below command.

it will clone this repository in your local machine.

git clone https://github.com/theradcolor/karamel-bleeder.git

then you need to come inside the folder of cloned repository.

cd karamel-bleeder/

2. You need several dependencies and libraries for that, execute the below command.

this will install all dependencies that you need.

bash setup.sh

3. Now we will download our required compilers, again i know you are lazy just like me so just copy-paste the below command.

this will clone required compilers.

bash compiler.sh

4. Now we will clone the anykernel repository. Note: You need to do changes in anykernel script Example here and it's files according to your device and for that you need brain go and READ THE ANYKERNEL DOCUMENTATION.

this will clone the anykernel.

bash ak.sh

5. Ok the final and most complicated part COMPILING THE KERNEL, the below script will only help you to compile the kernel and make it as flashable zip. It will not help you to fix errors and warning and this needs a human brain!

this command will help you to compile your karamel.

bash build.sh

Important

  • Make sure your kernel is inside this current folder(karamel-bleeder) and change the folder name of kernel repo to kernel or either replace folder name in this line.

  • You may need to change architecture which depends on your CPU, change here in this line.

  • You can also off/on ccache in this line and also change directory in this line, Ccache (or β€œccache”) is a compiler cache. It speeds up recompilation by caching previous compilations and detecting when the same compilation is being done again.

Congratulations, you have successfully compiled and flashed a kernel AS A NOOB!

Next step? (Needs more brain)

So what's next, want to upstream your kernel to latest linux tag or want to merge the latest CAF(Code Aurora Forum) into your kernel, well...

Follow this my GitHub Gist

also here are my Personal Scripts

Pull requests and issues are welcome!

Thanks

kranul_bleeder's People

Contributors

radcolor avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

papiler oiakera

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.