rt-tests: use $(TARGET_MAKE_ENV) when calling $(MAKE)
authorGustavo Zacarias <gustavo.zacarias@free-electrons.com>
Mon, 17 Oct 2016 16:06:33 +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/rt-tests/rt-tests.mk

index 19f1021a8a96a464bc40caa1b49337d780b286da..addc15e6fdacd0cb26a14299d6083022979f442d 100644 (file)
@@ -15,14 +15,14 @@ RT_TESTS_DEPENDENCIES = python
 endif
 
 define RT_TESTS_BUILD_CMDS
-       $(MAKE) -C $(@D)                        \
+       $(TARGET_MAKE_ENV) $(MAKE) -C $(@D)     \
                CC="$(TARGET_CC)"               \
                CFLAGS="$(TARGET_CFLAGS)"       \
                prefix=/usr
 endef
 
 define RT_TESTS_INSTALL_TARGET_CMDS
-       $(MAKE) -C $(@D)                                \
+       $(TARGET_MAKE_ENV) $(MAKE) -C $(@D)             \
                DESTDIR="$(TARGET_DIR)"                 \
                prefix=/usr                             \
                $(if $(BR2_PACKAGE_PYTHON),PYLIB=/usr/lib/python$(PYTHON_VERSION_MAJOR)/site-packages/,PYLIB="") \