On Mon, Sep 11, 2017 at 04:26:52PM +0200, Jan Kiszka wrote:
> On 2017-09-11 13:35, [ext] Andreas J. Reichel wrote:
> > From: Reichel Andreas <[email protected]>
> > 
> > For API refactoring, storage backend should be configurable.
> > Add --with-env-backend configure option to specify the c-file
> > with the backend implementation.
> > 
> > Signed-off-by: Andreas Reichel <[email protected]>
> > ---
> >  Makefile.am                   |  4 ++--
> >  configure.ac                  | 11 ++++++++++-
> >  env/env_api_fat.c             |  1 +
> >  include/env_api.h             |  4 +---
> >  tools/tests/Makefile          |  1 +
> >  tools/tests/test_partitions.c |  1 +
> >  6 files changed, 16 insertions(+), 6 deletions(-)
> > 
> > diff --git a/Makefile.am b/Makefile.am
> > index c3908c0..a740b70 100644
> > --- a/Makefile.am
> > +++ b/Makefile.am
> > @@ -42,7 +42,7 @@ CLEANFILES =
> >  lib_LIBRARIES = libebgenv.a libenv_api.a
> >  
> >  libebgenv_a_SOURCES = \
> > -   env/env_api_fat.c \
> > +   env/@[email protected] \
> >     tools/ebgpart.c \
> >     swupdate-adapter/ebgenv.c
> >  
> > @@ -55,7 +55,7 @@ libebgenv_a_CFLAGS = \
> >  
> >  libenv_api_a_SOURCES = \
> >     tools/ebgpart.c \
> > -   env/env_api_fat.c
> > +   env/@[email protected]
> >  
> >  libenv_api_a_CFLAGS = \
> >     $(AM_CFLAGS)
> > diff --git a/configure.ac b/configure.ac
> > index 80dd365..aa2d423 100644
> > --- a/configure.ac
> > +++ b/configure.ac
> > @@ -134,6 +134,13 @@ AC_TYPE_UINT16_T
> >  AC_TYPE_UINT32_T
> >  AC_TYPE_UINT8_T
> >  
> > +AC_ARG_WITH([env-backend],
> > +       AS_HELP_STRING([--with-env-backend=STRING],
> > +                      [define the environment backend, defaults to 
> > "env_api_fat"]),
> > +       [ ENV_API_FILE="$withval" ],
> > +       [ ENV_API_FILE="env_api_fat" ])
> > +
> > +AC_SUBST([env_api_file], [${ENV_API_FILE}])
> >  # 
> > ------------------------------------------------------------------------------
> >  AC_CONFIG_FILES([
> >          Makefile
> > @@ -147,11 +154,13 @@ AC_MSG_RESULT([
> >          machine type:            $MACHINE_TYPE_NAME
> >  
> >          prefix:                  ${prefix}
> > -   exec_prefix:             ${exec_prefix}
> > +        exec_prefix:             ${exec_prefix}
> >          libexecdir:              ${libexecdir}
> >          libdir:                  ${libdir}
> >  
> >          efi libs:                ${GNUEFI_LIBS}
> >          efi lds:                 ${GNUEFI_LDS_DIR}
> > +
> > +   environment backend:     ${ENV_API_FILE}.c
> 
> Tab indention here vs. spaces elsewhere. Maybe you want to enable tab
> visualization in your editor ;).

It was already mixed before my patch... so I will convert
everything to tabs. Thank you.
> 

-- 
Andreas Reichel
Dipl.-Phys. (Univ.)
Software Consultant

[email protected], +49-174-3180074
TNG Technology Consulting GmbH, Betastr. 13a, 85774 Unterfoehring
Geschaeftsfuehrer: Henrik Klagges, Dr. Robert Dahlke, Gerhard Mueller
Sitz: Unterfoehring * Amtsgericht Muenchen * HRB 135082

-- 
You received this message because you are subscribed to the Google Groups "EFI 
Boot Guard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/efibootguard-dev/20170912083317.GA28293%40iiotirae.
For more options, visit https://groups.google.com/d/optout.

Reply via email to