qtuio: use TARGET_MAKE_ENV when running make and qmake
authorThomas De Schampheleire <patrickdepinguin@gmail.com>
Wed, 19 Mar 2014 19:30:08 +0000 (20:30 +0100)
committerPeter Korsgaard <peter@korsgaard.com>
Wed, 26 Mar 2014 16:08:46 +0000 (17:08 +0100)
This patch prepends TARGET_MAKE_ENV to $(MAKE) and $(QT_QMAKE) command
lines, to make sure PATH is set correctly, and to line up with the qt5
packages that do this consistently.

Signed-off-by: Thomas De Schampheleire <thomas.de.schampheleire@gmail.com>
Acked-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
package/qtuio/qtuio.mk

index fe23230b2c533ea409303c70b237d462c44f2318..02927a49620c8649b8e4505315f4a91856397e5b 100644 (file)
@@ -19,13 +19,13 @@ QTUIO_EXAMPLES = dials fingerpaint knobs pinchzoom
 ifeq ($(BR2_QTUIO_EXAMPLES),y)
 define QTUIO_CONFIGURE_EXAMPLES
        for example in $(QTUIO_EXAMPLES) ; do \
-               (cd $(@D)/examples/$${example} && $(QT_QMAKE)) ; \
+               (cd $(@D)/examples/$${example} && $(TARGET_MAKE_ENV) $(QT_QMAKE)) ; \
        done
 endef
 endif
 
 define QTUIO_CONFIGURE_CMDS
-       cd $(@D)/src && $(QT_QMAKE)
+       cd $(@D)/src && $(TARGET_MAKE_ENV) $(QT_QMAKE)
        $(QTUIO_CONFIGURE_EXAMPLES)
 endef
 
@@ -38,7 +38,7 @@ endef
 endif
 
 define QTUIO_BUILD_CMDS
-       $(MAKE) -C $(@D)/src
+       $(TARGET_MAKE_ENV) $(MAKE) -C $(@D)/src
        $(QTUIO_BUILD_EXAMPLES)
 endef