[Buildroot] [PATCH 17/28] uboot-mkimage: new package

Peter Korsgaard jacmet at uclibc.org
Sun Jul 10 20:10:38 UTC 2011


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

 Thomas> The mkimage for the host is now built by a package, so that
 Thomas> boot/u-boot/u-boot.mk is no longer responsible for doing this. It
 Thomas> makes things a lot easier to handle, as linux/linux.mk now simply
 Thomas> depends on host-uboot-mkimage.

Perhaps it would make sense to call it uboot-tools instead, if we move
fw_printenv over here as well (similar to the Debian package) - But ok,
that can be done later.

Committed, thanks.

 Thomas> Signed-off-by: Thomas Petazzoni <thomas.petazzoni at free-electrons.com>
 Thomas> ---
 Thomas>  .../uboot-mkimage-2011.03-drop-configh.patch       |    0
 Thomas>  package/uboot-mkimage/uboot-mkimage.mk             |   16 ++++++++++++++++
 Thomas>  2 files changed, 16 insertions(+), 0 deletions(-)
 Thomas>  rename boot/u-boot/u-boot-2011.03-drop-configh.patch => package/uboot-mkimage/uboot-mkimage-2011.03-drop-configh.patch (100%)
 Thomas>  create mode 100644 package/uboot-mkimage/uboot-mkimage.mk

 Thomas> diff --git a/boot/u-boot/u-boot-2011.03-drop-configh.patch b/package/uboot-mkimage/uboot-mkimage-2011.03-drop-configh.patch
 Thomas> similarity index 100%
 Thomas> rename from boot/u-boot/u-boot-2011.03-drop-configh.patch
 Thomas> rename to package/uboot-mkimage/uboot-mkimage-2011.03-drop-configh.patch
 Thomas> diff --git a/package/uboot-mkimage/uboot-mkimage.mk b/package/uboot-mkimage/uboot-mkimage.mk
 Thomas> new file mode 100644
 Thomas> index 0000000..055348c
 Thomas> --- /dev/null
 Thomas> +++ b/package/uboot-mkimage/uboot-mkimage.mk
 Thomas> @@ -0,0 +1,16 @@
 Thomas> +UBOOT_MKIMAGE_VERSION = 2011.03
 Thomas> +UBOOT_MKIMAGE_SOURCE  = u-boot-$(UBOOT_MKIMAGE_VERSION).tar.bz2
 Thomas> +UBOOT_MKIMAGE_SITE    = ftp://ftp.denx.de/pub/u-boot
 Thomas> +
 Thomas> +define HOST_UBOOT_MKIMAGE_BUILD_CMDS
 Thomas> +	$(MAKE) -C $(@D) 			\
 Thomas> +		CROSS_COMPILE="$(TARGET_CROSS)" \
 Thomas> +		ARCH=$(U_BOOT_ARCH) 		\

I don't think CROSS_COMPILE / ARCH are needed for tools. It would be
good to set HOSTCC/CFLAGS/LDFLAGS to the host versions we're using
elsewhere in BR instead of using the defaults from u-boot.

I've fixed that in a followup patch.

-- 
Bye, Peter Korsgaard


More information about the buildroot mailing list