This is a set of scripts to automate the building and testing of a Linux kernel for the 2012 Wi-Fi Nexus 7, also known as grouper. Currently it will create a build environment, download and build the kernel sources, and boot said kernel on the Nexus. Ideally these scripts will work on any linux system, although so far it's only compatible with x86 and x86_64. It requires git, fastboot, and abootimg to be installed on your system.
Many commands require superuser, this is mostly because of the chroot environment it creates to build the kernel in.
Configuration can be accomplished by editing the configuration file. Syntax for the file is basically bash syntax as it's really just a script that gets sourced by the main script. Hopefully I've commented it well enough that one can figure out what all the variables do.
Useage:
sudo ./builder.sh <command>
Commands:
cleancleans everything out, so you can start fresh. It does leave the kernel and ramdisk targets alone though.mountmountsprocfs,sysfs, etc for the chroot environmentunmountunmountsprocfs,sysfs, etc for the chroot environmentsetupcreates the chroot environment and installs all necessary packages for the cross build into the chrootupdateupdates the packages in the chroot to current versionskernel <command>commands that deal with the kernel as follows:getdownload the kernel source codeupdateupdate the kernel source tree to the most current versionbuildcreate the kernel from the source codebootboot the newly built kernel on the Nexus to try it out. Your nexus needs to be in fastboot/bootloader mode and plugged into your computer for this to work.