I have put in information that will be the basis of this section, but it is missing a lot at this point. This whole section needs reviewed and filled in with proper information.
[INTRODUCE THE PROCEDURE AND LINK BACK TO BSP layer. IF THERE IS A LAUNDRY LIST OF ITEMS THAT NEED DEFINITION OR GET SET UP AS A RESULT OF THIS PROCEDURE, LIST THEM HERE.]
[PAREMETER 1]
[PARAMETER 2]
[PARAMETER 3]
[PARAMETER 4]
[PARAMETER 5]
[PARAMETER 6]
[PARAMETER 7]
The following procedure creates a BSP layer:
Create General Layer:
Use the bitbake-layers
script with the
create-layer
subcommand to create a
new general layer.
For instructions on how to create a general layer using the
bitbake-layers
script, see the
"Creating a General Layer Using the bitbake-layers
Script"
section in the Yocto Project Development Tasks Manual.
Create a Machine Configuration File:
Create a conf/machine/>machine<.conf
file.
See meta-yocto-bsp/conf/machine
for sample
>machine.conf<
files.
Other samples exist from other vendors such as
meta-intel
, meta-ti
,
and meta-freescale
that have more specific machine
and tuning examples.
Create a Kernel Recipe:
Create a kernel recipe in recipes-kernel/linux
either using a linux-yocto kernel with a .bbappend
file or a new custom kernel recipe file (i.e. .bb
file).
The BSP layers mentioned in the previous step also contain different
kernel examples.
You can start with the linux-yocto or use a custom kernel.
See the
"Modifying an Existing Recipe"
section in the Yocto Project Linux Kernel Development Manual
for information on how to create a custom kernel.
[THERE IS MORE INFORMATION THAT NEEDS TO BE FILLED IN HERE. THIS NEEDS TO BE PROVIDED BY ENGINEERS.]
The remainder of this section presents an example that uses
myarm
as the machine name and qemu
as the machine architecture.
Of the available architectures, qemu
is the only architecture
that causes the script to prompt you further for an actual architecture.
In every other way, this architecture is representative of how creating a BSP for
an actual machine would work.
The reason the example uses this architecture is because it is an emulated architecture
and can easily be followed without requiring actual hardware.
Following is a complete example:
[INSERT EXAMPLE - NEED EXAMPLE]
Once the BSP Layer is created, you must add it to your
bblayers.conf
file.
Here is an example:
BBLAYERS = ? " \ /usr/local/src/yocto/meta \ /usr/local/src/yocto/meta-poky \ /usr/local/src/yocto/meta-yocto-bsp \ /usr/local/src/yocto/meta-myarm \ "
Adding the layer to this file allows the build system to build the BSP and find the layer along with other Metadata it needs.