Commit Graph

10484 Commits

Author SHA1 Message Date
Thomas De Schampheleire
1bbf39bd73 dependencies: add function suitable-host-package
Sometimes, buildroot needs a certain host tool to do its job, e.g. tar. In
many cases, we expect this tool to be present on the host system, but this is
not always the case. Or maybe, the version on the host system is not
suitable, and we need a more recent one.

In some of these cases, instead of bailing out, buildroot could build the
package first (but only if the existing system package is not suitable).

To aid in detecting if a host package is suitable or not, this patch adds a
function suitable-host-package. When called with parameter foo, it will
execute check-host-foo.sh. This script should return either the path to the
suitable host package, or the empty string if no suitable package can be found.
The rules to determine whether something is suitable or not is left to
check-host-foo.sh and depends on foo.

An example usage of suitable-host-package is:
DEPENDENCIES_HOST_PREREQ += $(if $(call suitable-host-package,foo),,host-foo)

To avoid cluttering the existing dependencies.mk file, it includes any
check-host-foo.mk file. These files can be used to hold appropriate
dependency-related actions for foo.

Signed-off-by: Thomas De Schampheleire <thomas.de.schampheleire@gmail.com>
v1 Reviewed-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
Acked-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
2012-02-09 22:59:21 +01:00
Yann E. MORIN
d83f347c25 toolchain/crosstool-ng: update to 1.13.4
Update to fix downloads from sourceforge (the 'mesh' network
no longer works).

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
2012-02-09 22:59:20 +01:00
Peter Korsgaard
8139e21c97 Makefile: fix old make check thinko
So it doesn't fail with 3.81.

Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
2012-02-09 22:59:20 +01:00
Thomas De Schampheleire
ee7f92e19f Makefile: change order of dirs and dependencies
If during the dependencies step, a package needs to be downloaded, the
download directory already has to be present. If not, the file will be
downloaded under the name 'dl' instead of in the directory 'dl'.

This patch changes the order of dirs and dependencies in the world target to
fix this.

Signed-off-by: Thomas De Schampheleire <thomas.de.schampheleire@gmail.com>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
2012-02-09 22:10:43 +01:00
Thomas De Schampheleire
0edfb24c38 dependencies: check minimal make version early on
Although support/dependencies/dependencies.sh checks for the version of make,
this script doesn't get a chance to run if make encounters a syntax error as a
result of being too old.

For example, the following syntax is only supported from make 3.81 onwards:

ifeq ($(BR2_TOOLCHAIN_BUILDROOT),y)
include toolchain/toolchain-buildroot.mk
else ifeq ($(BR2_TOOLCHAIN_EXTERNAL),y)
include toolchain/toolchain-external.mk
else ifeq ($(BR2_TOOLCHAIN_CTNG),y)
include toolchain/toolchain-crosstool-ng.mk
endif

This patch adds a check for the version of make very early in the Makefile, so
that old make versions are handled gracefully.

[Peter: simplify check]
Signed-off-by: Thomas De Schampheleire <thomas.de.schampheleire@gmail.com>
Acked-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
2012-02-09 22:06:05 +01:00
Thomas De Schampheleire
a792668b58 dependencies: move from toolchain/ to support/
As suggested by Arnout Vandecappelle, move toolchain/dependencies to
support/dependencies, as it really is not toolchain-specific anymore.

Signed-off-by: Thomas De Schampheleire <thomas.de.schampheleire@gmail.com>
Acked-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Acked-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
2012-02-09 21:45:59 +01:00
Frederik Pasch
1e39b8a6ff qt: needs host-pkg-config
Closes #4760

Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
2012-02-09 21:20:12 +01:00
Peter Korsgaard
0829989046 libevas: X OpenGL backends needs modular X.org (for mesa)
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
2012-02-09 11:20:35 +01:00
Peter Korsgaard
bdca8ee84b linux: bump 3.2.x stable version
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
2012-02-09 08:52:32 +01:00
Peter Korsgaard
2987a6fef5 kernel-headers: bump 3.2.x stable version
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
2012-02-09 08:51:36 +01:00
Peter Korsgaard
3da8371745 iptables: fix build with 3.2 kernel headers
Based on upstream post-1.14.12.2 change.

