[oe-commits] [openembedded-core] 05/08: perf: add sysroot handling to subcmd

git at git.openembedded.org git at git.openembedded.org
Tue Feb 23 00:24:42 UTC 2016


rpurdie pushed a commit to branch master-next
in repository openembedded-core.

commit 2bcb8cc1be18ed750e300528ec5424a095cae80d
Author: Martin Donnelly <martin.donnelly at ge.com>
AuthorDate: Mon Feb 22 19:32:34 2016 +0200

    perf: add sysroot handling to subcmd
    
    v4.5-rc1 of the kernel splits the subcommand related files
    from perf into a new library, this patch adds the modification
    of the Makefile to preserve the --sysroot option as for
    the other perf related Makefiles.
    
    Signed-off-by: Martin Donnelly <martin.donnelly at ge.com>
    Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
 meta/recipes-kernel/perf/perf.bb | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/meta/recipes-kernel/perf/perf.bb b/meta/recipes-kernel/perf/perf.bb
index 33acb42..8b86290 100644
--- a/meta/recipes-kernel/perf/perf.bb
+++ b/meta/recipes-kernel/perf/perf.bb
@@ -164,6 +164,10 @@ do_configure_prepend () {
         sed -i 's,CC = $(CROSS_COMPILE)gcc,#CC,' ${S}/tools/lib/api/Makefile
         sed -i 's,AR = $(CROSS_COMPILE)ar,#AR,' ${S}/tools/lib/api/Makefile
     fi
+    if [ -e "${S}/tools/lib/subcmd/Makefile" ]; then
+        sed -i 's,CC = $(CROSS_COMPILE)gcc,#CC,' ${S}/tools/lib/subcmd/Makefile
+        sed -i 's,AR = $(CROSS_COMPILE)ar,#AR,' ${S}/tools/lib/subcmd/Makefile
+    fi
     if [ -e "${S}/tools/perf/config/feature-checks/Makefile" ]; then
         sed -i 's,CC := $(CROSS_COMPILE)gcc -MD,CC += -MD,' ${S}/tools/perf/config/feature-checks/Makefile
     fi

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Openembedded-commits mailing list