buildroot.git
14 years agolinux: add support for initramfs
Thomas Petazzoni [Sun, 13 Jun 2010 17:19:38 +0000 (19:19 +0200)]
linux: add support for initramfs

In Buildroot, the kernel is built and installed *before* the root
filesystems are built. This allows the root filesystem to correctly
contain the kernel modules that have been installed.

However, in the initramfs case, the root filesystem is part of the
kernel. Therefore, the kernel should be built *after* the root
filesystem (which, in the initramfs case simply builds a text file
listing all files/directories/devices/symlinks that should be part of
the initramfs). However, this isn't possible as the initramfs text
file would lack all kernel modules.

So, the solution choosen here is to keep the normal order: kernel is
built before the root filesystem is generated, and to add a little
quirk to retrigger a kernel compilation after the root filesystem
generation.

To do so, we add a ROOTFS_$(FSTYPE)_POST_TARGETS variable to the
fs/common.mk infrastructure. This allows individual filesystems to set
a target name that we should depend on *after* generating the root
filesystem itself (contrary to normal ROOTFS_$(FSTYPE)_DEPENDENCIES,
on which we depend *before* generating the root filesystem).

The initramfs code in fs/initramfs/initramfs.mk uses this to add a
dependency on 'linux26-rebuild-with-initramfs'.

