From patchwork Tue Mar 18 13:44:07 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chase Maupin X-Patchwork-Id: 26494 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-pd0-f198.google.com (mail-pd0-f198.google.com [209.85.192.198]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 3AE95202FA for ; Tue, 18 Mar 2014 13:44:22 +0000 (UTC) Received: by mail-pd0-f198.google.com with SMTP id fp1sf17025998pdb.5 for ; Tue, 18 Mar 2014 06:44:21 -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=9CqdrWBu4R+vodo7mCizwE9zFEaEwgI4QRENGEKFlMo=; b=liIORalviiDq+OyiAe+oceI/FcUjQ2D/4rk9BToouTkLM9g0y1SIY7R56bBRoTtJrs BQ8riIqXUtt/+LmDhTLmhxnALpNJhYdmwljb7Uyv54+mDTH/Kds0iMUcE+OongsPC9+K 2umvATWCWKvWZPMYyGP5gGH9Hb4qW3Hj1B9x2HT6lPViJEKOLj9HL0cEpxtQRSvT+yDb oD9tXsmDL+zqM+LU/rAurAUIuWn/FMOI/5wfLRt6Pl6ehwV3S+ENCVDIQQ+NlotlOdUu hzv7MAkkag+NJCjX/q99yrUJ1xxcHxWkhRgYodW8qSv7wl4v0E4pjowNi74Lv1QBiDu+ vaSw== X-Gm-Message-State: ALoCoQloBajZVf+W6Bhx++yRj3BulUWjITGidfeRtqINLcJcRRUTBzFkqXqsJg18FxdgC4wHQrCF X-Received: by 10.69.29.33 with SMTP id jt1mr11721358pbd.7.1395150261405; Tue, 18 Mar 2014 06:44:21 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.39.100 with SMTP id u91ls273784qgu.74.gmail; Tue, 18 Mar 2014 06:44:21 -0700 (PDT) X-Received: by 10.58.202.106 with SMTP id kh10mr4126758vec.31.1395150261137; Tue, 18 Mar 2014 06:44:21 -0700 (PDT) Received: from mail-vc0-f172.google.com (mail-vc0-f172.google.com [209.85.220.172]) by mx.google.com with ESMTPS id ug9si6487421vcb.32.2014.03.18.06.44.21 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 18 Mar 2014 06:44:21 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.220.172 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.172; Received: by mail-vc0-f172.google.com with SMTP id la4so7360974vcb.3 for ; Tue, 18 Mar 2014 06:44:21 -0700 (PDT) X-Received: by 10.52.242.167 with SMTP id wr7mr5441917vdc.32.1395150261036; Tue, 18 Mar 2014 06:44:21 -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 i9csp206790vck; Tue, 18 Mar 2014 06:44:20 -0700 (PDT) X-Received: by 10.68.134.198 with SMTP id pm6mr33247878pbb.9.1395150260004; Tue, 18 Mar 2014 06:44:20 -0700 (PDT) Received: from mail.openembedded.org (mail.openembedded.org. [140.211.169.62]) by mx.google.com with ESMTP id wp10si10313970pbc.137.2014.03.18.06.44.19 for ; Tue, 18 Mar 2014 06:44:19 -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 9DA2E6F906; Tue, 18 Mar 2014 13:44:16 +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 3B1086C6EB for ; Tue, 18 Mar 2014 13:44:12 +0000 (UTC) Received: from dlelxv90.itg.ti.com ([172.17.2.17]) by bear.ext.ti.com (8.13.7/8.13.7) with ESMTP id s2IDiDv2016769 for ; Tue, 18 Mar 2014 08:44:13 -0500 Received: from DLEE70.ent.ti.com (dlemailx.itg.ti.com [157.170.170.113]) by dlelxv90.itg.ti.com (8.14.3/8.13.8) with ESMTP id s2IDiDI3000781 for ; Tue, 18 Mar 2014 08:44:13 -0500 Received: from dflp33.itg.ti.com (10.64.6.16) by DLEE70.ent.ti.com (157.170.170.113) with Microsoft SMTP Server id 14.3.174.1; Tue, 18 Mar 2014 08:44:12 -0500 Received: from sdit-build04.dal.design.ti.com (dbdp20.itg.ti.com [172.24.170.38]) by dflp33.itg.ti.com (8.14.3/8.13.8) with ESMTP id s2IDi9vA018843; Tue, 18 Mar 2014 08:44:11 -0500 From: Chase Maupin To: Date: Tue, 18 Mar 2014 08:44:07 -0500 Message-ID: <1395150247-27937-1-git-send-email-Chase.Maupin@ti.com> X-Mailer: git-send-email 1.7.9.5 MIME-Version: 1.0 Subject: [OE-core] [PATCHv2 1/2] 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.172 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 * Changed the recipe name and directory to pm-qa-utils, removing the linaro prefix. --- .../pm-qa-utils/pm-qa-utils_git.bb | 63 ++++++++++++++++++++ 1 file changed, 63 insertions(+) create mode 100644 meta/recipes-devtools/pm-qa-utils/pm-qa-utils_git.bb diff --git a/meta/recipes-devtools/pm-qa-utils/pm-qa-utils_git.bb b/meta/recipes-devtools/pm-qa-utils/pm-qa-utils_git.bb new file mode 100644 index 0000000..610f3a7 --- /dev/null +++ b/meta/recipes-devtools/pm-qa-utils/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 +}