Buildroot Packages
From ArmadeusWiki
Revision as of 21:21, 18 May 2008 by Salocin68 (Talk | contribs) (New page: In this page you will learn how to add a new package or a new application to the Armadeus buildroot == Preliminary work == *1] Take a look at the buildroot mailing list to check whether ...)
In this page you will learn how to add a new package or a new application to the Armadeus buildroot
Preliminary work
- 1] Take a look at the buildroot mailing list to check whether the work has not already been done
- 2] Send an email on the Armadeus mailing list (SourceForge) to verify that nobody is working on this package or to get help
- Check that the package is not available here: http://www.daimi.au.dk/~spider/gumstix/gumstix-buildroot/package/
- or here: http://downloads.openwrt.org/whiterussian/packages/ then https://dev.openwrt.org/browser/branches/whiterussian/openwrt/package
- 3] Create a directory in buildroot/package. For our exemple we will install the package named "toto"
$ mkdir buildroot/package/toto
- 4] In this folder, create a new Makefile "toto.mk" and a new config file "Config.in". If you need some tips on how to write these files, take a look here: package/sdl/
- 5] Modify Config.in according to the description of the "Toto" package:
- 6] Modify toto.mk
This Makefile contains several steps:
- software download
- untar the archive
- apply patches to the sources if necessary
- configure the sources
- build
- install in the rootfs
This makefile has to contain one target toto-clean to clean up the sources after a build and an other one toto-dirclean to remove the folder from the overall compilation process
Compilation test of the package
Try this:
$ make -C buildroot/ toto
If this command works, test your package on an Armadeus plateform. If it's ok you can jump to the next chapter and proceed with the integration into buildroot. Otherwise it is perhaps necessary to do some modifications of the sources/Makefile.
Next comint soon...