diff mbox series

[v7,06/11] sandbox: Build the mkeficapsule tool for the sandbox variants

Message ID 20230805113458.1430239-7-sughosh.ganu@linaro.org
State Superseded
Headers show
Series Integrate EFI capsule tasks into u-boot's build flow | expand

Commit Message

Sughosh Ganu Aug. 5, 2023, 11:34 a.m. UTC
Build the mkeficapsule tool for all the sandbox variants. This tool
will be used subsequently for testing capsule generation in binman.

Signed-off-by: Sughosh Ganu <sughosh.ganu@linaro.org>
---
Changes since V6:
* New patch which has been split up from the binman capsule entry
  support patch from earlier version, as suggested by Simon Glass.
* Enables mkeficapsule tool for all sandbox variants, instead of only
  for sandbox_spl variant.

 tools/Kconfig | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

Comments

Simon Glass Aug. 5, 2023, 3:03 p.m. UTC | #1
On Sat, 5 Aug 2023 at 05:35, Sughosh Ganu <sughosh.ganu@linaro.org> wrote:
>
> Build the mkeficapsule tool for all the sandbox variants. This tool
> will be used subsequently for testing capsule generation in binman.
>
> Signed-off-by: Sughosh Ganu <sughosh.ganu@linaro.org>
> ---
> Changes since V6:
> * New patch which has been split up from the binman capsule entry
>   support patch from earlier version, as suggested by Simon Glass.
> * Enables mkeficapsule tool for all sandbox variants, instead of only
>   for sandbox_spl variant.
>
>  tools/Kconfig | 6 +++---
>  1 file changed, 3 insertions(+), 3 deletions(-)
>

Reviewed-by: Simon Glass <sjg@chromium.org>

At some point after this series is in, please take a look at why this
tool isn't enabled for all builds.
Tom Rini Aug. 5, 2023, 10:15 p.m. UTC | #2
On Sat, Aug 05, 2023 at 09:03:49AM -0600, Simon Glass wrote:
> On Sat, 5 Aug 2023 at 05:35, Sughosh Ganu <sughosh.ganu@linaro.org> wrote:
> >
> > Build the mkeficapsule tool for all the sandbox variants. This tool
> > will be used subsequently for testing capsule generation in binman.
> >
> > Signed-off-by: Sughosh Ganu <sughosh.ganu@linaro.org>
> > ---
> > Changes since V6:
> > * New patch which has been split up from the binman capsule entry
> >   support patch from earlier version, as suggested by Simon Glass.
> > * Enables mkeficapsule tool for all sandbox variants, instead of only
> >   for sandbox_spl variant.
> >
> >  tools/Kconfig | 6 +++---
> >  1 file changed, 3 insertions(+), 3 deletions(-)
> >
> 
> Reviewed-by: Simon Glass <sjg@chromium.org>
> 
> At some point after this series is in, please take a look at why this
> tool isn't enabled for all builds.

The tool requires a bunch of stuff (see the rules in tools/Makefile).
Simon Glass Aug. 6, 2023, 2:04 a.m. UTC | #3
Hi Tom,

On Sat, 5 Aug 2023 at 16:15, Tom Rini <trini@konsulko.com> wrote:
>
> On Sat, Aug 05, 2023 at 09:03:49AM -0600, Simon Glass wrote:
> > On Sat, 5 Aug 2023 at 05:35, Sughosh Ganu <sughosh.ganu@linaro.org> wrote:
> > >
> > > Build the mkeficapsule tool for all the sandbox variants. This tool
> > > will be used subsequently for testing capsule generation in binman.
> > >
> > > Signed-off-by: Sughosh Ganu <sughosh.ganu@linaro.org>
> > > ---
> > > Changes since V6:
> > > * New patch which has been split up from the binman capsule entry
> > >   support patch from earlier version, as suggested by Simon Glass.
> > > * Enables mkeficapsule tool for all sandbox variants, instead of only
> > >   for sandbox_spl variant.
> > >
> > >  tools/Kconfig | 6 +++---
> > >  1 file changed, 3 insertions(+), 3 deletions(-)
> > >
> >
> > Reviewed-by: Simon Glass <sjg@chromium.org>
> >
> > At some point after this series is in, please take a look at why this
> > tool isn't enabled for all builds.
>
> The tool requires a bunch of stuff (see the rules in tools/Makefile).

Oh, I see. It requires uuid and gnutils

Even so, would it be too bad to require those packages for building U-Boot?

Regards,
Simon
Tom Rini Aug. 6, 2023, 1:29 p.m. UTC | #4
On Sat, Aug 05, 2023 at 08:04:43PM -0600, Simon Glass wrote:
> Hi Tom,
> 
> On Sat, 5 Aug 2023 at 16:15, Tom Rini <trini@konsulko.com> wrote:
> >
> > On Sat, Aug 05, 2023 at 09:03:49AM -0600, Simon Glass wrote:
> > > On Sat, 5 Aug 2023 at 05:35, Sughosh Ganu <sughosh.ganu@linaro.org> wrote:
> > > >
> > > > Build the mkeficapsule tool for all the sandbox variants. This tool
> > > > will be used subsequently for testing capsule generation in binman.
> > > >
> > > > Signed-off-by: Sughosh Ganu <sughosh.ganu@linaro.org>
> > > > ---
> > > > Changes since V6:
> > > > * New patch which has been split up from the binman capsule entry
> > > >   support patch from earlier version, as suggested by Simon Glass.
> > > > * Enables mkeficapsule tool for all sandbox variants, instead of only
> > > >   for sandbox_spl variant.
> > > >
> > > >  tools/Kconfig | 6 +++---
> > > >  1 file changed, 3 insertions(+), 3 deletions(-)
> > > >
> > >
> > > Reviewed-by: Simon Glass <sjg@chromium.org>
> > >
> > > At some point after this series is in, please take a look at why this
> > > tool isn't enabled for all builds.
> >
> > The tool requires a bunch of stuff (see the rules in tools/Makefile).
> 
> Oh, I see. It requires uuid and gnutils
> 
> Even so, would it be too bad to require those packages for building U-Boot?

We can always re-evaluate this later depending on the uptake of
capsules.  On the other hand we have a config for host tools only, for
distros to use, and this isn't the only "sometimes" tool.
diff mbox series

Patch

diff --git a/tools/Kconfig b/tools/Kconfig
index 6e23f44d55..353a855243 100644
--- a/tools/Kconfig
+++ b/tools/Kconfig
@@ -91,10 +91,10 @@  config TOOLS_SHA512
 	  Enable SHA512 support in the tools builds
 
 config TOOLS_MKEFICAPSULE
-	bool "Build efimkcapsule command"
-	default y if EFI_CAPSULE_ON_DISK
+	bool "Build mkeficapsule tool"
+	default y if EFI_CAPSULE_ON_DISK || SANDBOX
 	help
-	  This command allows users to create a UEFI capsule file and,
+	  This tool allows users to create a UEFI capsule file and,
 	  optionally sign that file. If you want to enable UEFI capsule
 	  update feature on your target, you certainly need this.