Create A Moxa Layer For The Yocto Project - Moxa Technologies NPort 5000 Series User Manual

Hide thumbs Also See for NPort 5000 Series:
Table of Contents

Advertisement

Create a Moxa layer for the Yocto Project

Introduction
Moxa RealTTY driver is packaged as a layer for Yocto. You can add or remove the driver by modifying the
BBLAYERS attribute in the bblayers.conf file.
The following sections describe how to create the meta-moxa layer for the dunfell branch (3.1.9). Note that
the process may vary if your target uses a different branch. Please refer to Yocto's manual for complete
information.
An example is also available in the examples folder in the RealTTY driver.
You may follow the subsequent procedures to create the same meta-moxa layer.
Create an empty Moxa Layer
Use the following commands to create an empty layer, named meta-moxa.
1.
Initiate the environment first. Suppose the project is installed in /home/user/poky.
$ cd /home/user/poky
$ source oe-init-build-env
2.
The above commands changed the directory to the built directory. Now, we change the directory back
to the Yocto root directory.
$ cd /home/user/poky
3.
Create meta-moxa:
A message appears reminding you to add the layer later.
$ bitbake-layers create-layer meta-moxa
Note: Starting bitbake server.
Add your new layer with "bitbake-layers add-layer meta-moxa."
The meta-moxa directory will be created in /home/user/poky:
$ tree meta-moxa
meta-moxa
├── conf
└── layer.conf
├── COPYING.MIT
├── README
└── recipes-example
└── example
└── example_0.1.bb
The "recipes-example" folder is not necessary; it may be deleted at anytime.
NPort 5000 Series User Manual
155

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents