WebOS Internals PDK Gentoo

From WebOS Internals
Revision as of 15:17, 18 January 2011 by Xanadu73 (talk | contribs) (Added gcc stuff.)
Jump to navigation Jump to search

Preamble

The page at:

http://www.webos-internals.org/wiki/WebOS_Internals_PDK

Is written for (blah...) Ubuntu, there are some changes that need to be made to get this to work on Gentoo.


GCC

You need gcc 3.* for the qemu portions to compile. Gentoo defaults to gcc 4.*

 emerge sys-devel/gcc:3.4

Change your default compiler:

# gcc-config -l
[1] i686-pc-linux-gnu-3.4.6 
[2] i686-pc-linux-gnu-3.4.6-hardened
[3] i686-pc-linux-gnu-3.4.6-hardenednopie
[4] i686-pc-linux-gnu-3.4.6-hardenednopiessp
[5] i686-pc-linux-gnu-3.4.6-hardenednossp
[6] i686-pc-linux-gnu-4.4.4 *
# gcc-config i686-pc-linux-gnu-3.4.6
# gcc-config -l
[1] i686-pc-linux-gnu-3.4.6 *
[2] i686-pc-linux-gnu-3.4.6-hardened
[3] i686-pc-linux-gnu-3.4.6-hardenednopie
[4] i686-pc-linux-gnu-3.4.6-hardenednopiessp
[5] i686-pc-linux-gnu-3.4.6-hardenednossp
[6] i686-pc-linux-gnu-4.4.4

Note the change in where the asterisk is. You need to run

source /etc/profile

in any open shell you intend on using gcc-3* in. Don't forget to set the default compiler back to whatever you used to build your whole system!

gcc-config i686-pc-linux-gnu-4.4.4


KERNEL

You need to make sure kvm support is compiled in your kernel.

 Processor type and features  --->
  [*] Paravirtualized guest support  --->
   [ ]   VMI Guest support (DEPRECATED)
   [*]   KVM paravirtualized clock
   [*]   KVM Guest support
   [ ]   Lguest guest support
   -*-   Enable paravirtualization code
   [ ]     Paravirtualization layer for spinlocks

and

 [*] Virtualization  --->
  <M>   Kernel-based Virtual Machine (KVM) support
   <M>     KVM for Intel processors support
   < >     KVM for AMD processors support
   <M>   Host kernel accelerator for virtio net (EXPERIMENTAL)
   <M>   Linux hypervisor example code
   <M>   PCI driver for virtio devices (EXPERIMENTAL)
   <M>   Virtio balloon driver (EXPERIMENTAL)


PACKAGES

 emerge fakeroot scratchbox2 


(too be continued. making notes as I go)