All of lore.kernel.org
 help / color / mirror / Atom feed
From: Peter Korsgaard <jacmet@uclibc.org>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH 14/46] u-boot: support building for mkimage
Date: Tue, 08 Jun 2010 23:45:58 +0200	[thread overview]
Message-ID: <877hm9i4fd.fsf@macbook.be.48ers.dk> (raw)
In-Reply-To: <09b5460223d8c9930125c60c4ab8dab52b05372b.1275343447.git.thomas.petazzoni@free-electrons.com> (Thomas Petazzoni's message of "Tue, 1 Jun 2010 00:08:00 +0200")

>>>>> "Thomas" == Thomas Petazzoni <thomas.petazzoni@free-electrons.com> writes:

 Thomas> When mkimage needs to be built (when building an uImage for the Linux
 Thomas> kernel is needed), but U-Boot hasn't been selected for compilation,
 Thomas> U_BOOT_VERSION and U_BOOT_BOARD_NAME aren't defined. Define them to
 Thomas> default values in this case.

 Thomas> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
 Thomas> ---
 Thomas>  boot/u-boot/u-boot.mk |   29 ++++++++++++++++++++++-------
 Thomas>  1 files changed, 22 insertions(+), 7 deletions(-)

 Thomas> diff --git a/boot/u-boot/u-boot.mk b/boot/u-boot/u-boot.mk
 Thomas> index ac16c8b..1f5b216 100644
 Thomas> --- a/boot/u-boot/u-boot.mk
 Thomas> +++ b/boot/u-boot/u-boot.mk
 Thomas> @@ -4,6 +4,15 @@
 Thomas>  #
 Thomas>  #############################################################
 Thomas>  U_BOOT_VERSION:=$(call qstrip,$(BR2_UBOOT_VERSION))
 Thomas> +U_BOOT_BOARD_NAME:=$(call qstrip,$(BR2_TARGET_UBOOT_BOARDNAME))
 Thomas> +
 Thomas> +# An U-Boot version and board might not be specified if U-Boot isn't
 Thomas> +# explicitly selected, but mkimage needs to be compiled. In this case,
 Thomas> +# we just take a random U-Boot version and configuration.
 Thomas> +ifeq ($(U_BOOT_VERSION),)
 Thomas> +U_BOOT_VERSION=2010.03
 Thomas> +U_BOOT_BOARD_NAME=smdk2410
 Thomas> +endif
  
 Thomas>  # u-boot still uses arch=ppc for powerpc
 Thomas>  U_BOOT_ARCH=$(KERNEL_ARCH:powerpc=ppc)
 
Does that work if KERNEL_ARCH != arm?

 Thomas> +$(MKIMAGE): $(U_BOOT_DIR)/.configured
 Thomas>  	mkdir -p $(@D)
 Thomas> -	cp -dpf $(U_BOOT_DIR)/tools/mkimage $@
 Thomas> +	$(TARGET_CONFIGURE_OPTS) \
 Thomas> +		CFLAGS="$(TARGET_CFLAGS)" \
 Thomas> +		LDFLAGS="$(TARGET_LDFLAGS)" \
 Thomas> +		$(U_BOOT_CONFIGURE_OPTS) \
 Thomas> +		$(MAKE) CROSS_COMPILE="$(TARGET_CROSS)" ARCH=$(U_BOOT_ARCH) \
 Thomas> +		-C $(U_BOOT_DIR) tools
 Thomas> +	cp -dpf $(U_BOOT_DIR)/tools/mkimage $(@D)

Huh, isn't that supposed to be mkimage for the host? Why do you need to
pass all this target stuff?

-- 
Bye, Peter Korsgaard

  reply	other threads:[~2010-06-08 21:45 UTC|newest]

Thread overview: 62+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-05-31 22:07 [Buildroot] [pull request] Pull request for branch bootloaders-cleanup Thomas Petazzoni
2010-05-31 22:07 ` [Buildroot] [PATCH 01/46] bootloaders: move bootloader build code to boot/ Thomas Petazzoni
2010-05-31 22:07 ` [Buildroot] [PATCH 02/46] yaboot: drop support Thomas Petazzoni
2010-05-31 22:07 ` [Buildroot] [PATCH 03/46] boot: remove references to COPYTO Thomas Petazzoni
2010-05-31 22:07 ` [Buildroot] [PATCH 04/46] u-boot: do not default to $(BOARD_NAME) for the board name Thomas Petazzoni
2010-05-31 22:07 ` [Buildroot] [PATCH 05/46] u-boot: remove ancient versions Thomas Petazzoni
2010-05-31 22:07 ` [Buildroot] [PATCH 06/46] u-boot: rename Makefile.in to u-boot.mk for coherency Thomas Petazzoni
2010-05-31 22:07 ` [Buildroot] [PATCH 07/46] u-boot: remove option to configure download site Thomas Petazzoni
2010-06-02  7:14   ` [Buildroot] [PATCH 07/46] u-boot: remove option to configuredownload site Paul Jones
2010-06-04  8:32     ` Thomas Petazzoni
2010-06-05 13:49       ` Thomas Petazzoni
2010-06-06  7:29         ` Paul Jones
2010-06-07  9:11           ` Thomas Petazzoni
2010-06-07 21:22           ` Thomas Petazzoni
2010-05-31 22:07 ` [Buildroot] [PATCH 08/46] u-boot: remove arch specific patches infrastructure Thomas Petazzoni
2010-05-31 22:07 ` [Buildroot] [PATCH 09/46] u-boot: remove u-boot-status make target Thomas Petazzoni
2010-05-31 22:07 ` [Buildroot] [PATCH 10/46] u-boot: remove reference to old 1.2.0-atmel version Thomas Petazzoni
2010-05-31 22:07 ` [Buildroot] [PATCH 11/46] u-boot: simplify custom patch handling Thomas Petazzoni
2010-05-31 22:07 ` [Buildroot] [PATCH 12/46] u-boot: remove patch for obsolete version Thomas Petazzoni
2010-05-31 22:07 ` [Buildroot] [PATCH 13/46] u-boot: remove useless symbolic link Thomas Petazzoni
2010-05-31 22:08 ` [Buildroot] [PATCH 14/46] u-boot: support building for mkimage Thomas Petazzoni
2010-06-08 21:45   ` Peter Korsgaard [this message]
2010-06-12 14:15     ` Thomas Petazzoni
2010-05-31 22:08 ` [Buildroot] [PATCH 15/46] u-boot: further simplify the configuration Thomas Petazzoni
2010-05-31 22:08 ` [Buildroot] [PATCH 16/46] u-boot: remove unused U_BOOT_TARGET_TOOLS variable Thomas Petazzoni
2010-05-31 22:08 ` [Buildroot] [PATCH 17/46] u-boot: add a few comments Thomas Petazzoni
2010-05-31 22:08 ` [Buildroot] [PATCH 18/46] u-boot: remove unneeded symbolic link + blank line Thomas Petazzoni
2010-06-08 21:53   ` Peter Korsgaard
2010-06-12 14:16     ` Thomas Petazzoni
2010-05-31 22:08 ` [Buildroot] [PATCH 19/46] grub: remove GRUB_SUPPORTED_ARCH Thomas Petazzoni
2010-05-31 22:08 ` [Buildroot] [PATCH 20/46] grub2: remove GRUB2_ARCH_SUPPORTED Thomas Petazzoni
2010-05-31 22:08 ` [Buildroot] [PATCH 21/46] grub/grub2: drop unnecessary dependency on uclibc Thomas Petazzoni
2010-05-31 22:08 ` [Buildroot] [PATCH 22/46] grub/grub2: update splash image location Thomas Petazzoni
2010-05-31 22:08 ` [Buildroot] [PATCH 23/46] grub2: bump version Thomas Petazzoni
2010-05-31 22:08 ` [Buildroot] [PATCH 24/46] grub2: fix build Thomas Petazzoni
2010-06-08 21:54   ` Peter Korsgaard
2010-05-31 22:08 ` [Buildroot] [PATCH 25/46] grub2: remove non-existing options Thomas Petazzoni
2010-05-31 22:08 ` [Buildroot] [PATCH 26/46] grub2: only available on x86 and PowerPC and mark as BROKEN Thomas Petazzoni
2010-06-08 21:55   ` Peter Korsgaard
2010-05-31 22:08 ` [Buildroot] [PATCH 27/46] syslinux: bump version and fix build Thomas Petazzoni
2010-05-31 22:08 ` [Buildroot] [PATCH 28/46] syslinux: remove the unnecessary SYSLINUX_SUPPORTED_ARCH check Thomas Petazzoni
2010-05-31 22:08 ` [Buildroot] [PATCH 29/46] nasm: new package, needed for syslinux Thomas Petazzoni
2010-05-31 22:08 ` [Buildroot] [PATCH 30/46] syslinux: depends on host-nasm Thomas Petazzoni
2010-05-31 22:08 ` [Buildroot] [PATCH 31/46] at91bootstrap: do not default to $(BOARD_NAME) Thomas Petazzoni
2010-05-31 22:08 ` [Buildroot] [PATCH 32/46] at91bootstrap: simplify configuration Thomas Petazzoni
2010-05-31 22:08 ` [Buildroot] [PATCH 33/46] at91bootstrap: fix the boot source selection Thomas Petazzoni
2010-05-31 22:08 ` [Buildroot] [PATCH 34/46] at91bootstrap: fix incorrect config option comment Thomas Petazzoni
2010-05-31 22:08 ` [Buildroot] [PATCH 35/46] at91bootstrap: remove unused/useless code Thomas Petazzoni
2010-05-31 22:08 ` [Buildroot] [PATCH 36/46] at91bootstrap: add a check to verify that BR2_TARGET_AT91BOOTSTRAP_BOARD is set Thomas Petazzoni
2010-05-31 22:08 ` [Buildroot] [PATCH 37/46] at91bootstrap: bump version to 2.13 Thomas Petazzoni
2010-05-31 22:08 ` [Buildroot] [PATCH 38/46] at91bootstrap: don't use the ATMEL_MIRROR thing Thomas Petazzoni
2010-05-31 22:08 ` [Buildroot] [PATCH 39/46] at91bootstrap: fix install procedure Thomas Petazzoni
2010-05-31 22:08 ` [Buildroot] [PATCH 40/46] at91bootstrap: fix AT91BOOTSTRAP_BINARY Thomas Petazzoni
2010-05-31 22:08 ` [Buildroot] [PATCH 41/46] at91dataflashboot: fix configuration options Thomas Petazzoni
2010-05-31 22:08 ` [Buildroot] [PATCH 42/46] at91dataflashboot: various fixes Thomas Petazzoni
2010-05-31 22:08 ` [Buildroot] [PATCH 43/46] at91dataflashboot: add a patch step Thomas Petazzoni
2010-05-31 22:08 ` [Buildroot] [PATCH 44/46] at91dataflashboot: add two patches Thomas Petazzoni
2010-05-31 22:08 ` [Buildroot] [PATCH 45/46] defconfigs: remove references to old U-Boot versions Thomas Petazzoni
2010-05-31 22:08 ` [Buildroot] [PATCH 46/46] Add support for the Barebox bootloader Thomas Petazzoni
2010-06-09  7:51   ` Peter Korsgaard
2010-06-12 14:16     ` Thomas Petazzoni
2010-06-05 13:51 ` [Buildroot] [pull request] Pull request for branch bootloaders-cleanup Thomas Petazzoni

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=877hm9i4fd.fsf@macbook.be.48ers.dk \
    --to=jacmet@uclibc.org \
    --cc=buildroot@busybox.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.