duma: use $(TARGET_MAKE_ENV) when calling $(MAKE)
authorGustavo Zacarias <gustavo.zacarias@free-electrons.com>
Thu, 13 Oct 2016 22:13:55 +0000 (19:13 -0300)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Sat, 15 Oct 2016 12:18:02 +0000 (14:18 +0200)
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>
package/duma/duma.mk

index 5e862ab25ecbbd27c5f82d0b67ef31bf4dc7f522..a8348b95a28c539cfdc43e32583d8072ca12607b 100644 (file)
@@ -18,18 +18,18 @@ DUMA_OPTIONS = \
 # The dependency of some source files in duma_config.h, which is generated at
 # build time, is not specified in the Makefile. Force non-parallel build.
 define DUMA_BUILD_CMDS
-       $(MAKE1) $(TARGET_CONFIGURE_OPTS)       \
+       $(TARGET_MAKE_ENV) $(MAKE1) $(TARGET_CONFIGURE_OPTS)       \
                OS=linux \
                DUMA_OPTIONS="$(DUMA_OPTIONS)"   \
                $(DUMA_CPP) -C $(@D)
 endef
 
 define DUMA_INSTALL_STAGING_CMDS
-       $(MAKE) OS=linux prefix=$(STAGING_DIR)/usr install -C $(@D)
+       $(TARGET_MAKE_ENV) $(MAKE) OS=linux prefix=$(STAGING_DIR)/usr install -C $(@D)
 endef
 
 define DUMA_INSTALL_TARGET_CMDS
-       $(MAKE) OS=linux prefix=$(TARGET_DIR)/usr install -C $(@D)
+       $(TARGET_MAKE_ENV) $(MAKE) OS=linux prefix=$(TARGET_DIR)/usr install -C $(@D)
 endef
 
 $(eval $(generic-package))