Code Monkey home page Code Monkey logo

areola_kernel_packer's Introduction

Areola_kernel_packer

#Pack kernels using aroma as an installer

##make a script to build your kernel and include the following variables.

###Build the boot image

. build/envsetup.sh
lunch full_devicename-userdebug 

###Adjust for your CPU threads

time make bootimage -j9

###Set your directory locations Abootimg=

Abootimg is the location of your out folder where boot.img resides.

Alibfiles=

Alibfiles is the directory for your library modules.

Klocation=

Klocation is the location of your kernel source. This is used to update the changelog.

Example:

Abootimg=PATH/TO/boot.img
Alibfiles=SET/YOUR/OUTPATH/target/product/DEVNAME/system/lib
Klocation=~SET/PATH/TO/android/cm11/kernel/DEVNAME/KERNAL

###Copy boot.img and libs

cp -ar $Alibfiles ./output/zip/system
cp $Abootimg ./output/zip

###Go to the kernel directory and fetch the last 100 commits Leave the (). It indicates a function done in a sub-shell

(cd $Klocation && git log --max-count=100 --oneline --decorate > changelogs.txt && sed -i 's/(HEAD, master)/" "/g' changelogs.txt && sed -i 's/\(origin\/master, origin\/HEAD\)/" "/g' changelogs.txt)

###Import commits into Aroma

cp $Klocation/changelogs.txt output/zip/META-INF/com/google/android/aroma 

###Remove old files

rm $Klocation/changelogs.txt

###Naming and making an installer zip

cd output/zip
NOW=$(date +"%m-%d-%y")

###change this kernel name to whatever you name yours

zip -r -q --exclude=*zip* marduks kernel-"$NOW".zip * && echo "Success" || echo "Failure"

areola_kernel_packer's People

Contributors

marduk191 avatar

Watchers

 avatar  avatar

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.