Difference between revisions of "Buildroot"

From eLinux.org
Jump to: navigation, search
(Documentation)
m (Don't remove texinfo, it's still used by binutils (for the internal toolchain))
(19 intermediate revisions by 5 users not shown)
Line 11: Line 11:
  
 
Upcoming:
 
Upcoming:
* [[Buildroot:DeveloperDaysFOSDEM2014 | Buildroot Developer Days]], 3-4 February 2014, Brussels, Belgium, after FOSDEM.
+
* [[Buildroot:DeveloperDaysELCE2014 | Buildroot Developer Days]], October 2014, Düsseldorf, Germany, before or after ELC-E.
  
 
Past:
 
Past:
 +
* [[Buildroot:DeveloperDaysFOSDEM2014 | Buildroot Developer Days]], 3-4 February 2014, Brussels, Belgium, after FOSDEM.
 
* [[Buildroot:DeveloperDaysELCE2013 | Buildroot Developer Days]], 26-27 October 2013, Edinburgh UK, after ELC-E.
 
* [[Buildroot:DeveloperDaysELCE2013 | Buildroot Developer Days]], 26-27 October 2013, Edinburgh UK, after ELC-E.
 
* [[Buildroot:DeveloperDaysFOSDEM2013 | Buildroot Developer Days]], 4-5 February 2013, Brussels Belgium, after FOSDEM.
 
* [[Buildroot:DeveloperDaysFOSDEM2013 | Buildroot Developer Days]], 4-5 February 2013, Brussels Belgium, after FOSDEM.
Line 19: Line 20:
 
