Motherboard Porting Guide: Difference between revisions
(initial notes) |
m (add new board) |
||
Line 16: | Line 16: | ||
This is a two step process. If you mainboard already exists, skip to next section. | This is a two step process. If you mainboard already exists, skip to next section. | ||
==== Adding a new vendor ==== | ==== Adding a new vendor to tree ==== | ||
Create a directory in src/mainboard with the same name as vendor name. Add to src/mainboard/Kconfig | Create a directory in src/mainboard with the same name as vendor name. Add to src/mainboard/Kconfig | ||
Line 30: | Line 30: | ||
Create a src/mainboard/foo/Kconfig, copy from other vendor, and change the vendor name. Delete all mainboards. | Create a src/mainboard/foo/Kconfig, copy from other vendor, and change the vendor name. Delete all mainboards. | ||
==== Adding a new motherboard to tree ==== | |||
==== Adding a new motherboard ==== | |||
Asume that vendor name is foo and board type is bar. Add new configuration item in src/mainboard/foo/Kconfig | Asume that vendor name is foo and board type is bar. Add new configuration item in src/mainboard/foo/Kconfig | ||
Line 41: | Line 40: | ||
source "src/mainboard/foo/bar/Kconfig" | source "src/mainboard/foo/bar/Kconfig" | ||
==== Adjusting contents of new board directory ==== | |||
Adjust Kconfig to fit the new vendor/model name and dont forget to change MAINBOARD_DIR and MAINBOARD_PART_NUMBER. |
Revision as of 23:10, 15 December 2012
Motherboard Porting Guide
Please note that this is WIP work.
Selecting Similar Board
TODO.
Modifying existing board
TODO.
Adding a new board
This is a two step process. If you mainboard already exists, skip to next section.
Adding a new vendor to tree
Create a directory in src/mainboard with the same name as vendor name. Add to src/mainboard/Kconfig new vendor entry, the rest of this example uses "foo" vendor.
config VENDOR_FOO bool "Foo"
Add also a include for new Kconfig file which holds the vendor motherboards in the vendor directory
source "src/mainboard/foo/Kconfig"
Create a src/mainboard/foo/Kconfig, copy from other vendor, and change the vendor name. Delete all mainboards.
Adding a new motherboard to tree
Asume that vendor name is foo and board type is bar. Add new configuration item in src/mainboard/foo/Kconfig
config BOARD_FOO_BAR bool "BAR"
Add include for board specific config:
source "src/mainboard/foo/bar/Kconfig"
Adjusting contents of new board directory
Adjust Kconfig to fit the new vendor/model name and dont forget to change MAINBOARD_DIR and MAINBOARD_PART_NUMBER.