Download Mentor Embedded Linux System Builder User and

Transcript
Using System Builder
Adding Your Own Recipes
host-usb
framebuffer
mtd
nas
native-development
pci
print-server
router
touchscreen
wifi
lttng
The actual supported list depends on your target board. By default, the create-config script
automatically asks if you wish to enable each of the features supported, as in the example:
Enable
Enable
Enable
Enable
’host-diskdrive’ feature? [Y/n]
’host-usb’ feature [Y/n]
’mtd’ feature ? [Y/n]
’pci’ feature ? [Y/n]
However, you can also specify which features you want to enable from the command line
invocation, using the following arguments:
•
--enable-all-features: Enables all supported features for the target.
•
--features = “features”: Enables the feature(s) listed between the quotes. For example:
./scripts/create-config.py -m tgt12345 -c tgt12345 -r \
-s test --features “mtd” --features “pci”
This enables both the MTD and PCI features for the target board. The configuration
script will not ask again at the end of the run. If you want to add features not listed, you
can also use the -features command-line argument to enable it. For example:
./scripts/create-config.py -m tgt12345 -c tgt12345 -r \
-s test --features “mtd” --features “pci” --features “router”
This enables a “router” feature that is not on the “knobs” list. If this features is not
supported for this machine, it will issue a warning:
WARNING: The router feature is not officially supported
•
--disable-all-features: Disables all supported features for the target.
Adding Your Own Recipes
The recipes that are used by the knobs determine the set of supported recipes (or packages of
recipes) for System Builder. However, you can also add your own packages or additional open
source packages by adding the following variables in the machine.conf file:
•
PROJECT_EXTRA_PKGS: Add the contents of this variable into the devel-image file
system.
Mentor Embedded Linux System Builder User and Reference Manual, v3.0
January 2011
21