am335x-pru-package: use $(TARGET_MAKE_ENV) when calling $(MAKE)
authorGustavo Zacarias <gustavo.zacarias@free-electrons.com>
Mon, 17 Oct 2016 16:06:14 +0000 (13:06 -0300)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Sat, 22 Oct 2016 13:19:24 +0000 (15:19 +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/am335x-pru-package/am335x-pru-package.mk

index a97e8a49eacbcf6dfcd96323b1e21f182b579b18..d6bffb4f51c29b271b50abcf8a4a4d3f9b438d9d 100644 (file)
@@ -19,19 +19,19 @@ AM335X_MAKE_TARGET = release $(if $(BR2_STATIC_LIBS),,sorelease)
 endif
 
 define AM335X_PRU_PACKAGE_BUILD_CMDS
-       $(MAKE) CROSS_COMPILE="$(TARGET_CROSS)" \
+       $(TARGET_MAKE_ENV) $(MAKE) CROSS_COMPILE="$(TARGET_CROSS)" \
                -C $(@D)/pru_sw/app_loader/interface $(AM335X_MAKE_TARGET)
 endef
 
 # 'install' installs whatever was built, and our patch removes the dependency
 # on the release build, so we can use it to install whatever we built above.
 define AM335X_PRU_PACKAGE_INSTALL_STAGING_CMDS
-       $(MAKE1) DESTDIR="$(STAGING_DIR)" PREFIX="/usr" \
+       $(TARGET_MAKE_ENV) $(MAKE1) DESTDIR="$(STAGING_DIR)" PREFIX="/usr" \
                -C $(@D)/pru_sw/app_loader/interface install
 endef
 
 define AM335X_PRU_PACKAGE_INSTALL_TARGET_CMDS
-       $(MAKE1) DESTDIR="$(TARGET_DIR)" PREFIX="/usr" \
+       $(TARGET_MAKE_ENV) $(MAKE1) DESTDIR="$(TARGET_DIR)" PREFIX="/usr" \
                -C $(@D)/pru_sw/app_loader/interface install
 endef