kumquat-buildroot/package/gadgetfs-test/gadgetfs-test.mk
Gustavo Zacarias a441c8ab4c gadgetfs-test: use $(TARGET_MAKE_ENV) when calling $(MAKE)
Signed-off-by: Gustavo Zacarias <gustavo.zacarias@free-electrons.com>
Reviewed-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
2016-10-15 14:17:22 +02:00

26 lines
797 B
Makefile

################################################################################
#
# gadgetfs-test
#
################################################################################
GADGETFS_TEST_SOURCE = gadgetfs-test.tar.bz2
GADGETFS_TEST_SITE = http://mirror.egtvedt.no/avr32linux.org/twiki/pub/Main/GadgetFsTest
GADGETFS_TEST_MAKEOPTS = CC="$(TARGET_CC)" CFLAGS="$(TARGET_CFLAGS)" LDFLAGS="$(TARGET_LDFLAGS)"
ifeq ($(BR2_PACKAGE_GADGETFS_TEST_USE_AIO),y)
GADGETFS_TEST_DEPENDENCIES = libaio
GADGETFS_TEST_MAKEOPTS += USE_AIO=y
endif
define GADGETFS_TEST_BUILD_CMDS
$(TARGET_MAKE_ENV) $(MAKE) -C $(@D) $(GADGETFS_TEST_MAKEOPTS)
endef
define GADGETFS_TEST_INSTALL_TARGET_CMDS
$(TARGET_MAKE_ENV) $(MAKE) -C $(@D) DESTDIR=$(TARGET_DIR) prefix=/usr install
endef
$(eval $(generic-package))