Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Yann E. MORIN <yann.morin.1998@free.fr>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH 1/1] package/genimage : fix dependency to host-mtools mcopy is used by genimage when creating fat parts
Date: Thu, 7 Jan 2021 16:11:26 +0100	[thread overview]
Message-ID: <20210107151126.GK1485369@scaer> (raw)
In-Reply-To: <20210107110634.65195-1-fabien.lehoussel@medianesysteme.com>

Fabien, All,

On 2021-01-07 12:06 +0100, Fabien Lehoussel spake thusly:
> Signed-off-by: Fabien Lehoussel <fabien.lehoussel@medianesysteme.com>
> ---
>  package/genimage/Config.in.host | 1 +
>  package/genimage/genimage.mk    | 2 +-
>  2 files changed, 2 insertions(+), 1 deletion(-)
> 
> diff --git a/package/genimage/Config.in.host b/package/genimage/Config.in.host
> index cf831a143c..8db7eed8e4 100644
> --- a/package/genimage/Config.in.host
> +++ b/package/genimage/Config.in.host
> @@ -1,5 +1,6 @@
>  config BR2_PACKAGE_HOST_GENIMAGE
>  	bool "host genimage"
> +	select BR2_PACKAGE_HOST_MTOOLS
>  	help
>  	  genimage is a tool to generate multiple filesystem and flash
>  	  images from a given root filesystem tree. genimage is
> diff --git a/package/genimage/genimage.mk b/package/genimage/genimage.mk
> index dde8f8b9e0..1fa93e0854 100644
> --- a/package/genimage/genimage.mk
> +++ b/package/genimage/genimage.mk
> @@ -7,7 +7,7 @@
>  GENIMAGE_VERSION = 13
>  GENIMAGE_SOURCE = genimage-$(GENIMAGE_VERSION).tar.xz
>  GENIMAGE_SITE = https://github.com/pengutronix/genimage/releases/download/v$(GENIMAGE_VERSION)
> -HOST_GENIMAGE_DEPENDENCIES = host-pkgconf host-libconfuse
> +HOST_GENIMAGE_DEPENDENCIES = host-pkgconf host-libconfuse host-mtools

Not all genimage configurations require creating a vfat partition.

For example, we do have a few such configurations in Buildroot:

    $ grep -c vfat $(find board/ -name '*genimage*') |grep -E ':0$' |wc -l
    27

    $ cat board/amarula/vyasa/genimage.cfg
    image sdcard.img {
        hdimage {
        }

        partition u-boot-tpl-spl-dtb {
            in-partition-table = "no"
            image = "u-boot-tpl-spl-dtb.img"
            offset = 32K
        }

        partition u-boot-dtb {
            in-partition-table = "no"
            image = "u-boot-dtb.img"
            offset = 8M
            size = 30M # falcon mode: args @ 16M args, uImage @ 17M
        }

        partition rootfs {
            partition-type = 0x83
            image = "rootfs.ext4"
        }
    }

It is your respnsibility to enable whatever filesystem image generators
you need for your system.

Regards,
Yann E. MORIN.

>  GENIMAGE_LICENSE = GPL-2.0
>  GENIMAGE_LICENSE_FILES = COPYING
>  
> -- 
> 2.25.1
> 
> _______________________________________________
> buildroot mailing list
> buildroot at busybox.net
> http://lists.busybox.net/mailman/listinfo/buildroot

-- 
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| +33 561 099 427 `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
'------------------------------^-------^------------------^--------------------'

      reply	other threads:[~2021-01-07 15:11 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-01-07 11:06 [Buildroot] [PATCH 1/1] package/genimage : fix dependency to host-mtools mcopy is used by genimage when creating fat parts Fabien Lehoussel
2021-01-07 15:11 ` Yann E. MORIN [this message]

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=20210107151126.GK1485369@scaer \
    --to=yann.morin.1998@free.fr \
    --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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox