From patchwork Fri Mar 21 14:06:53 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chase Maupin X-Patchwork-Id: 26846 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-qc0-f200.google.com (mail-qc0-f200.google.com [209.85.216.200]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 80F9320143 for ; Fri, 21 Mar 2014 14:07:12 +0000 (UTC) Received: by mail-qc0-f200.google.com with SMTP id i17sf5568488qcy.3 for ; Fri, 21 Mar 2014 07:07:12 -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:reply-to: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=D3ZIwFl5sn+b8rgsJFkLn6uxSDH52LHU/haIgvaXr+4=; b=YQqquLlvUDJ8nAB71NgQ6PoJj3WNqMEbgw0T50ShbujGPu7e72xlLuAWKiRbFl9aJC Z600J2WjLR8SS2TYxW8trDvqqbTQaqRuSFNqCEvUIwg31TyMjR5RZRgk8qs73LD+ojG9 CAJndIkbNgC4j4VqyrRSibB0knGNmjyruzQ1UKXMd3V/dyjr2G/BA3CIxc+hOG/ruUT4 +PYUqdZ3tZts02uVFij9ddMTLLfCCrV1NRLMchLY6fkrPX1YBCK1nvOps8i9LSTD0E51 ugmKZRi/rNdY66Bz/qj8qDXdgUr/yzUOQ8HWvfVDzte1BrD03jCsDfTLrr0wbSd/N3B3 aqLw== X-Gm-Message-State: ALoCoQlN/VdlLQBYBRELwyb8jdAoDH3O2cxXdu9WMxwdfeIHQ69vgh/KvKpXN2UqZL7NAAlUXLSO X-Received: by 10.236.142.101 with SMTP id h65mr344451yhj.1.1395410832200; Fri, 21 Mar 2014 07:07:12 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.93.194 with SMTP id d60ls629323qge.22.gmail; Fri, 21 Mar 2014 07:07:12 -0700 (PDT) X-Received: by 10.220.68.83 with SMTP id u19mr175509vci.52.1395410832104; Fri, 21 Mar 2014 07:07:12 -0700 (PDT) Received: from mail-ve0-f174.google.com (mail-ve0-f174.google.com [209.85.128.174]) by mx.google.com with ESMTPS id sa10si1179101vdc.121.2014.03.21.07.07.12 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 21 Mar 2014 07:07:12 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.128.174 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.128.174; Received: by mail-ve0-f174.google.com with SMTP id oz11so2600050veb.33 for ; Fri, 21 Mar 2014 07:07:12 -0700 (PDT) X-Received: by 10.221.44.8 with SMTP id ue8mr74956vcb.55.1395410831980; Fri, 21 Mar 2014 07:07:11 -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 i9csp33519vck; Fri, 21 Mar 2014 07:07:08 -0700 (PDT) X-Received: by 10.66.122.1 with SMTP id lo1mr2486309pab.118.1395410827874; Fri, 21 Mar 2014 07:07:07 -0700 (PDT) Received: from mail.openembedded.org (mail.openembedded.org. [140.211.169.62]) by mx.google.com with ESMTP id bo2si3764109pbc.279.2014.03.21.07.07.07 for ; Fri, 21 Mar 2014 07:07:07 -0700 (PDT) Received-SPF: pass (google.com: domain of openembedded-devel-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 C33EF6FA0B; Fri, 21 Mar 2014 14:07:02 +0000 (UTC) X-Original-To: openembedded-devel@lists.openembedded.org Delivered-To: openembedded-devel@lists.openembedded.org Received: from arroyo.ext.ti.com (arroyo.ext.ti.com [192.94.94.40]) by mail.openembedded.org (Postfix) with ESMTP id D02D96FA0B for ; Fri, 21 Mar 2014 14:06:58 +0000 (UTC) Received: from dflxv15.itg.ti.com ([128.247.5.124]) by arroyo.ext.ti.com (8.13.7/8.13.7) with ESMTP id s2LE6wka024733 for ; Fri, 21 Mar 2014 09:06:58 -0500 Received: from DFLE73.ent.ti.com (dfle73.ent.ti.com [128.247.5.110]) by dflxv15.itg.ti.com (8.14.3/8.13.8) with ESMTP id s2LE6weC020370 for ; Fri, 21 Mar 2014 09:06:58 -0500 Received: from dlep33.itg.ti.com (157.170.170.75) by DFLE73.ent.ti.com (128.247.5.110) with Microsoft SMTP Server id 14.3.174.1; Fri, 21 Mar 2014 09:06:58 -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 s2LE6tI1006477; Fri, 21 Mar 2014 09:06:57 -0500 From: Chase Maupin To: Date: Fri, 21 Mar 2014 09:06:53 -0500 Message-ID: <1395410813-10461-1-git-send-email-Chase.Maupin@ti.com> X-Mailer: git-send-email 1.7.9.5 MIME-Version: 1.0 Subject: [oe] [PATCHv2] pm-qa: Add power management test utils X-BeenThere: openembedded-devel@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list Reply-To: openembedded-devel@lists.openembedded.org List-Id: List-Unsubscribe: , List-Archive: List-Post: , List-Help: , List-Subscribe: , Sender: openembedded-devel-bounces@lists.openembedded.org Errors-To: openembedded-devel-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.128.174 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 --- * Updated in version 2 * Updated version to 0.4.8 to address feedback from Fathi Boudra * Removed reference to Linaro in DESCRIPTION field to address feedback from Fathi Boudra * Changed installation directory for helper scripts to ${libdir}/${PN} instead of ${bindir}/linaro-pm-qa-include as per feedback from Koen Kooi * Changed name of the package to pm-qa instead of pm-qa-utils to bring the name in line with the name at he SRC_URI, etc. This addresses feedback from Koen Kooi * Updated comments to reflect the above changes --- meta-oe/recipes-devtools/pm-qa/pm-qa_git.bb | 65 +++++++++++++++++++++++++++ 1 file changed, 65 insertions(+) create mode 100644 meta-oe/recipes-devtools/pm-qa/pm-qa_git.bb diff --git a/meta-oe/recipes-devtools/pm-qa/pm-qa_git.bb b/meta-oe/recipes-devtools/pm-qa/pm-qa_git.bb new file mode 100644 index 0000000..4d33975 --- /dev/null +++ b/meta-oe/recipes-devtools/pm-qa/pm-qa_git.bb @@ -0,0 +1,65 @@ +DESCRIPTION = "Utilities 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.8" + +BRANCH ?= "master" + +# Corresponds to tag pm-qa-v0.4.8 +SRCREV = "6a8c2ae8a6035b15a7fbe61b6ca56841e056fa37" + +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}${libdir}/${PN} + + # Install the compiled binaries that 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 a subdirectory of $libdir + 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}${libdir}/${PN}/${script_basename} + done + + # Install the shell scripts NOT in the $libdir 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 $libdir + # directory then change the source path to the absolute path + # to reflect the install location of the helper scripts. + sed -i -e "s#source ../include#source ${libdir}/${PN}#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 +}