Difference between revisions of "Gentoo NDK"
PuffTheMagic (talk | contribs) |
PuffTheMagic (talk | contribs) |
||
| Line 1: | Line 1: | ||
| − | + | Install the latest version (sys-devel/crossdev-99999999) of crossdev: | |
<source lang="bash"> | <source lang="bash"> | ||
| − | echo | + | echo 'sys-devel/crossdev **' >> /etc/portage/package.keywords |
emerge crossdev | emerge crossdev | ||
| + | </source> | ||
| + | |||
| + | Setup some overlays for crossdev to write to and add PuffTheMagic's special overlay of custom ebuilds: | ||
| + | <source lang="bash"> | ||
| + | mkdir /usr/local/portage | ||
| + | git clone git://git.webos-internals.org/puffthemagic/portage-overlay.git /usr/local/puff | ||
| + | echo 'PORTDIR_OVERLAY="/usr/local/portage /usr/local/palm ${PORTDIR_OVERLAY}"' >> /etc/make.conf | ||
| + | </source> | ||
| + | |||
| + | Building a your toolchain (works for apps and kernels): | ||
| + | <source lang="bash"> | ||
crossdev -t arm-none-linux-gnueabi --libc 2.6.1 --gcc 4.3.4 --binutils 2.19 | crossdev -t arm-none-linux-gnueabi --libc 2.6.1 --gcc 4.3.4 --binutils 2.19 | ||
| + | </source> | ||
| + | |||
| + | Once the toolchain is built run the following command: | ||
| + | <source lang="bash"> | ||
| + | emerge-wrapper --init | ||
</source> | </source> | ||
Revision as of 21:28, 26 November 2010
Install the latest version (sys-devel/crossdev-99999999) of crossdev: <source lang="bash"> echo 'sys-devel/crossdev **' >> /etc/portage/package.keywords emerge crossdev </source>
Setup some overlays for crossdev to write to and add PuffTheMagic's special overlay of custom ebuilds: <source lang="bash"> mkdir /usr/local/portage git clone git://git.webos-internals.org/puffthemagic/portage-overlay.git /usr/local/puff echo 'PORTDIR_OVERLAY="/usr/local/portage /usr/local/palm ${PORTDIR_OVERLAY}"' >> /etc/make.conf </source>
Building a your toolchain (works for apps and kernels): <source lang="bash"> crossdev -t arm-none-linux-gnueabi --libc 2.6.1 --gcc 4.3.4 --binutils 2.19 </source>
Once the toolchain is built run the following command: <source lang="bash"> emerge-wrapper --init </source>