perf: Add host-bison, host-flex dependencies
authorMischa Jonker <mischa.jonker@synopsys.com>
Wed, 4 Sep 2013 19:02:10 +0000 (21:02 +0200)
committerPeter Korsgaard <jacmet@sunsite.dk>
Fri, 6 Sep 2013 21:54:44 +0000 (23:54 +0200)
Signed-off-by: Mischa Jonker <mjonker@synopsys.com>
Acked-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Tested-by: Thomas De Schampheleire <thomas.de.schampheleire@gmail.com>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
package/perf/perf.mk

index 7787c787a13b1520d8ed298031ccd63639232734..120353f8e3c69bb1d701d73bd1d908fce02f5439 100644 (file)
@@ -8,7 +8,7 @@
 PERF_SOURCE =
 PERF_VERSION = $(call qstrip,$(BR2_LINUX_KERNEL_VERSION))
 
-PERF_DEPENDENCIES = linux
+PERF_DEPENDENCIES = linux host-flex host-bison
 
 PERF_MAKE_FLAGS = \
        $(LINUX_MAKE_FLAGS) \
@@ -40,14 +40,14 @@ define PERF_BUILD_CMDS
                        exit 1 ; \
                fi \
        fi
-       $(MAKE) -C $(LINUX_DIR)/tools/perf \
+       $(TARGET_MAKE_ENV) $(MAKE) -C $(LINUX_DIR)/tools/perf \
                $(PERF_MAKE_FLAGS) O=$(@D)
 endef
 
 # After installation, we remove the Perl and Python scripts from the
 # target.
 define PERF_INSTALL_TARGET_CMDS
-       $(MAKE) -C $(LINUX_DIR)/tools/perf \
+       $(TARGET_MAKE_ENV) $(MAKE) -C $(LINUX_DIR)/tools/perf \
                $(PERF_MAKE_FLAGS) O=$(@D) install
        $(RM) -rf $(TARGET_DIR)/usr/libexec/perf-core/scripts/
 endef