From patchwork Fri Mar 21 13:50:52 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Chase Maupin X-Patchwork-Id: 26844 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-pa0-f69.google.com (mail-pa0-f69.google.com [209.85.220.69]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 15DF420143 for ; Fri, 21 Mar 2014 13:51:00 +0000 (UTC) Received: by mail-pa0-f69.google.com with SMTP id fb1sf5886305pad.8 for ; Fri, 21 Mar 2014 06:51:00 -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:thread-topic :thread-index:date:message-id:references:in-reply-to:accept-language :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-language:content-type:content-transfer-encoding; bh=67P/MCvIjCZV3HW/hlGJMi9y2X352Qz4aPG1MtiU6Co=; b=NtClCifGjXR+dxWqxQnVLPPhZ4grRrPt10jzyJPLW610KwF6bXW107nE/Z9OJRdtRi PyK93pAcuxJFWQIUJVY6MllzQxpy3/PEfVTifJ+MwTDlI/TMWVPcApLXfe4L2lONNsm7 UOYdcERYm83D8gT/l9oWav0QBJ1kfbQsLqHLn7pQPt/OiP9xLQQiCOaW77KrjlEzBRsR DZ37py3YvcmYHg+P375G4e3E1idHGQ3c9CiYc8LjpRbvZuK2vNe4yjmMfRFS72f0cHqp IKkNmEE8b8a2TshTUo/TQzfr6gcljRHM7PfPjoeElMPSxekcudp4sRqqaql4f5LvXl6k Gsjg== X-Gm-Message-State: ALoCoQmSTmZTBFLztSqbwprGE+2atQAaMjLi9KrGB+80Lfev3gatI7eAbnNwwnDuqPE9wCxnqClu X-Received: by 10.66.227.103 with SMTP id rz7mr18680565pac.37.1395409860159; Fri, 21 Mar 2014 06:51:00 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.27.138 with SMTP id 10ls679543qgx.52.gmail; Fri, 21 Mar 2014 06:50:59 -0700 (PDT) X-Received: by 10.58.54.35 with SMTP id g3mr864807vep.46.1395409859906; Fri, 21 Mar 2014 06:50:59 -0700 (PDT) Received: from mail-vc0-f182.google.com (mail-vc0-f182.google.com [209.85.220.182]) by mx.google.com with ESMTPS id sk2si1129429vcb.90.2014.03.21.06.50.59 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 21 Mar 2014 06:50:59 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.220.182 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.182; Received: by mail-vc0-f182.google.com with SMTP id ks9so2647760vcb.27 for ; Fri, 21 Mar 2014 06:50:59 -0700 (PDT) X-Received: by 10.58.57.67 with SMTP id g3mr37118375veq.3.1395409859824; Fri, 21 Mar 2014 06:50:59 -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 i9csp32451vck; Fri, 21 Mar 2014 06:50:59 -0700 (PDT) X-Received: by 10.68.171.4 with SMTP id aq4mr31483675pbc.150.1395409858509; Fri, 21 Mar 2014 06:50:58 -0700 (PDT) Received: from mail.openembedded.org (mail.openembedded.org. [140.211.169.62]) by mx.google.com with ESMTP id zt8si3750879pbc.58.2014.03.21.06.50.57 for ; Fri, 21 Mar 2014 06:50:58 -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 ECD126FA33; Fri, 21 Mar 2014 13:50:55 +0000 (UTC) X-Original-To: openembedded-devel@lists.openembedded.org Delivered-To: openembedded-devel@lists.openembedded.org Received: from comal.ext.ti.com (comal.ext.ti.com [198.47.26.152]) by mail.openembedded.org (Postfix) with ESMTP id 6E2E46FA23 for ; Fri, 21 Mar 2014 13:50:53 +0000 (UTC) Received: from dlelxv90.itg.ti.com ([172.17.2.17]) by comal.ext.ti.com (8.13.7/8.13.7) with ESMTP id s2LDor48020730; Fri, 21 Mar 2014 08:50:53 -0500 Received: from DLEE70.ent.ti.com (dlee70.ent.ti.com [157.170.170.113]) by dlelxv90.itg.ti.com (8.14.3/8.13.8) with ESMTP id s2LDorsV009677; Fri, 21 Mar 2014 08:50:53 -0500 Received: from DLEE11.ent.ti.com ([fe80::40fa:b936:da7c:d113]) by DLEE70.ent.ti.com ([fe80::c4c6:f618:54e7:ad11%28]) with mapi id 14.03.0174.001; Fri, 21 Mar 2014 08:50:53 -0500 From: "Maupin, Chase" To: Fathi Boudra , "openembedded-devel@lists.openembedded.org" Thread-Topic: [oe] [PATCH] pm-qa-utils: Add power management test utils Thread-Index: AQHPRFu6bFD53IzT8kiCJ/XxPOyzM5rrkDNA Date: Fri, 21 Mar 2014 13:50:52 +0000 Message-ID: <7D46E86EC0A8354091174257B2FED1015CF493E6@DLEE11.ent.ti.com> References: <1395326848-4434-1-git-send-email-Chase.Maupin@ti.com> In-Reply-To: Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [128.247.5.50] MIME-Version: 1.0 X-Content-Filtered-By: Mailman/MimeDel 2.1.12 Subject: Re: [oe] [PATCH] pm-qa-utils: 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.220.182 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 Content-Language: en-US From: Fathi Boudra [mailto:fathi.boudra@linaro.org] Sent: Thursday, March 20, 2014 11:45 AM To: openembedded-devel@lists.openembedded.org Cc: Maupin, Chase Subject: Re: [oe] [PATCH] pm-qa-utils: Add power management test utils On 20 March 2014 16:47, Chase Maupin > wrote: * 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 > --- .../pm-qa-utils/pm-qa-utils_git.bb | 63 ++++++++++++++++++++ 1 file changed, 63 insertions(+) create mode 100644 meta-oe/recipes-devtools/pm-qa-utils/pm-qa-utils_git.bb + # 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 we probably need to fix that properly and avoid the LTP style mess (software not meant to be installable). +} -- 1.7.9.5 -- diff --git a/meta-oe/recipes-devtools/pm-qa-utils/pm-qa-utils_git.bb b/meta-oe/recipes-devtools/pm-qa-utils/pm-qa-utils_git.bb new file mode 100644 index 0000000..610f3a7 --- /dev/null +++ b/meta-oe/recipes-devtools/pm-qa-utils/pm-qa-utils_git.bb @@ -0,0 +1,63 @@ +DESCRIPTION = "Utilities from Linaro for testing Power Management" nitpick, I'll remove "from Linaro" :) [CEM] I have another version I need to send so I’ll take care of this. +HOMEPAGE = "https://wiki.linaro.org/WorkingGroups/PowerManagement/Resources/TestSuite/PmQa" + +LICENSE = "GPLv2" +LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263" + +PV = "0.4.4" we released 0.4.8 today. [CEM] I’ll go ahead and bump this +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