8e14c0429d
$(TARGET_CONFIGURE_OPTS) should be passed as $(MAKE) argument, not in the environment. We can then remove the redefined CC and LD variables that were useless. We also take this opportunity to pass $(TARGET_MAKE_ENV) in the environment of make. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
34 lines
871 B
Makefile
34 lines
871 B
Makefile
#############################################################
|
|
#
|
|
# gptfdisk
|
|
#
|
|
#############################################################
|
|
|
|
GPTFDISK_VERSION = 0.8.6
|
|
GPTFDISK_SITE = http://downloads.sourceforge.net/sourceforge/gptfdisk
|
|
|
|
GPTFDISK_TARGETS_$(BR2_PACKAGE_GPTFDISK_GDISK) += gdisk
|
|
GPTFDISK_TARGETS_$(BR2_PACKAGE_GPTFDISK_SGDISK) += sgdisk
|
|
|
|
GPTFDISK_DEPENDENCIES += util-linux
|
|
ifeq ($(BR2_PACKAGE_GPTFDISK_SGDISK),y)
|
|
GPTFDISK_DEPENDENCIES += popt
|
|
endif
|
|
|
|
define GPTFDISK_BUILD_CMDS
|
|
$(TARGET_MAKE_ENV) $(MAKE) $(TARGET_CONFIGURE_OPTS) -C $(@D) \
|
|
$(GPTFDISK_TARGETS_y)
|
|
endef
|
|
|
|
define GPTFDISK_INSTALL_TARGET_CMDS
|
|
for i in $(GPTFDISK_TARGETS_y); do \
|
|
$(INSTALL) -D $(@D)/$$i $(TARGET_DIR)/usr/sbin/; \
|
|
done
|
|
endef
|
|
|
|
define GPTFDISK_UNINSTALL_TARGET_CMDS
|
|
rm -f $(addprefix $(TARGET_DIR)/usr/sbin/,$(GPTFDISK_TARGETS_y))
|
|
endef
|
|
|
|
$(eval $(generic-package))
|