Hardware Reference
In-Depth Information
Target Options
The next section is called “Target Options.” This section is much more relevant. If you recall early on in this chapter
I talked about the target being the Raspberry Pi. This section contains the options that are applied to the application
that will end up running on the target. Select the menu and I will discuss the suboptions that you need to use (you can
see in Figure 6-8 all the options I have selected for the “Target Options” screen).
Figure 6-8. The Target Options screen
The first item, “Target Architecture,” should be an easy guess for you. This needs to be set to
“ARM” as our target is the Raspberry Pi.
Make sure you select “Use the MMU”: the Raspberry Pi's SoC contains a memory management
unit (MMU).
The next option on the list is the “Endianness” that you will build for. The ARM11 is bi-endian
but the default is little endian. Most of the distributions for the Raspberry Pi use little endian.
Little endian will be the easiest to cross compile for and the most widely used. So select “Little
endian” for this option. The next option should be obvious as well: “Bitness” has to be 32-bit.
You have no choice, as the ARM11 is a 32-bit CPU.
There is one last option on this screen that you must take care of and that is the type of floating
point. This option will depend on the distribution installed on your Raspberry Pi. For example,
the Fedora 14 distribution still uses the soft-float option, whereas OpenELEC uses the hard-float
option. I would suggest following your installed distribution; because I am using Fedora 14
I will select software.
The rest of the options on this screen can be left at their defaults.
Tool-Chain Options
The next screen of options labeled “Toolchain Options” displays options related to the tool-chain build process.
You don't need to configure any of them and the defaults are fine. Feel free to take a look though the submenus
if you want.
 
Search WWH ::




Custom Search