* Buildroot Developer Days, 3 February 2012, Brussels Belgium, before FOSDEM ([http://lists.busybox.net/pipermail/buildroot/2012-February/050371.html report])
 
* Buildroot Developer Days, 3 February 2012, Brussels Belgium, before FOSDEM ([http://lists.busybox.net/pipermail/buildroot/2012-February/050371.html report])
 
* Buildroot Developer Days, 29 October 2011, Prague, Czech Republic, after ELCE ([http://lists.busybox.net/pipermail/buildroot/2011-November/047229.html report])
 
* Buildroot Developer Days, 29 October 2011, Prague, Czech Republic, after ELCE ([http://lists.busybox.net/pipermail/buildroot/2011-November/047229.html report])
 +
 +
== Talks ==
 +
 +
This section gathers the list of talks given about Buildroot, as well as the slides and video when available.
 +
 +
Upcoming:
 +
* "Buildroot: a deep dive into the core", Thomas Petazzoni, Embedded Linux Conference Europe, 13-15 October 2014, Düsseldorf, Germany
 +
 +
Past:
 +
* [http://elcabsna2014.sched.org/event/ce9732e662300bace37607a6adacf82b Buildroot: what's new], Thomas Petazzoni, Embedded Linux Conference, 1 May 2014, San Jose, United States. [http://elinux.org/images/1/1d/Petazzoni-buildroot-whats-new.pdf Slides].
 +
* "Buildroot: what is new", Peter Korsgaard, Embedded Linux Conference Europe, 25 October 2013, Edinburgh, UK. [http://elinux.org/images/2/23/Buildroot-whats-new-elce2013.pdf Slides], [https://www.youtube.com/watch?v=0G_yJ50RA3I Video].
  
 
==List of forks==
 
==List of forks==
Line 29: Line 41:
 
This is a list of improvements that we would like to see in buildroot.  Feel free to add suggestions here.  If you're working on one of these items, put your name and the date behind it, to avoid duplicate work.
 
This is a list of improvements that we would like to see in buildroot.  Feel free to add suggestions here.  If you're working on one of these items, put your name and the date behind it, to avoid duplicate work.
  
There are a number of patches that have been determined to be useful but for various reasons nobody currently has time to review or test them. Anybody, especially people new to buildroot, is welcome to adopt these patches. These patches can be viewed by looking at the following link - http://patchwork.ozlabs.org/project/buildroot/list/?state=1&delegate=7151
+
There are a number of patches that have been determined to be useful but for various reasons nobody currently has time to review or test them. Anybody, especially a person new to buildroot, is welcome to adopt these patches and resubmit them to the mailing list. These patches can be viewed by looking at the following link - http://patchwork.ozlabs.org/project/buildroot/list/?state=1&delegate=7151
  
 
=== Packages ===
 
=== Packages ===
 +
 +
'''Note: if you start working on any of these packages, please edit this section to indicate it. If the package is proposed in a bug report, please also update the bug report. Sending a mail to the mailing list also never hurts, you never know that someone else started working on it without following this guideline.'''
  
 
* Create a package for the x86-video-fbturbo driver. See https://github.com/ssvb/xf86-video-fbturbo.
 
* Create a package for the x86-video-fbturbo driver. See https://github.com/ssvb/xf86-video-fbturbo.
 
* Create a package for the Qt5 Cinematic Experience demonstration. See http://quitcoding.com/?page=work.
 
* Create a package for the Qt5 Cinematic Experience demonstration. See http://quitcoding.com/?page=work.
 
* Create a package for the Qt5 demo/benchmark application at https://github.com/prabindh/xgxperf.
 
* Create a package for the Qt5 demo/benchmark application at https://github.com/prabindh/xgxperf.
* Bump Valgrind to 3.9.0. This allows to enable MIPS32 and MIPS64 support.
+
* Enable MIPS32 and MIPS64 support in Valgrind
* Switch the procps package to use http://sourceforge.net/projects/procps-ng/ which is the new active upstream.
 
* Remove the texinfo package, no longer needed after ct-ng backend removal
 
 
* Create a package for WebkitNix. See https://github.com/WebKitNix/webkitnix.
 
* Create a package for WebkitNix. See https://github.com/WebKitNix/webkitnix.
 +
* Allow a second Barebox build, to build the MLO/SPL. See http://patchwork.ozlabs.org/patch/207942/ and http://patchwork.ozlabs.org/patch/207943/. The proposed design is to have boot/barebox/ containing the common stuff, and then two separate packages boot/barebox-first/ and boot/barebox-second/ (names to be chosen). There is only one version selection, but each package allows to define the configuration to be used. Design should be a little bit like package/gcc, where we have multiple gcc builds, but share a lot of common definitions between the packages.
 +
* Packages proposed in bug reports (often with patch)
 +
** openvz https://bugs.busybox.net/show_bug.cgi?id=405
 +
** rdiff-backup https://bugs.busybox.net/show_bug.cgi?id=1309
 +
** nginx https://bugs.busybox.net/show_bug.cgi?id=3427
 +
** libav https://bugs.busybox.net/show_bug.cgi?id=3655 (Spenser Gilliland is working on this)
 +
** open-vm-tools https://bugs.busybox.net/show_bug.cgi?id=3991
 +
** ratpoison https://bugs.busybox.net/show_bug.cgi?id=325
 +
** wxWidgets https://bugs.busybox.net/show_bug.cgi?id=261
 +
* Create a package for Gtk3
 +
* Update the webkitgtk package to a more recent version
 +
* Cleanup the libcgi package, by using https://github.com/rafaelsteil/libcgi as an upstream.
 +
* Update the at package to use the upstream at http://anonscm.debian.org/gitweb/?p=collab-maint/at.git;a=summary. It would allow to remove at least two patches from our patch stack. And also, submit the remaining of our patches to the new maintainers.
 +
* Merge qemu and qemu-system patches in patchwork, see http://patchwork.ozlabs.org/patch/345358/ http://patchwork.ozlabs.org/patch/345359/ http://patchwork.ozlabs.org/patch/345360/ and http://patchwork.ozlabs.org/patch/299014/ http://patchwork.ozlabs.org/patch/319108/
  
 
=== Documentation ===
 
=== Documentation ===
Line 53: Line 79:
  
 
=== Core Buildroot infrastructure ===
 
=== Core Buildroot infrastructure ===
 +
 +
* ldconfig handling is broken, see http://patchwork.ozlabs.org/patch/255486/
 +
 +
* Locale handling is broken: it doesn't take into account the alias file when purging aliases. See [http://lists.busybox.net/pipermail/buildroot/2013-December/084724.html this mail from patchwork cleanup #3] and [http://patchwork.ozlabs.org/patch/188623/ this patch that also fixes a locale problem, but not everything]
  
 
* It would be nice to add a br-configure script in host/usr/bin for autotools-based packages.  Run ...BUILDROOTSDK/usr/bin/br-configure --enable-foo --disable-bar, and the br-configure script would call the ./configure script in the current directory passing all the right options (--host, and all environment variables CC, LD, AS, AR and such).
 
* It would be nice to add a br-configure script in host/usr/bin for autotools-based packages.  Run ...BUILDROOTSDK/usr/bin/br-configure --enable-foo --disable-bar, and the br-configure script would call the ./configure script in the current directory passing all the right options (--host, and all environment variables CC, LD, AS, AR and such).
Line 69: Line 99:
 
** identify what package installed what files, identify files overriden by a later package
 
** identify what package installed what files, identify files overriden by a later package
 
** find libraries with wrong RPATH/RUNPATH tags
 
** find libraries with wrong RPATH/RUNPATH tags
** detect unused .so libs (eg. shared libs that are not DT_NEEDED by anything - note: only detect those libs, don't remove: can be used as plugin (dlopen), or used by an pplication built outside Buidlroot)
+
** detect unused .so libs (eg. shared libs that are not DT_NEEDED by anything - note: only detect those libs, don't remove: can be used as plugin (dlopen), or used by an application built outside Buildroot)
 +
 
 +
* Make a split between BR2_USE_MMU and BR2_ARCH_HAS_MMU. This is triggered by patches http://patchwork.ozlabs.org/patch/272450/ and http://patchwork.ozlabs.org/patch/273066/. See the discussion on these patches for more details.
 +
 
 +
* ccache handling needs to be improved, more specifically about the toolchain details. See patch proposed by Danomi Manchego and the comments it received: http://patchwork.ozlabs.org/patch/287383/
  
 
=== TODO items under discussion ===
 
=== TODO items under discussion ===
Line 79: Line 113:
 
* It would be nice if there was a make target to reinstall everything to the target (i.e. remove all the target-installed stamps, remove the root stamp, maybe remove the target too).  However, what is missing is the copying of the toolchain support files (libc.so etc.).  It's not obvious that this can be done in a reliable way.
 
* It would be nice if there was a make target to reinstall everything to the target (i.e. remove all the target-installed stamps, remove the root stamp, maybe remove the target too).  However, what is missing is the copying of the toolchain support files (libc.so etc.).  It's not obvious that this can be done in a reliable way.
 
* It would be nice if there was some common infrastructure to combine the images into one final flash or SD card or whatever image.  However, it is probably difficult to find the commonality of all the different use cases.  And we don't even see all these use cases.
 
* It would be nice if there was some common infrastructure to combine the images into one final flash or SD card or whatever image.  However, it is probably difficult to find the commonality of all the different use cases.  And we don't even see all these use cases.
* The uninstall targets are pretty useless because they don't really work. Should we remove support for uninstall?
+
** Yann E. Morin is working on this topic.
 +
* To facilitate debugging, all packages should be installed to the staging directory. The target directory should in fact be a subset of the staging directory. See the FOSDEM 2013 discussion at http://elinux.org/Buildroot:DeveloperDaysFOSDEM2013, and the discussion around patch http://patchwork.ozlabs.org/patch/252718/. This is however a significant change in Buildroot, so probably difficult to implement, and will raise a number of quite complicated questions.

Revision as of 13:53, 18 September 2014

Buildroot is a nice, simple, and efficient embedded Linux build system.

Important links

Developer days

Upcoming:

Past:

Talks

This section gathers the list of talks given about Buildroot, as well as the slides and video when available.

Upcoming:

  • "Buildroot: a deep dive into the core", Thomas Petazzoni, Embedded Linux Conference Europe, 13-15 October 2014, Düsseldorf, Germany

Past:

  • Buildroot: what's new, Thomas Petazzoni, Embedded Linux Conference, 1 May 2014, San Jose, United States. Slides.
  • "Buildroot: what is new", Peter Korsgaard, Embedded Linux Conference Europe, 25 October 2013, Edinburgh, UK. Slides, Video.

List of forks

  • [1]. A Rasberry-Pi related fork.
  • [2]. Another RPi related fork, with a lot of focus on Qt5 and GStreamer.

Todo list

This is a list of improvements that we would like to see in buildroot. Feel free to add suggestions here. If you're working on one of these items, put your name and the date behind it, to avoid duplicate work.

There are a number of patches that have been determined to be useful but for various reasons nobody currently has time to review or test them. Anybody, especially a person new to buildroot, is welcome to adopt these patches and resubmit them to the mailing list. These patches can be viewed by looking at the following link - http://patchwork.ozlabs.org/project/buildroot/list/?state=1&delegate=7151

Packages

Note: if you start working on any of these packages, please edit this section to indicate it. If the package is proposed in a bug report, please also update the bug report. Sending a mail to the mailing list also never hurts, you never know that someone else started working on it without following this guideline.

Documentation

  • Document how to contribute (patches to list instead of bugzilla, SOB, formatting rules, acked-by and tested-by, how often to repost, what to expect, CC's, ...) basic guide
  • Document how a package patch should be formatted (Comment, SOB, file naming rules, ...) + send upstream + CC sendpatches
  • In documentation, explain how to report a bug
  • Upgrade the buildroot website (ThomasP has a mockup of a new website)

Build/release infrastructure

  • Peter sets up a planet on whatever server and links to it from buildroot website

Core Buildroot infrastructure

  • It would be nice to add a br-configure script in host/usr/bin for autotools-based packages. Run ...BUILDROOTSDK/usr/bin/br-configure --enable-foo --disable-bar, and the br-configure script would call the ./configure script in the current directory passing all the right options (--host, and all environment variables CC, LD, AS, AR and such).
  • Make the HOST-directory a relocatable SDK:
    • Make sure that all binaries and libraries built for the host are built with a rpath pointing to host/usr/lib. Normally, this should already be the case, but it's worth checking.
    • Change the rpath value to $ORIGIN/../lib instead of the current absolute path $(O)/host/usr/lib.
    • Modify the compiler wrapper program of external toolchains so that instead of using a fixed location for the compiler tools, it deduces their location in a relative manner from its current location.
    • Modify/patch pkg-config so that instead of having a fixed location for the PKG_CONFIG_PATH and PKG_CONFIG_SYSROOT_DIR, those are deduced from the location of the pkg-config binary. This will allow a pkg-config binary that has been moved to still operate properly, without having to set any environment variable.
    • Write a shell script, installed in host/usr/bin, which would mungle the libtool .la files, the qmake.conf file and the CMake toolchain file to set the correct path. This script reads a file (can be host/usr/share/buildroot/location) which contains the original location of the SDK. This allows the script to do the right modifications on all the libtool, qmake.conf and cmake files. Once this is done, the script changes the host/usr/share/buildroot/location file so that it contains the new location.
    • Modify the external toolchain wrapper so that it bails out and warns the user if the directory it is executed in doesn't match the location of host/usr/share/buildroot/location. We haven't discussed how this could work with internal and crosstool-NG toolchains, though.
  • Properly detect thread and TLS support in external toolchains, or make TLS knob driven by thread availability in the toolchain. See the discussion in http://patchwork.ozlabs.org/patch/288051/ as reference)
  • Add intrumentation scripts to analyse package installed files:
    • identify what package installed what files, identify files overriden by a later package
    • find libraries with wrong RPATH/RUNPATH tags
    • detect unused .so libs (eg. shared libs that are not DT_NEEDED by anything - note: only detect those libs, don't remove: can be used as plugin (dlopen), or used by an application built outside Buildroot)

TODO items under discussion

Here are some nice-to-have's for which it is not entirely clear if and how they could be implemented:

  • Out-of-tree builds, which allows the package source to be shared between different output directories and between host and target compiles.
  • It would be nice if you could run a buildroot command that prepares a local copy of a package's source, and allows you to generate patches for it later. This could use git or quilt to keep track of the patches.
  • It would be nice if there was a make target to reinstall everything to the target (i.e. remove all the target-installed stamps, remove the root stamp, maybe remove the target too). However, what is missing is the copying of the toolchain support files (libc.so etc.). It's not obvious that this can be done in a reliable way.
  • It would be nice if there was some common infrastructure to combine the images into one final flash or SD card or whatever image. However, it is probably difficult to find the commonality of all the different use cases. And we don't even see all these use cases.
    • Yann E. Morin is working on this topic.
  • To facilitate debugging, all packages should be installed to the staging directory. The target directory should in fact be a subset of the staging directory. See the FOSDEM 2013 discussion at http://elinux.org/Buildroot:DeveloperDaysFOSDEM2013, and the discussion around patch http://patchwork.ozlabs.org/patch/252718/. This is however a significant change in Buildroot, so probably difficult to implement, and will raise a number of quite complicated questions.