python-dataproperty: bump version to 0.17.0
[buildroot-gz.git] / package / efivar / efivar.mk
blobc31d87b84089f743f13e0701169ad3f3fe60c878
1 ################################################################################
3 # efivar
5 ################################################################################
7 EFIVAR_VERSION = 30
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
18 # -library.
19 EFIVAR_MAKE_OPTS = \
20 libdir=/usr/lib \
21 BINTARGETS=efivar \
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) \
33 $(EFIVAR_MAKE_OPTS) \
34 all
35 endef
37 define EFIVAR_INSTALL_STAGING_CMDS
38 $(TARGET_MAKE_ENV) $(TARGET_CONFIGURE_OPTS) $(MAKE1) -C $(@D) \
39 $(EFIVAR_MAKE_OPTS) \
40 DESTDIR="$(STAGING_DIR)" \
41 install
42 endef
44 define EFIVAR_INSTALL_TARGET_CMDS
45 $(TARGET_MAKE_ENV) $(TARGET_CONFIGURE_OPTS) $(MAKE1) -C $(@D) \
46 $(EFIVAR_MAKE_OPTS) \
47 DESTDIR="$(TARGET_DIR)" \
48 install
49 endef
51 $(eval $(generic-package))