A d v a n c e d T o p i c s

Building a custom project

To create a custom project, that is a project for your custom hardware, first configure the default project. Follow the steps described in "Building the Default Project" up to running configure. Then run:

$ ~/LxNETES-3.2/build$bin/add_platform –b cc9p9360dev custom

$ checking whether make sets $(MAKE)... yes

$ ...

In this example, ConnectCore 9P 9360 dev module (cc9p9360dev)was used as the template project. Substitute the platform that is most similar to the platform you intend to create.

Then create a new build directory and configure for your custom platform:

~/LxNETES-3.2/build$ cd ..

~/LxNETES-3.2$mkdir build_custom

~/LxNETES-3.2$ cd build_custom

~/LxNETES-3.2/build_custom$ ../configure –-enable-platform=custom

...

Check the detected settings are correct in the new run of configure.

Now you can reconfigure your custom kernel by running:

~/LxNETES-3.2/build_custom$ make xconfig

You need QT installed to run make xconfig (Debian package libqt3-mt-dev). If you don't have it, use menuconfig (requiring ncurses, Debian package libncurses5-dev).

You have to run make xconfig in the build directory. Running in other directories (e.g. ~/LxNETES-3.2/build_custom, ~/LxNETES-3.2/build_custom/linux, or ~/LxNETES-3.2/ linux) will fail.

You can build and install the project for the default platform after the previous steps are complete.

4 3

Page 43
Image 43
Digi 9P 9360/9750 manual Building a custom project