From patchwork Tue Mar 18 11:56:12 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chase Maupin X-Patchwork-Id: 26488 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-qg0-f70.google.com (mail-qg0-f70.google.com [209.85.192.70]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id DD903203C3 for ; Tue, 18 Mar 2014 11:56:34 +0000 (UTC) Received: by mail-qg0-f70.google.com with SMTP id z60sf16076350qgd.1 for ; Tue, 18 Mar 2014 04:56:34 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:delivered-to:from:to:date :message-id:mime-version:subject:precedence:list-id:list-unsubscribe :list-archive:list-post:list-help:list-subscribe:sender:errors-to :x-original-sender:x-original-authentication-results:mailing-list :content-type:content-transfer-encoding; bh=ohiEWUbY5xB3Gw9RsWeii6FpgM5tmWXJjvPtRftY/4U=; b=bZUdp13jtWyOlka52qCYnPePZ8e8ix4iNnTUCz+Qv7u6z6eV/jwSOSD9lRW13f9Vui xF7vJNgMd29FUc7fokGHwAhy8elxG/X9hAUnxS7Aya5slgBdpVaEOQv53Cxk5oiCmnBa RXY/zWeg8fIcSMLSRkGJQ94DImO1RsnYoDHEiglHh1Z9s/P6jVTN3MNLGbiqDtjcdDEc uWN5GJt6hrMBrJ0KNixHZbYmUbjHAmHnkXOgweqaLTUFy57UUxIEcI/DjyekcXhtmLp3 NcWaPfl22VTzObQFU3aTEWwRtRFt85aVl20hsbbwlNqce6eAG9MzOwSPdyKYqDY2DzXp oIjw== X-Gm-Message-State: ALoCoQkYFQ8R7ttol/kOHMKZZj5ADPEhEM/2d3Dihvb7lhCAeGJHCqwXa49WXPYO5vUYCaNma94q X-Received: by 10.236.121.4 with SMTP id q4mr4712373yhh.34.1395143794491; Tue, 18 Mar 2014 04:56:34 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.86.85 with SMTP id o79ls904173qgd.12.gmail; Tue, 18 Mar 2014 04:56:34 -0700 (PDT) X-Received: by 10.58.146.5 with SMTP id sy5mr471312veb.43.1395143794373; Tue, 18 Mar 2014 04:56:34 -0700 (PDT) Received: from mail-vc0-f173.google.com (mail-vc0-f173.google.com [209.85.220.173]) by mx.google.com with ESMTPS id fi2si2565855vdb.190.2014.03.18.04.56.34 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 18 Mar 2014 04:56:34 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.220.173 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.220.173; Received: by mail-vc0-f173.google.com with SMTP id il7so7037805vcb.18 for ; Tue, 18 Mar 2014 04:56:34 -0700 (PDT) X-Received: by 10.58.188.52 with SMTP id fx20mr2021188vec.28.1395143794232; Tue, 18 Mar 2014 04:56:34 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.220.78.9 with SMTP id i9csp199235vck; Tue, 18 Mar 2014 04:56:33 -0700 (PDT) X-Received: by 10.68.202.8 with SMTP id ke8mr33081867pbc.86.1395143793304; Tue, 18 Mar 2014 04:56:33 -0700 (PDT) Received: from mail.openembedded.org (mail.openembedded.org. [140.211.169.62]) by mx.google.com with ESMTP id my2si17798815pbc.355.2014.03.18.04.56.32 for ; Tue, 18 Mar 2014 04:56:33 -0700 (PDT) Received-SPF: pass (google.com: domain of openembedded-core-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) client-ip=140.211.169.62; Received: from mail.openembedded.org (localhost [127.0.0.1]) by mail.openembedded.org (Postfix) with ESMTP id E81BC6F8FF; Tue, 18 Mar 2014 11:56:23 +0000 (UTC) X-Original-To: openembedded-core@lists.openembedded.org Delivered-To: openembedded-core@lists.openembedded.org Received: from bear.ext.ti.com (bear.ext.ti.com [192.94.94.41]) by mail.openembedded.org (Postfix) with ESMTP id BBEFC6F8DF for ; Tue, 18 Mar 2014 11:56:20 +0000 (UTC) Received: from dflxv15.itg.ti.com ([128.247.5.124]) by bear.ext.ti.com (8.13.7/8.13.7) with ESMTP id s2IBuKIb003922 for ; Tue, 18 Mar 2014 06:56:20 -0500 Received: from DFLE72.ent.ti.com (dfle72.ent.ti.com [128.247.5.109]) by dflxv15.itg.ti.com (8.14.3/8.13.8) with ESMTP id s2IBuJqu002285 for ; Tue, 18 Mar 2014 06:56:20 -0500 Received: from dlep33.itg.ti.com (157.170.170.75) by DFLE72.ent.ti.com (128.247.5.109) with Microsoft SMTP Server id 14.3.174.1; Tue, 18 Mar 2014 06:56:19 -0500 Received: from sdit-build04.dal.design.ti.com (dbdp20.itg.ti.com [172.24.170.38]) by dlep33.itg.ti.com (8.14.3/8.13.8) with ESMTP id s2IBuGSS032759; Tue, 18 Mar 2014 06:56:18 -0500 From: Chase Maupin To: Date: Tue, 18 Mar 2014 06:56:12 -0500 Message-ID: <1395143773-26375-1-git-send-email-Chase.Maupin@ti.com> X-Mailer: git-send-email 1.7.9.5 MIME-Version: 1.0 Subject: [OE-core] [PATCH 1/2] linaro-pm-qa-utils: Add power management test utils X-BeenThere: openembedded-core@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: , List-Help: , List-Subscribe: , Sender: openembedded-core-bounces@lists.openembedded.org Errors-To: openembedded-core-bounces@lists.openembedded.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: chase.maupin@ti.com X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.220.173 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 * The power management test utilities from Linaro can be used to test multiple PM features such as cpufreq, cpuidle, thermal control and suspend operations. * These utilities are not platform specific and can be used by a broader base of users. Signed-off-by: Chase Maupin --- .../linaro-pm-qa/linaro-pm-qa-utils_git.bb | 63 ++++++++++++++++++++ 1 file changed, 63 insertions(+) create mode 100644 meta/recipes-devtools/linaro-pm-qa/linaro-pm-qa-utils_git.bb diff --git a/meta/recipes-devtools/linaro-pm-qa/linaro-pm-qa-utils_git.bb b/meta/recipes-devtools/linaro-pm-qa/linaro-pm-qa-utils_git.bb new file mode 100644 index 0000000..610f3a7 --- /dev/null +++ b/meta/recipes-devtools/linaro-pm-qa/linaro-pm-qa-utils_git.bb @@ -0,0 +1,63 @@ +DESCRIPTION = "Utilities from Linaro for testing Power Management" +HOMEPAGE = "https://wiki.linaro.org/WorkingGroups/PowerManagement/Resources/TestSuite/PmQa" + +LICENSE = "GPLv2" +LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263" + +PV = "0.4.4" + +BRANCH ?= "master" +SRCREV = "fbc2762359b863dfbf4fd0bab1e8abd2a6125ed4" + +SRC_URI = "git://git.linaro.org/tools/pm-qa.git;protocol=git;branch=${BRANCH}" + +S = "${WORKDIR}/git" + +CFLAGS += "-pthread" + +do_compile () { + # Find all the .c files in this project and build them. + for x in `find . -name "*.c"` + do + util=`echo ${x} | sed s/.c$//` + oe_runmake ${util} + done +} + +do_install () { + install -d ${D}${bindir} + install -d ${D}${bindir}/linaro-pm-qa-include + + # Install the compiled binaries the were built in the previous step + for x in `find . -name "*.c"` + do + util=`echo ${x} | sed s/.c$//` + util_basename=`basename ${util}` + install -m 0755 ${util} ${D}${bindir}/${util_basename} + done + + # Install the helper scripts in the include directory + for script in `find . -name "*.sh" | grep include` + do + # Remove hardcoded relative paths + sed -i -e 's#..\/utils\/##' ${script} + + script_basename=`basename ${script}` + install -m 0755 $script ${D}${bindir}/linaro-pm-qa-include/${script_basename} + done + + # Install the shell scripts NOT in the include directory since those + # will be installed elsewhere + for script in `find . -name "*.sh" | grep -v include` + do + # if the script includes any helper scripts from the include + # directory then change the include path to the absolute path + # to reflect the install location of the helper scripts. + sed -i -e "s#source ../include#source ${bindir}/linaro-pm-qa-include#g" ${script} + # Remove hardcoded relative paths + sed -i -e 's#..\/utils\/##' ${script} + + script_basename=`basename ${script}` + install -m 0755 $script ${D}${bindir}/${script_basename} + done +}