linux/if_packet.h changed to use the newly introduced __aligned_u64
type in 3.2, which iptables' embedded linux/types.h doesn't provide.
Fix it by updating linux/types.h.

Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
2012-02-09 00:40:45 +01:00
Peter Korsgaard
7100a2cc33 dependencies.sh: fix host g++ check when ccache is used
Similar to how we do it for gcc.

Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
2012-02-08 23:40:20 +01:00
Peter Korsgaard
779c9699f9 iptables: no need to autoreconf
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
2012-02-08 22:31:39 +01:00
Yegor Yefremov
f94818b0fa udev: bump to 181 and other fixes
Changes:
- Linux kernel requirement: 2.6.34 and above (devtmpfs is mandatory)
(this also applies to the chosen toolchain, because of Kernel headers)
- optional dependency on libusb and usbutils removed
- added dependency on kmod
- added dependency on util-linux for libblkid
- install in /lib/udev instead of /usr/libexec/udev
- udevd moved to /lib/udev
- fixed path to pci.ids and usb.ids
- persistent rules generator is disabled by default, so option
is introduced to enable this option if desired

[Peter: fix build on uClibc, Config.in tweaks]
Signed-off-by: Yegor Yefremov <yegorslists@googlemail.com>
Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
2012-02-08 21:56:47 +01:00
Yegor Yefremov
d390906f66 kmod: bump to 5
Signed-off-by: Yegor Yefremov <yegorslists@googlemail.com>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
2012-02-08 21:11:25 +01:00
Peter Korsgaard
6d27a63e45 libevas: SDL OpenGL backend needs modular X.org (for mesa)
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
2012-02-08 14:38:19 +01:00
Peter Korsgaard
3a9b75fe04 libevas: fix SDL GL backend build
libeet is needed by all backends building the generic OpenGL support,
and the configure script forgets to check / expand libeet CFLAGS/libs
when the SDL GL backend is used.

Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
2012-02-08 14:30:06 +01:00
Peter Korsgaard
38071138ee libevas: SDL GL backend doesn't need glproto
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
2012-02-08 14:29:36 +01:00
Peter Korsgaard
9a9fdf9289 sdl: fix X11 dependencies
No need to build the entire X server to build SDL with X11 support.

Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
2012-02-08 11:42:56 +01:00
Peter Korsgaard
e1231afc01 libevas: software buffer backend doesn't need X11
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
2012-02-08 09:55:31 +01:00
Thomas De Schampheleire
9b9765b8a3 Add package dstat (python script for system stats/profiling)
[Peter: depend on WCHAR as python needs it, fix white space]
Signed-off-by: Thomas De Schampheleire <thomas.de.schampheleire@gmail.com>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
2012-02-07 23:30:47 +01:00
Peter Korsgaard
fc09aae5b4 sdl: bump version
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
2012-02-07 23:27:58 +01:00
Peter Korsgaard
5aeca1f669 sdl: ensure mesa3d gets built before if enabled for opengl support
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
2012-02-07 23:21:53 +01:00
Peter Korsgaard
79f22504d7 libevas: generic opengl option needs mesa
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
2012-02-07 23:19:21 +01:00
Peter Korsgaard
a5617a52d0 libevas: x11 glx option needs Xrender, Xext and libeet
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
2012-02-07 23:13:25 +01:00
Sven Neumann
57c7706bac wpa_supplicant: add config option to enable support for WPS
Signed-off-by: Sven Neumann <s.neumann@raumfeld.com>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
2012-02-07 14:01:56 +01:00
Yegor Yefremov
4baff8bb22 libmodbus: bump to 3.0.2
Signed-off-by: Yegor Yefremov <yegorslists@googlemail.com>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
2012-02-07 11:50:36 +01:00
Peter Korsgaard
134ab1ce4f make release: add html/text/pdf manual and create .tar.bz2 format as well
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
2012-02-07 11:39:41 +01:00
Peter Korsgaard
3ec57751fa Makefile: GENDOC_INNER: don't create subdirs for generated manuals
The output files are generated directly in $(O)/docs/manual.

Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
2012-02-07 10:52:35 +01:00
Thomas De Schampheleire
93e56f5210 manual: update download helper information
Signed-off-by: Thomas De Schampheleire <thomas.de.schampheleire@gmail.com>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
2012-02-06 23:26:39 +01:00
Jean-Christophe PLAGNIOL-VILLARD
defa3768ea barebox: add 2012.02, remove 2011.11
And mark 2011.12 as deprecated.

Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
2012-02-06 23:25:10 +01:00
Yegor Yefremov
0802fc24e9 libev: bump to 4.11
Signed-off-by: Yegor Yefremov <yegorslists@googlemail.com>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
2012-02-06 23:23:50 +01:00
Yegor Yefremov
7487e914da feh: bump to 2.3
Signed-off-by: Yegor Yefremov <yegorslists@googlemail.com>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
2012-02-06 23:23:29 +01:00
Peter Korsgaard
e3b84754d4 linux: bump 3.2.x stable version
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
2012-02-06 17:26:58 +01:00
Peter Korsgaard
436ceeafbc kernel-headers: bump 3.0.x / 3.2.x stable versions
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
2012-02-06 17:24:19 +01:00
Peter Korsgaard
5d425d3334 mesa3d: fix build
We build mesa3d with dri support, which doesn't work with static builds,
so disable it.

