kumquat-buildroot/package/pps-tools/pps-tools.mk
Ryan Coe 242f672093 pps-tools: also pass TARGET_CONFIGURE_OPTS to make install
Without these environment variables, pps-tools rebuilds for the host machine
architecture and does not run on the target machine.

Signed-off-by: Ryan Coe <bluemrp9@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
2015-02-02 09:40:08 +01:00

30 lines
937 B
Makefile

################################################################################
#
# pps-tools
#
################################################################################
PPS_TOOLS_VERSION = 0deb9c7e135e9380a6d09e9d2e938a146bb698c8
PPS_TOOLS_SITE = $(call github,ago,pps-tools,$(PPS_TOOLS_VERSION))
PPS_TOOLS_INSTALL_STAGING = YES
PPS_TOOLS_LICENSE = GPLv2+
PPS_TOOLS_LICENSE_FILES = COPYING
define PPS_TOOLS_BUILD_CMDS
$(TARGET_MAKE_ENV) $(MAKE) $(TARGET_CONFIGURE_OPTS) -C $(@D) all
endef
define PPS_TOOLS_INSTALL_STAGING_CMDS
mkdir -p $(STAGING_DIR)/usr/include/sys $(STAGING_DIR)/usr/bin
$(TARGET_MAKE_ENV) $(MAKE) $(TARGET_CONFIGURE_OPTS) \
DESTDIR=$(STAGING_DIR) -C $(@D) install
endef
define PPS_TOOLS_INSTALL_TARGET_CMDS
mkdir -p $(TARGET_DIR)/usr/include/sys $(TARGET_DIR)/usr/bin
$(TARGET_MAKE_ENV) $(MAKE) $(TARGET_CONFIGURE_OPTS) \
DESTDIR=$(TARGET_DIR) -C $(@D) install
endef
$(eval $(generic-package))