Commit 242f6720 authored by Ryan Coe's avatar Ryan Coe Committed by Thomas Petazzoni
Browse files

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: default avatarRyan Coe <bluemrp9@gmail.com>
Signed-off-by: default avatarThomas Petazzoni <thomas.petazzoni@free-electrons.com>
parent 8d2eaa5b
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -16,12 +16,14 @@ endef

define PPS_TOOLS_INSTALL_STAGING_CMDS
	mkdir -p $(STAGING_DIR)/usr/include/sys $(STAGING_DIR)/usr/bin
	$(TARGET_MAKE_ENV) $(MAKE) DESTDIR=$(STAGING_DIR) -C $(@D) install
	$(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) DESTDIR=$(TARGET_DIR) -C $(@D) install
	$(TARGET_MAKE_ENV) $(MAKE) $(TARGET_CONFIGURE_OPTS) \
		DESTDIR=$(TARGET_DIR) -C $(@D) install
endef

$(eval $(generic-package))