From configure.ac:

dri)
    # DRI must be shared, I think
    if test "$enable_static" = yes; then
        AC_MSG_ERROR([Can't use static libraries for DRI drivers])
    fi

At the same time fixup minor style issues (:= vs =, long lines).

Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
2012-02-06 17:22:38 +01:00
Peter Korsgaard
80a7e8216e mesa3d: don't depend on the X server
There's no particular reason why you shouldn't be able to build mesa
without the X server (E.G. for remote X), so remove it.

Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
2012-02-06 17:14:39 +01:00
Peter Korsgaard
7b236b937d libvorbis: bump version
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
2012-02-05 22:14:54 +01:00
Thomas Petazzoni
d8bf70e01e lttng-babeltrace: fix build on uClibc due to missing posix_fallocate()
[Peter: add explicit #include <features.h>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
2012-02-05 14:42:16 +01:00
Thomas Petazzoni
42852b31ef lttng-libust: add patch to fix build issue when C++ support is not available
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
2012-02-05 11:28:04 +01:00
Thomas Petazzoni
4a6f726506 lttng-tools: make the dependency on lttng-libust optional
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
2012-02-05 11:16:33 +01:00
Thomas Petazzoni
3e40b680fb lttng-libust: add the dependency on util-linux
This dependency was missing in the initial addition of the package to
Buildroot.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
2012-02-05 11:15:22 +01:00
Thomas Petazzoni
7733fad43c lttng-babeltrace: make sure WCHAR and LARGEFILE are enabled
Since lttng-babeltrace depends on util-linux and libglib2, we need to
make sure WCHAR and LARGEFILE are enabled.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
2012-02-05 11:14:41 +01:00
Thomas Petazzoni
e2531c0178 lttng-tools: fix build on uClibc due to sync_file_range()
Add a patch to use fdatasync() instead of sync_file_range() when the
latter is not available.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
2012-02-05 11:11:37 +01:00
Thomas Petazzoni
d8f71a4c56 liburcu: add patch to fix build with uClibc
Under uClibc, defining _GNU_SOURCE is strictly needed to access the
CPU_*() macros.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
2012-02-05 11:00:32 +01:00
Peter Korsgaard
27a35801b8 CHANGES: #755 / #2299 closed
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
2012-02-03 21:23:42 +01:00
Peter Korsgaard
2ba094de31 crosstool-ng: bump version
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
2012-02-03 15:24:39 +01:00
Peter Korsgaard
aead8be336 CHANGES: #2617 / # 3691 closed
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
2012-02-03 15:23:30 +01:00
Thomas Petazzoni
502465e435 at91bootstrap: allow specification of a custom patch directory
Fixes bug #4664.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
2012-02-02 23:42:34 +01:00
Thomas Petazzoni
1b1fcb638e poco: the Zip module depends on XML, Net and Util modules
Without this, in a configuration where the Zip module is selected but
not the XML module, the build fails due to missing expat.h. This is
because POCO builds the XML module as soon as the Zip module is
enabled.

This fixes the build breakage visible at:

  http://free-electrons.com/~thomas/buildroot/test-output-2011-12-02/test-920-output.bz2

with the configuration visible at:

  http://free-electrons.com/~thomas/buildroot/test-output-2011-12-02/test-920-config

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
2012-02-02 23:38:33 +01:00