Commit Graph

30 Commits

Author SHA1 Message Date
Mike Frysinger
1b4e24e80d u-boot: update default helper tools to 2010.12
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
2010-12-27 23:29:54 +01:00
Thomas Petazzoni
969de4de7e u-boot: add support for version 2010.12
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
2010-12-25 23:21:43 +01:00
Thomas Petazzoni
cddfe67dd2 u-boot: add CROSS_COMPILE/ARCH when building host tools
Even when building the host tools, for some reason U-Boot tries to
execute the cross-compiler, so tell it which cross-compiler to use in
order to avoid failure such as:

/usr/bin/make -j12 -C /home/test/outputs/test-253-mini2440_defconfig/build/u-boot-custom tools
make[1]: arm-linux-gcc: Command not found
make[1]: Entering directory `/home/test/outputs/test-253-mini2440_defconfig/build/u-boot-custom'
for dir in tools examples api_examples ; do /usr/bin/make -C $dir _depend ; done
Generating include/autoconf.mk
/bin/sh: line 3: arm-linux-gcc: command not found

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
2010-12-16 15:06:45 +01:00
Thomas Petazzoni
eb95b01fff u-boot: add U-Boot 2010.09
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
2010-12-16 14:52:08 +01:00
Peter Korsgaard
3e5e39a8a2 barebox/u-boot/linux: don't error out on missing config when make source
As it breaks 'make allyesconfig; make source', used for the source mirror.

Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
2010-09-28 14:43:25 +02:00
Peter Korsgaard
a0b6710b88 u-boot: pass ARCH/CROSS_COMPILE when running make <board>_config
Gets rid of a bunch of (ignored) errors about missing cross compiler.

Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
2010-09-27 12:37:45 +02:00
Thomas Petazzoni
af0a3d1cde u-boot: fix custom patch handling
When U-Boot is enabled and no custom patch directory has been set,
then the current test:

  ifneq ($(strip $(BR2_TARGET_UBOOT_CUSTOM_PATCH_DIR)),"")

works. However, when U-Boot is not enabled, but still gets compiled
because mkimage is needed to build the kernel,
BR2_TARGET_UBOOT_CUSTOM_PATCH_DIR is completely empty. It does not
even have quotes. So the test in fact needs to be:

 ifneq ($(call qstrip,$(BR2_TARGET_UBOOT_CUSTOM_PATCH_DIR)),)

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
2010-07-29 22:18:56 +02:00
Ossy
98d5a8bcd0 u-boot: fix custom patch dir handling
Signed-off-by: Ossy <ossy1980@gmx.net>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
2010-07-26 22:45:48 +02:00
Peter Korsgaard
3cd5174ed7 u-boot: add Marvell u-boot.kwb support
Marvell boards like the sheevaplug needs a special .kwb image format,
so add an option for it similar to how we handle zImage/uImage/..
for the kernel.

Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
2010-07-26 16:14:41 +02:00
Peter Korsgaard
1acd72a1ab u-boot: fix version detection and get rid of unneeded double CFLAGS/LDFLAGS
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
2010-07-14 21:08:26 +02:00
Peter Korsgaard
b9997ca731 u-boot: add 2010.06 release
A few minor modifications of u-boot.mk is needed to support 2010.06:

- U-Boot now uses ARCH=powerpc like the kernel (instead of ARCH=ppc)
- Library files have moved, so adjust the target mkimage/fw_printenv rules
  (still compatible with older versions)

Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
2010-07-05 16:54:45 +02:00
Thiago A. Correa
b1f184a0d8 Fix u-boot 2010.03 build for AVR32 targets
Signed-off-by: Thiago A. Correa <thiago.correa@gmail.com>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
2010-06-23 23:00:42 +02:00
Thomas Petazzoni
db86f18ed7 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>
2010-06-12 13:25:46 +02:00
Thomas Petazzoni
8f07a59611 u-boot: beautify option prompts
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
2010-06-12 13:25:46 +02:00
Thomas Petazzoni
f15702a97f 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>
2010-06-12 13:23:48 +02:00
Thomas Petazzoni
6db01c1b30 u-boot: add a few comments
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
2010-06-12 13:23:48 +02:00
Thomas Petazzoni
4a587b12eb u-boot: remove unused U_BOOT_TARGET_TOOLS variable
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
2010-06-12 13:23:48 +02:00
Thomas Petazzoni
afd3bd2b03 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>
2010-06-12 13:23:47 +02:00
Thomas Petazzoni
f2d16ae0e1 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>
2010-06-12 13:21:36 +02:00
Thomas Petazzoni
dc63ef95f3 u-boot: remove useless symbolic link
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
2010-06-10 21:05:13 +02:00
Thomas Petazzoni
ff0c91acc2 u-boot: remove patch for obsolete version
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
2010-06-10 21:05:13 +02:00
Thomas Petazzoni
bbd247b7c0 u-boot: simplify custom patch handling
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
2010-06-10 21:05:13 +02:00
Thomas Petazzoni
b116aff434 u-boot: remove reference to old 1.2.0-atmel version
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
2010-06-10 21:05:13 +02:00
Thomas Petazzoni
86074e71b6 u-boot: remove u-boot-status make target
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
2010-06-10 21:05:12 +02:00
Thomas Petazzoni
1cee7b34b4 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>
2010-06-10 21:05:12 +02:00
Thomas Petazzoni
dac82dbe7a u-boot: remove option to configure download site
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
2010-06-10 21:05:12 +02:00
Thomas Petazzoni
f7995aa066 u-boot: rename Makefile.in to u-boot.mk for coherency
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
2010-06-10 21:05:12 +02:00
Thomas Petazzoni
4cbd9ed613 u-boot: remove ancient versions
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
2010-06-10 21:05:12 +02:00
Thomas Petazzoni
5ae6077606 u-boot: do not default to $(BOARD_NAME) for the board name
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
2010-06-10 21:05:12 +02:00
Thomas Petazzoni
649b5b9250 bootloaders: move bootloader build code to boot/
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
2010-06-10 21:05:12 +02:00