User:Rage/Drafts/Amazon Fire Phone (Kodiak)

From Gentoo Wiki
Jump to: navigation, search
This page is a work in progress by Rage (talk | contribs). Treat its contents with caution.


Installing sources from custom ebuild repositories

Currently, these kernel sources are only supported by an ebuild in rage-overlay.

To enable a custom ebuild repository, create the proper repos.conf file and emerge it as shown here for rage-overlay:

FILE /etc/portage/repos.conf/rage-overlay.conf
location = /usr/local/portage/rage-overlay
sync-type = git
sync-uri =
auto-sync = yes

For using sync-type = git the package dev-vcs/git needs to be installed. Alternatively, layman can be used for adding the repository.

root #emerge --ask sys-kernel/kodiak-sources

Installing crossdev for cross compiling

root #emerge --ask crossdev
root #crossdev --stable -v -t arm-linux-gnueabihf --gcc 4.9.4

Building a Kernel

root #eselect python list
root #eselect python set <python2>

root #emerge -av sys-devel/gcc-4.9.4
root #cd /usr/src/linux
root #zcat /proc/config.gz > .config
root #make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf-




Built as kernel module as well. This will be messy.

See also

  • Project:Android - Using ebuilds to track patchsets and customized sources is the Gentoo-preferred way to handle Android-specific customizations to the official Linux kernel.
  • GLEP 26 - This GLEP proposes to create a more consistent handling of kernels and kernel building.
  • Cross_build_environment - It may be useful to cross compile from a more powerful system.

External resources