Patchwork [PATCHv2] perf: Add host-bison, host-flex dependencies

login
register
mail settings
Submitter Mischa Jonker
Date Sept. 4, 2013, 7:02 p.m.
Message ID <1378321330-16521-1-git-send-email-mjonker@synopsys.com>
Download mbox | patch
Permalink /patch/272711/
State Accepted
Commit e2fa8eb91c70ec084ba72c5b1f2ca180257b9441
Headers show

Comments

Mischa Jonker - Sept. 4, 2013, 7:02 p.m.
Signed-off-by: Mischa Jonker <mjonker@synopsys.com>
---
 package/perf/perf.mk |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
Thomas Petazzoni - Sept. 5, 2013, 7:59 a.m.
Dear Mischa Jonker,

On Wed,  4 Sep 2013 21:02:10 +0200, Mischa Jonker wrote:
> Signed-off-by: Mischa Jonker <mjonker@synopsys.com>
> ---
>  package/perf/perf.mk |    6 +++---
>  1 file changed, 3 insertions(+), 3 deletions(-)

Acked-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Thomas De Schampheleire - Sept. 5, 2013, 8:03 a.m.
On Wed, Sep 4, 2013 at 9:02 PM, Mischa Jonker
<Mischa.Jonker@synopsys.com> wrote:
> Signed-off-by: Mischa Jonker <mjonker@synopsys.com>
> ---
>  package/perf/perf.mk |    6 +++---
>  1 file changed, 3 insertions(+), 3 deletions(-)
>
> diff --git a/package/perf/perf.mk b/package/perf/perf.mk
> index 7787c78..120353f 100644
> --- a/package/perf/perf.mk
> +++ b/package/perf/perf.mk
> @@ -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
> --

Tested-by: Thomas De Schampheleire <thomas.de.schampheleire@gmail.com>
Peter Korsgaard - Sept. 7, 2013, 6:13 a.m.
>>>>> "Mischa" == Mischa Jonker <Mischa.Jonker@synopsys.com> writes:

 Mischa> Signed-off-by: Mischa Jonker <mjonker@synopsys.com>

Committed, thanks.

Patch

diff --git a/package/perf/perf.mk b/package/perf/perf.mk
index 7787c78..120353f 100644
--- a/package/perf/perf.mk
+++ b/package/perf/perf.mk
@@ -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