In linux/linux.mk, we do various things :

 * If BR2_TARGET_ROOTFS_INITRAMFS is enabled (i.e if initramfs is
   enabled as a root filesystem type), then we create an empty
   rootfs.initramfs file (remember that at this point, the root
   filesystem hasn't been generated) and we adjust the kernel
   configuration to include an initramfs. Of course, in the initial
   kernel build, this initramfs will be empty.

 * In the linux26-rebuild-with-initramfs target, we retrigger a
   compilation of the kernel image, after removing the initramfs in
   the kernel sources to make sure it gets properly rebuilt (we've
   experienced cases were modifying the rootfs.initramfs file wouldn't
   retrigger the generation of the initramfs at the kernel level).

This is fairly quirky, but initramfs really is a special case, so in
one way or another, we need a little quirk to solve its specialness.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
14 years agolinux: add support for linux26-{menuconfig,xconfig,gconfig} targets
Thomas Petazzoni [Sun, 13 Jun 2010 17:18:34 +0000 (19:18 +0200)]
linux: add support for linux26-{menuconfig,xconfig,gconfig} targets

These targets allow the user to customize the configuration of the
Linux kernel. After changing the kernel configuration, the next time
the user runs "make", the kernel is rebuilt to take into account the
new configuration (not rebuilt from scratch).

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
14 years agolinux: adjust kernel config according to the Buildroot configuration
Thomas Petazzoni [Tue, 8 Jun 2010 11:56:19 +0000 (13:56 +0200)]
linux: adjust kernel config according to the Buildroot configuration

We only adjust the configuration or ARM EABI and IPv6. The (more
complicated) initramfs case is handled in a separate commit. The user
is expected to take care of all other configuration details (like
having Netfilter enabled to make iptables work, etc.)

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
14 years agoAdd generic functions to enable/set/disable options in kconfig files
Thomas Petazzoni [Tue, 8 Jun 2010 11:54:10 +0000 (13:54 +0200)]
Add generic functions to enable/set/disable options in kconfig files

The KCONFIG_ENABLE_OPT, KCONFIG_SET_OPT and KCONFIG_DISABLE_OPT are
new make functions to respectively enable, set and disable options in
Kconfig-like files (as used by the kernel, uClibc or Busybox).

They can be used as follows :

 $(call KCONFIG_ENABLE_OPT,CONFIG_FOOBAR,/path/to/.config)
 $(call KCONFIG_SET_OPT,CONFIG_BARFOO,foobar,/path/to/.config)
 $(call KCONFIG_DISABLE_OPT,CONFIG_FARBOO,/path/to/.config)

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
14 years agolinux: Add dependency on host-module-init-tools
Thomas Petazzoni [Sat, 5 Jun 2010 19:26:18 +0000 (21:26 +0200)]
linux: Add dependency on host-module-init-tools

In order to not depend on module init tools being installed on the
development environment of the Buildroot user, let's build module init
tools for the host.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
14 years agomodule-init-tools: bump version + convert to autotools
Thomas Petazzoni [Sat, 5 Jun 2010 15:39:05 +0000 (17:39 +0200)]
module-init-tools: bump version + convert to autotools

The "remove-index" patch is no longer needed, the newer version of
module-init-tools correctly uses strchr().

The "module-init-tools" patch, whose main purpose was to disable the
generation of man pages (it requires docbook2man), is replaced by a
simpler implementation,
module-init-tools-3.11-add-manpages-config-option.patch.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
14 years agomodule-init-tools: remove support for cross-depmod
Thomas Petazzoni [Sat, 5 Jun 2010 15:33:44 +0000 (17:33 +0200)]
module-init-tools: remove support for cross-depmod

The new infrastructure to build the Linux kernel doesn't use a
cross-depmod. This isn't needed with modern module-init-tools that
most distros include perfectly handle this.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
14 years agoiso9660: take into account the linux changes
Thomas Petazzoni [Sat, 3 Apr 2010 16:55:43 +0000 (18:55 +0200)]
iso9660: take into account the linux changes

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
14 years agoRemove old Linux infrastructure
Thomas Petazzoni [Sat, 3 Apr 2010 16:55:09 +0000 (18:55 +0200)]
Remove old Linux infrastructure

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
14 years agoNew, simpler, infrastructure for building the Linux kernel
Thomas Petazzoni [Sat, 3 Apr 2010 16:46:46 +0000 (18:46 +0200)]
New, simpler, infrastructure for building the Linux kernel

This patch introduces a single, simple, infrastructure to build the
Linux kernel. The configuration is limited to :

 * Kernel version: a fixed recent stable version, same as kernel
   headers version (for internal toolchains only), custom stable
   version, or custom tarball URL

 * Kernel patch: either a local file, directory or an URL

 * Kernel configuration: either the name of a defconfig or the
   location of a custom configuration file

 * Kernel image: either uImage, bzImage, zImage or vmlinux.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
14 years agodocs: Document location of .config for out-of-tree builds
Peter Korsgaard [Mon, 21 Jun 2010 21:07:12 +0000 (23:07 +0200)]
docs: Document location of .config for out-of-tree builds

Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
14 years agodocs: fix git-over-http description
Peter Korsgaard [Mon, 21 Jun 2010 20:24:32 +0000 (22:24 +0200)]
docs: fix git-over-http description

This has now finally been setup.

Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
14 years agoConfig.in.mirrors: Use sources.buildroot.net as default backup site
Peter Korsgaard [Mon, 21 Jun 2010 20:20:02 +0000 (22:20 +0200)]
Config.in.mirrors: Use sources.buildroot.net as default backup site

The buildroot/busybox/uClibc VM is running low on disk space, and we've
been asked to move the source mirrors off-site.

A redirect has been setup between the old buildroot.net/downloads/sources/
and sources.buildroot.net, so old .configs continue to work, but we might
as well use the official one now.

Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
14 years agocheck-host-sed.sh: use mktemp for temporary file
Peter Korsgaard [Mon, 21 Jun 2010 20:33:51 +0000 (22:33 +0200)]
check-host-sed.sh: use mktemp for temporary file

Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
14 years agocheck-lxdialog.sh: use mktemp for temporary file
Peter Korsgaard [Mon, 21 Jun 2010 20:31:12 +0000 (22:31 +0200)]
check-lxdialog.sh: use mktemp for temporary file

Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
14 years agopackage/config: create .depend in object directory
Peter Korsgaard [Mon, 21 Jun 2010 20:28:38 +0000 (22:28 +0200)]
package/config: create .depend in object directory

Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
14 years agokconfig: build in BUILD_DIR/buildroot-config
Peter Korsgaard [Sun, 20 Jun 2010 21:05:32 +0000 (23:05 +0200)]
kconfig: build in BUILD_DIR/buildroot-config

This way the main buildroot dir can be completely read-only for
out-of-tree builds

Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
14 years agoMakefile: fix make <blah>_defconfig
Peter Korsgaard [Mon, 21 Jun 2010 20:13:20 +0000 (22:13 +0200)]
Makefile: fix make <blah>_defconfig

Make sure we only pass O=<path> if we were originally called like that,
otherwise we might end up looking for the .config in the wrong place.

Likewise, when changing between using O= or not (or simply running
make <blah>_defconfig in a pristine source tree), we do end up having
a .config, but no .config.cmd. It isn't really critical so just continue
even if we couldn't read it.

Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
14 years agocleanup/simplify kconfig changes for O= builds
Peter Korsgaard [Sun, 20 Jun 2010 11:43:36 +0000 (13:43 +0200)]
cleanup/simplify kconfig changes for O= builds

No functional change.

Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
14 years agoMove config files into output directory for out-of-tree build
Will Wagner [Mon, 11 Jan 2010 12:28:50 +0000 (12:28 +0000)]
Move config files into output directory for out-of-tree build

Closes #1213

Signed-off-by: Will Wagner <will_wagner@carallon.com>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
14 years agoCHANGES: #835 is closed
Peter Korsgaard [Fri, 18 Jun 2010 20:13:12 +0000 (22:13 +0200)]
CHANGES: #835 is closed

Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
14 years agoncurses: bump to 5.7
Gustavo Zacarias [Tue, 8 Jun 2010 19:22:50 +0000 (16:22 -0300)]
ncurses: bump to 5.7

Closes #2038

Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
14 years agouClibc: 0.9.31.config: enable UCLIBC_SV4_DEPRECATED option
Peter Korsgaard [Fri, 18 Jun 2010 09:48:58 +0000 (11:48 +0200)]
uClibc: 0.9.31.config: enable UCLIBC_SV4_DEPRECATED option

Needed by xfsprogs.

Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
14 years agontfsprogs: fix fuse dependency
Peter Korsgaard [Fri, 18 Jun 2010 09:19:45 +0000 (11:19 +0200)]
ntfsprogs: fix fuse dependency

The ntfsprogs configure script would add hardcoded host dirs to the
pkg-config search path, confusing configure if libraries were installed
on the host and not on the target.

At the same time, ensure that fuse is build before ntfsprogs (if enabled),
so the fuse support gets built.

Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
14 years agontfsprogs: disable crypto support
Peter Korsgaard [Fri, 18 Jun 2010 07:19:24 +0000 (09:19 +0200)]
ntfsprogs: disable crypto support

The ntfsprogs crypto support requires libgnutls, which we don't have
in BR, and the autodetection in configure gets confused when the host
has a libcrypt-config.

Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
14 years agosquashfs: fix build with uClibc
Peter Korsgaard [Thu, 17 Jun 2010 20:45:22 +0000 (22:45 +0200)]
squashfs: fix build with uClibc

squashfs used the get_nprocs() GNU extension, instead of directly
calling sysconf(), breaking the build on uClibc.

Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
14 years agolrzsz: convert to autotools infrastructure
cmchao [Wed, 16 Jun 2010 11:47:21 +0000 (19:47 +0800)]
lrzsz: convert to autotools infrastructure

Signed-off-by: cmchao <cmchao@gmail.com>
Acked-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
14 years agolibart: fix staging install
Gustavo Zacarias [Wed, 16 Jun 2010 19:17:23 +0000 (16:17 -0300)]
libart: fix staging install

The libart package had a couple of typos so it never really installed to
staging. So fix it.

Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
14 years agotoolchain: remove gcc 4.1.2 and non-sysroot support
Peter Korsgaard [Tue, 15 Jun 2010 21:10:03 +0000 (23:10 +0200)]
toolchain: remove gcc 4.1.2 and non-sysroot support

Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
14 years agotoolchain/gcc: Use 4.3.x like for 4.4, get rid of older 4.3.x versions
Peter Korsgaard [Tue, 15 Jun 2010 20:58:17 +0000 (22:58 +0200)]
toolchain/gcc: Use 4.3.x like for 4.4, get rid of older 4.3.x versions

Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
14 years agotoolchain: bump gcc 4.3.x series to 4.3.5
Gustavo Zacarias [Tue, 15 Jun 2010 13:24:44 +0000 (10:24 -0300)]
toolchain: bump gcc 4.3.x series to 4.3.5

Closes #2065

Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
14 years agoFix potentially conflicting build flags
Paul Jones [Mon, 14 Jun 2010 12:36:04 +0000 (22:36 +1000)]
Fix potentially conflicting build flags

Change the default target optimisation value so
it does not conflict with gcc optimization level

Signed-off-by: Paul Jones <paul@pauljones.id.au>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
14 years agoffmpeg: add user-defined configure parameters
Luca Ceresoli [Mon, 14 Jun 2010 19:41:45 +0000 (21:41 +0200)]
ffmpeg: add user-defined configure parameters

Closes #401

Signed-off-by: Luca Ceresoli <luca@lucaceresoli.net>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
14 years agoffmpeg: allow customization of codecs, (de)muxers and other components
Luca Ceresoli [Mon, 14 Jun 2010 19:41:44 +0000 (21:41 +0200)]
ffmpeg: allow customization of codecs, (de)muxers and other components

Add the option to customize the list of decoders, encoders, muxers, demuxers,
parsers, protocols, bsfs and filters to be built into ffmpeg, and to compile or
exclude input and output devices.

[Peter: fix qstrip invocation]
Signed-off-by: Luca Ceresoli <luca@lucaceresoli.net>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
14 years agoffmpeg: add commandline programs
Luca Ceresoli [Mon, 14 Jun 2010 19:41:43 +0000 (21:41 +0200)]
ffmpeg: add commandline programs

Signed-off-by: Luca Ceresoli <luca@lucaceresoli.net>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
14 years agoffmpeg: add new package
Luca Ceresoli [Mon, 14 Jun 2010 19:41:42 +0000 (21:41 +0200)]
ffmpeg: add new package

[Peter: configure doesn't support --disable-nls / --disable-largefile,
 needs largefile support in toolchain]
Signed-off-by: Luca Ceresoli <luca@lucaceresoli.net>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
14 years agoat91dataflashboot: fix patch target
Peter Korsgaard [Mon, 14 Jun 2010 20:59:14 +0000 (22:59 +0200)]
at91dataflashboot: fix patch target

Touch destination file so the patch target isn't rerun for every
invocation.

Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
14 years agoat91bootstrap: add help text
Peter Korsgaard [Mon, 14 Jun 2010 20:33:08 +0000 (22:33 +0200)]
at91bootstrap: add help text

Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
14 years agoCHANGES: update with changes from Thomas' bootloaders-cleanup branch
Peter Korsgaard [Mon, 14 Jun 2010 20:25:32 +0000 (22:25 +0200)]
CHANGES: update with changes from Thomas' bootloaders-cleanup branch

Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
14 years agoat91bootstrap: don't depend on BR .config
Peter Korsgaard [Mon, 14 Jun 2010 20:21:11 +0000 (22:21 +0200)]
at91bootstrap: don't depend on BR .config

Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
14 years agoMerge branch 'bootloaders-cleanup' of git://git.busybox.net/~tpetazzoni/git/buildroot
Peter Korsgaard [Mon, 14 Jun 2010 19:41:12 +0000 (21:41 +0200)]
Merge branch 'bootloaders-cleanup' of git://git.busybox.net/~tpetazzoni/git/buildroot

14 years agobusybox: add 1.16.2 devmem fix for access to the highest page
Peter Korsgaard [Mon, 14 Jun 2010 07:47:49 +0000 (09:47 +0200)]
busybox: add 1.16.2 devmem fix for access to the highest page

From busybox git.

Devmem used to always map 2 pages in case the access would cross a page
boundary, which fails if you try to access the highest page.

Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
14 years agobusybox: bump 1.16.x version
Peter Korsgaard [Mon, 14 Jun 2010 07:45:38 +0000 (09:45 +0200)]
busybox: bump 1.16.x version

Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
14 years agoipsec-tools: bump version, convert to autotools format and simplify Config.in
Peter Korsgaard [Sun, 13 Jun 2010 12:24:48 +0000 (14:24 +0200)]
ipsec-tools: bump version, convert to autotools format and simplify Config.in

Closes #2035

- Remove -Werror from CFLAGS
- Always enable ipv6 support if available in toolchain
- Always install into staging

Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
14 years agovpnc: remove unused legacy patches
Peter Korsgaard [Sun, 13 Jun 2010 12:51:23 +0000 (14:51 +0200)]
vpnc: remove unused legacy patches

Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
14 years agolinux: fix dependency on mkimage
Thomas Petazzoni [Mon, 7 Jun 2010 21:11:26 +0000 (23:11 +0200)]
linux: fix dependency on mkimage

After the rework of the U-Boot configuration/compilation process, we
need to slightly rework how target/linux/Makefile.in.advanced depends
on mkimage on the host to produce an uImage.

target/linux/Makefile.in doesn't need to be fixed as it just doesn't
handle this dependency for the moment.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
14 years agoAdd support for the Barebox bootloader
Thomas Petazzoni [Sun, 30 May 2010 20:46:45 +0000 (22:46 +0200)]
Add support for the Barebox bootloader

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
14 years agoat91dataflashboot: add two patches
Thomas Petazzoni [Wed, 17 Mar 2010 08:15:42 +0000 (09:15 +0100)]
at91dataflashboot: add two patches

The first patch allows to build with an EABI toolchain. The second
patch disables the install step of at91dataflashboot Makefile since it
tries to copy files to /tftpboot.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
14 years agoat91dataflashboot: add a patch step
Thomas Petazzoni [Wed, 17 Mar 2010 08:15:26 +0000 (09:15 +0100)]
at91dataflashboot: add a patch step

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
14 years agoat91dataflashboot: various fixes
Thomas Petazzoni [Wed, 17 Mar 2010 07:57:54 +0000 (08:57 +0100)]
at91dataflashboot: various fixes

Fix the URL, fix the directory to which it gets unpacked, fix make
target names to be lower-case only.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
14 years agoat91dataflashboot: fix configuration options
Thomas Petazzoni [Wed, 17 Mar 2010 07:52:41 +0000 (08:52 +0100)]
at91dataflashboot: fix configuration options

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
14 years agoat91bootstrap: fix AT91BOOTSTRAP_BINARY
Thomas Petazzoni [Mon, 31 May 2010 17:38:03 +0000 (19:38 +0200)]
at91bootstrap: fix AT91BOOTSTRAP_BINARY

Use AT91BOOTSTRAP_BOARD instead of BOARD_NAME. Remove
AT91BOOTSTRAP_VERSION from the final binary image name.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
14 years agoat91bootstrap: fix install procedure
Thomas Petazzoni [Mon, 31 May 2010 17:31:44 +0000 (19:31 +0200)]
at91bootstrap: fix install procedure

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
14 years agoat91bootstrap: don't use the ATMEL_MIRROR thing
Thomas Petazzoni [Mon, 31 May 2010 17:31:30 +0000 (19:31 +0200)]
at91bootstrap: don't use the ATMEL_MIRROR thing

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
14 years agoat91bootstrap: bump version to 2.13
Thomas Petazzoni [Mon, 31 May 2010 17:30:32 +0000 (19:30 +0200)]
at91bootstrap: bump version to 2.13

At the same time, remove the unused AT91BOOTSTRAP_PATCH_LEVEL and
AT91BOOTSTRAP_PATCHED_VERSION variables.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
14 years agoat91bootstrap: add a check to verify that BR2_TARGET_AT91BOOTSTRAP_BOARD is set
Thomas Petazzoni [Wed, 17 Mar 2010 07:46:56 +0000 (08:46 +0100)]
at91bootstrap: add a check to verify that BR2_TARGET_AT91BOOTSTRAP_BOARD is set

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
14 years agoat91bootstrap: remove unused/useless code
Thomas Petazzoni [Wed, 17 Mar 2010 07:46:39 +0000 (08:46 +0100)]
at91bootstrap: remove unused/useless code

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
14 years agoat91bootstrap: fix incorrect config option comment
Thomas Petazzoni [Wed, 17 Mar 2010 07:46:03 +0000 (08:46 +0100)]
at91bootstrap: fix incorrect config option comment

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
14 years agoat91bootstrap: fix the boot source selection
Thomas Petazzoni [Wed, 17 Mar 2010 07:45:02 +0000 (08:45 +0100)]
at91bootstrap: fix the boot source selection

The boot source configuration options were depending on U-Boot
configuration options. Let's make it independent and just allow the
user to select whichever boot source is appropriate.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
14 years agoat91bootstrap: simplify configuration
Thomas Petazzoni [Wed, 17 Mar 2010 07:44:13 +0000 (08:44 +0100)]
at91bootstrap: simplify configuration

There no need to depends on BR2_TARGET_AT91BOOTSTRAP when the
configuration options are already inside a if
BR2_TARGET_AT91BOOTSTRAP.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
14 years agoat91bootstrap: do not default to $(BOARD_NAME)
Thomas Petazzoni [Wed, 17 Mar 2010 07:43:15 +0000 (08:43 +0100)]
at91bootstrap: do not default to $(BOARD_NAME)

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
14 years agosyslinux: depends on host-nasm
Thomas Petazzoni [Mon, 31 May 2010 19:08:33 +0000 (21:08 +0200)]
syslinux: depends on host-nasm

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
14 years agonasm: new package, needed for syslinux
Thomas Petazzoni [Mon, 31 May 2010 19:08:14 +0000 (21:08 +0200)]
nasm: new package, needed for syslinux

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
14 years agosyslinux: remove the unnecessary SYSLINUX_SUPPORTED_ARCH check
Thomas Petazzoni [Mon, 15 Mar 2010 22:30:15 +0000 (23:30 +0100)]
syslinux: remove the unnecessary SYSLINUX_SUPPORTED_ARCH check

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
14 years agosyslinux: bump version and fix build
Thomas Petazzoni [Tue, 16 Mar 2010 20:50:16 +0000 (21:50 +0100)]
syslinux: bump version and fix build

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
14 years agogrub2: only available on x86 and PowerPC and mark as BROKEN
Thomas Petazzoni [Mon, 31 May 2010 21:59:57 +0000 (23:59 +0200)]
grub2: only available on x86 and PowerPC and mark as BROKEN

The build process of grub2 breaks the compilation. It breaks with:

./configure: line 4766: syntax error near unexpected token `external'
./configure: line 4766: `AM_GNU_GETTEXT(external)'

In addition to this, it later requires Ruby. Do we really want to make
Buildroot depend on Ruby being installed on the host ? Do we really
want to build our own Ruby ? Do we even care about Grub2 ?

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
14 years agogrub2: remove non-existing options
Thomas Petazzoni [Wed, 17 Mar 2010 07:39:20 +0000 (08:39 +0100)]
grub2: remove non-existing options

Much of the grub2.mk seems to have been copy/pasted from
grub.mk. However, all the network/splashimage related ./configure
options do not exist in grub2.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
14 years agogrub2: fix build
Thomas Petazzoni [Tue, 16 Mar 2010 20:27:46 +0000 (21:27 +0100)]
grub2: fix build

grub2 now builds fine, but some work remains to make it usable. What
should be installed exactly in the TARGET_DIR ? What is the
installation procedure and what should Buildroot do ?

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
14 years agogrub2: bump version
Thomas Petazzoni [Mon, 15 Mar 2010 22:58:19 +0000 (23:58 +0100)]
grub2: bump version

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
14 years agogrub/grub2: update splash image location
Thomas Petazzoni [Mon, 15 Mar 2010 22:48:48 +0000 (23:48 +0100)]
grub/grub2: update splash image location

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
14 years agogrub/grub2: drop unnecessary dependency on uclibc
Thomas Petazzoni [Mon, 15 Mar 2010 22:28:40 +0000 (23:28 +0100)]
grub/grub2: drop unnecessary dependency on uclibc

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
14 years agogrub2: remove GRUB2_ARCH_SUPPORTED
Thomas Petazzoni [Sun, 14 Mar 2010 17:42:05 +0000 (18:42 +0100)]
grub2: remove GRUB2_ARCH_SUPPORTED

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
14 years agogrub: remove GRUB_SUPPORTED_ARCH
Thomas Petazzoni [Sun, 14 Mar 2010 17:22:00 +0000 (18:22 +0100)]
grub: remove GRUB_SUPPORTED_ARCH

grub can already only be selected for x86 and x86_64. No need to check
again for this in grub.mk.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
14 years agodefconfigs: remove references to old U-Boot versions
Thomas Petazzoni [Mon, 12 Apr 2010 14:10:49 +0000 (16:10 +0200)]
defconfigs: remove references to old U-Boot versions

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
14 years agou-boot: use BR2_TARGET_UBOOT_VERSION instead of BR2_UBOOT_VERSION
Thomas Petazzoni [Sat, 12 Jun 2010 11:24:49 +0000 (13:24 +0200)]
u-boot: use BR2_TARGET_UBOOT_VERSION instead of BR2_UBOOT_VERSION

In order to be coherent with all other BR2_TARGET_UBOOT_* options.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
14 years agou-boot: beautify option prompts
Thomas Petazzoni [Sat, 12 Jun 2010 10:42:49 +0000 (12:42 +0200)]
u-boot: beautify option prompts

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
14 years agou-boot: re-add infrastructure to specify custom tarball
Thomas Petazzoni [Sat, 12 Jun 2010 11:18:04 +0000 (13:18 +0200)]
u-boot: re-add infrastructure to specify custom tarball

The bootloader being very specific to the hardware, being able to
build U-Boot from an arbitrary tarball available on the web might be
needed.

Therefore, for U-Boot, we provide two methods :

 * Get a given stable version from U-Boot official FTP server

 * Get an arbitrary tarball

This should hopefully satisfy most needs, without complicating too
much the U-Boot build procedure on Buildroot side.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
14 years agou-boot: add a few comments
Thomas Petazzoni [Mon, 31 May 2010 17:34:27 +0000 (19:34 +0200)]
u-boot: add a few comments

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
14 years agou-boot: remove unused U_BOOT_TARGET_TOOLS variable
Thomas Petazzoni [Mon, 31 May 2010 17:32:35 +0000 (19:32 +0200)]
u-boot: remove unused U_BOOT_TARGET_TOOLS variable

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
14 years agou-boot: further simplify the configuration
Thomas Petazzoni [Wed, 17 Mar 2010 07:40:35 +0000 (08:40 +0100)]
u-boot: further simplify the configuration

Remove all the bootsource selection mechanism and the horribly
complicated BR2_TARGET_UBOOT_DEFAULT_ENV thing, which wanted to be
generic, but was in fact very AT91-specific.

Just keep things simple: we build U-Boot with the board configuration
file specified in BR2_TARGET_UBOOT_BOARDNAME.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
14 years agou-boot: support building for mkimage
Thomas Petazzoni [Sun, 4 Apr 2010 15:11:33 +0000 (17:11 +0200)]
u-boot: support building for mkimage

To build mkimage for the host (which is needed to build an uImage of
the kernel), it is not necessary to configure U-Boot, and therefore to
have a particular board selected.

Therefore, this commit:

 * Adds a verification at U-Boot configure step that a U-Boot board
   name has been defined

 * Sets a default U-Boot version if none has been specified, so that
   even when U-Boot isn't selected but we want to build mkimage for
   the host, a particular U-Boot version is picked.

 * Make the host mkimage target depend only on U-Boot being
   downloaded/extracted/patched, and the target mkimage/fw_printenv
   targets depend on U-Boot being fully configured.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
14 years agou-boot: remove useless symbolic link
Thomas Petazzoni [Mon, 15 Mar 2010 22:47:45 +0000 (23:47 +0100)]
u-boot: remove useless symbolic link

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
14 years agou-boot: remove patch for obsolete version
Thomas Petazzoni [Mon, 15 Mar 2010 22:26:11 +0000 (23:26 +0100)]
u-boot: remove patch for obsolete version

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
14 years agou-boot: simplify custom patch handling
Thomas Petazzoni [Mon, 15 Mar 2010 22:25:53 +0000 (23:25 +0100)]
u-boot: simplify custom patch handling

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
14 years agou-boot: remove reference to old 1.2.0-atmel version
Thomas Petazzoni [Sun, 14 Mar 2010 17:40:50 +0000 (18:40 +0100)]
u-boot: remove reference to old 1.2.0-atmel version

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
14 years agou-boot: remove u-boot-status make target
Thomas Petazzoni [Sun, 14 Mar 2010 17:39:31 +0000 (18:39 +0100)]
u-boot: remove u-boot-status make target

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
14 years agou-boot: remove arch specific patches infrastructure
Thomas Petazzoni [Sun, 14 Mar 2010 17:36:34 +0000 (18:36 +0100)]
u-boot: remove arch specific patches infrastructure

A very complicated infrastructure for just a special case, for an
ancient version of U-Boot. Recent versions of U-Boot are reported to
work just fine on Atmel ARM evaluation boards.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
14 years agou-boot: remove option to configure download site
Thomas Petazzoni [Sun, 14 Mar 2010 17:31:59 +0000 (18:31 +0100)]
u-boot: remove option to configure download site

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
14 years agou-boot: rename Makefile.in to u-boot.mk for coherency
Thomas Petazzoni [Sun, 14 Mar 2010 17:28:46 +0000 (18:28 +0100)]
u-boot: rename Makefile.in to u-boot.mk for coherency

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
14 years agou-boot: remove ancient versions
Thomas Petazzoni [Sun, 14 Mar 2010 17:28:02 +0000 (18:28 +0100)]
u-boot: remove ancient versions

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
14 years agou-boot: do not default to $(BOARD_NAME) for the board name
Thomas Petazzoni [Sun, 14 Mar 2010 17:26:44 +0000 (18:26 +0100)]
u-boot: do not default to $(BOARD_NAME) for the board name

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
14 years agoboot: remove references to COPYTO
Thomas Petazzoni [Sun, 14 Mar 2010 17:25:25 +0000 (18:25 +0100)]
boot: remove references to COPYTO

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
14 years agoyaboot: drop support
Thomas Petazzoni [Wed, 24 Mar 2010 21:37:40 +0000 (22:37 +0100)]
yaboot: drop support

Yaboot does not build, hasn't been updated since a long time, and
isn't very common these days on embedded PowerPC platforms.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
14 years agobootloaders: move bootloader build code to boot/
Thomas Petazzoni [Sun, 14 Mar 2010 17:20:45 +0000 (18:20 +0100)]
bootloaders: move bootloader build code to boot/

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
14 years agofile: don't force _GNU_SOURCE in CFLAGS
Peter Korsgaard [Thu, 10 Jun 2010 07:33:32 +0000 (09:33 +0200)]
file: don't force _GNU_SOURCE in CFLAGS

Breaks the build with BR2_CONFIG_CACHE, and isn't needed anyway, as
the configure script figures out to add _GNU_SOURCE to config.h
anyway.

Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
14 years agoskeleton: remove loopback interface configuration from inittab
Baruch Siach [Thu, 3 Jun 2010 05:36:50 +0000 (08:36 +0300)]
skeleton: remove loopback interface configuration from inittab

The lo interface is marked auto in /etc/network/interfaces, so the
configuration of the loopback network interface is part of the
S40network init script. This causes the "RTNETLINK answers: File exists" error
message to appear at startup time.

Signed-off-by: Baruch Siach <baruch@tkos.co.il>
Acked-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
14 years agodependencies.sh: fix CWD in PATH check
Nick Leverton [Wed, 9 Jun 2010 10:04:25 +0000 (12:04 +0200)]
dependencies.sh: fix CWD in PATH check

Closes #1999

Signed-off-by: Nick Leverton <nick@leverton.org>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
14 years agofile: use new-style target override for uninstall
Peter Korsgaard [Wed, 9 Jun 2010 06:53:56 +0000 (08:53 +0200)]
file: use new-style target override for uninstall

As suggested by Thomas.

Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
14 years agoSet correct GCC tune option for ARM926T(==ARM926EJ-S) core
Julien Boibessot [Fri, 4 Jun 2010 15:21:04 +0000 (17:21 +0200)]
Set correct GCC tune option for ARM926T(==ARM926EJ-S) core

Signed-off-by: Julien Boibessot <julien.boibessot@armadeus.com>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
14 years agogstreamer: remove --disable-registry from configure options
Lionel Landwerlin [Sat, 5 Jun 2010 18:03:50 +0000 (20:03 +0200)]
gstreamer: remove --disable-registry from configure options

--disable-registry has no dependency on libxml2 and should not be
linked to BR2_PACKAGE_GSTREAMER_LIBXML2. If we want to disable
registry then we should add another option.

Signed-off-by: Lionel Landwerlin <llandwerlin@gmail.com>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>