1 ################################################################################
5 ################################################################################
8 EFIVAR_SITE
= $(call github
,rhinstaller
,efivar
,$(EFIVAR_VERSION
))
9 EFIVAR_LICENSE
= LGPLv2.1
10 EFIVAR_LICENSE_FILES
= COPYING
11 EFIVAR_DEPENDENCIES
= popt
12 EFIVAR_INSTALL_STAGING
= YES
14 # BINTARGETS is set to skip efivar-static which requires static popt,
15 # and since we depend on dynamic libraries, efivar will never be built
16 # in a static-only environment.
17 # -fPIC is needed at least on MIPS, otherwise fails to build shared
22 LDFLAGS
="$(TARGET_LDFLAGS) -fPIC"
24 define EFIVAR_BUILD_CMDS
25 # makeguids is an internal host tool and must be built separately with
26 # $(HOST_CC), otherwise it gets cross-built.
27 $(HOST_MAKE_ENV
) $(HOST_CONFIGURE_OPTS
) \
28 CFLAGS
="$(HOST_CFLAGS) -std=gnu99" \
29 $(MAKE
) -C
$(@D
)/src gcc_cflags
= makeguids
31 $(TARGET_MAKE_ENV
) $(TARGET_CONFIGURE_OPTS
) $(MAKE1
) -C
$(@D
) \
32 AR
=$(TARGET_AR
) NM
=$(TARGET_NM
) RANLIB
=$(TARGET_RANLIB
) \
37 define EFIVAR_INSTALL_STAGING_CMDS
38 $(TARGET_MAKE_ENV
) $(TARGET_CONFIGURE_OPTS
) $(MAKE1
) -C
$(@D
) \
40 DESTDIR
="$(STAGING_DIR)" \
44 define EFIVAR_INSTALL_TARGET_CMDS
45 $(TARGET_MAKE_ENV
) $(TARGET_CONFIGURE_OPTS
) $(MAKE1
) -C
$(@D
) \
47 DESTDIR
="$(TARGET_DIR)" \
51 $(eval
$(generic-package
))