On Tue, Nov 27, 2018 at 06:20:08PM -0200, Otavio Salvador wrote:

> The motivation for this is to allow distributions to distribute all
> possible tools in a generic way, avoiding the need of specific tools
> building for each machine.
> 
> Especially on OpenEmbedded / Yocto Project ecosystem, it is very
> common each BSP to end providing their specific tools when they need
> to generate images for some SoC (e.g MX23 / MX28 in meta-freescale
> case).
> 
> Using this, we can package the tools doing:
> 
> $: make tools-only_defconfig
> $: make tools-only
> 
> Signed-off-by: Otavio Salvador <ota...@ossystems.com.br>
> ---
> 
>  configs/tools-only_defconfig | 3 +++
>  tools/Makefile               | 2 +-
>  2 files changed, 4 insertions(+), 1 deletion(-)
>  create mode 100644 configs/tools-only_defconfig
> 
> diff --git a/configs/tools-only_defconfig b/configs/tools-only_defconfig
> new file mode 100644
> index 0000000000..be69bdf43a
> --- /dev/null
> +++ b/configs/tools-only_defconfig
> @@ -0,0 +1,3 @@
> +CONFIG_SYS_TEXT_BASE=0
> +CONFIG_FIT=y
> +CONFIG_FIT_SIGNATURE=y
> diff --git a/tools/Makefile b/tools/Makefile
> index 3c0521f655..e916d0cebb 100644
> --- a/tools/Makefile
> +++ b/tools/Makefile
> @@ -124,7 +124,7 @@ fit_info-objs   := $(dumpimage-mkimage-objs) fit_info.o
>  fit_check_sign-objs   := $(dumpimage-mkimage-objs) fit_check_sign.o
>  file2include-objs := file2include.o
>  
> -ifneq ($(CONFIG_MX23)$(CONFIG_MX28),)
> +ifneq ($(CONFIG_MX23)$(CONFIG_MX28)$(CONFIG_FIT_SIGNATURE),)
>  # Add CONFIG_MXS into host CFLAGS, so we can check whether or not register
>  # the mxsimage support within tools/mxsimage.c .
>  HOSTCFLAGS_mxsimage.o += -DCONFIG_MXS

Adding in Peter since Fedora had this same problem crop up.  Does
something like this work for you guys?  Also adding in Vagrant Cascadian
since Debian might want to switch to this too.  Thoughts?  Thanks!

-- 
Tom

Attachment: signature.asc
Description: PGP signature

_______________________________________________
U-Boot mailing list
U-Boot@lists.denx.de
https://lists.denx.de/listinfo/u-boot

Reply via email to