[systemd-devel] [PATCH 3/5] Makefile.am: Allow for user override of EFI include dir

Kay Sievers kay at vrfy.org
Wed Aug 21 12:02:42 PDT 2013


On Wed, Aug 21, 2013 at 8:13 PM, Darren Hart <dvhart at linux.intel.com> wrote:
> Enable cross-compiling by allowing the user to specify an alternative to
> the /usr/include directory for the EFI includes. Add a variable INCDIR
> defaulting to /usr/include, but still allowing the user to provide their
> own value.
>
> Signed-off-by: Darren Hart <dvhart at linux.intel.com>
> ---
>  Makefile.am | 5 +++--
>  1 file changed, 3 insertions(+), 2 deletions(-)
>
> diff --git a/Makefile.am b/Makefile.am
> index c3dfcb2..5dc9493 100644
> --- a/Makefile.am
> +++ b/Makefile.am
> @@ -72,10 +72,11 @@ CLEANFILES += man/gummiboot.8
>  efi_loadername = gummiboot$(MACHINE_TYPE_NAME).efi
>  efi_sources = src/efi/gummiboot.c
>
> +INCDIR := /usr/include
>  efi_cppflags = \
>         -I$(top_builddir) -include config.h \
> -       -I/usr/include/efi \
> -       -I/usr/include/efi/$(ARCH)
> +       -I$(INCDIR)/efi \
> +       -I$(INCDIR)/efi/$(ARCH)

Hmm, how do other projects do this?

Is'n autoconfs:
  ./configure --includedir
supposed to do that?

If yes, we should probably use $includedir in the Makefile, I guess. :)

Kay


More information about the systemd-devel mailing list