From patchwork Wed Aug 20 01:25:33 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Denys Dmytriyenko X-Patchwork-Id: 35680 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-pa0-f72.google.com (mail-pa0-f72.google.com [209.85.220.72]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 6EBD52034C for ; Wed, 20 Aug 2014 02:26:47 +0000 (UTC) Received: by mail-pa0-f72.google.com with SMTP id eu11sf60166054pac.3 for ; Tue, 19 Aug 2014 19:26:44 -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:cc:subject:precedence:reply-to:list-id:list-unsubscribe :list-archive:list-post:list-help:list-subscribe:mime-version:sender :errors-to:x-original-sender:x-original-authentication-results :mailing-list:content-type:content-transfer-encoding; bh=EcKajzQ63/0hTU23YViJWtdVmIs8Q1dOD+iR574brDE=; b=Ln3R4gYEKxXatdWmv4kPxnjnG7cVi9jVqdHsel7X9+hRtV0FmAVfquM6jhravYvmoE Umjmg8vL4oro1lU8Qls4HL9kWRLyxLQNuG6WDJgUXYBd15pMbq/j/JI8TGiI71+kOY5m 6m1c2dM2XbAXqec6cRYJKoPv77cHLYmplOopQ+r1DAroo2hhzizHO366WrwjGBhU11Jw xIi6eb8IouDIDUJfWYEL5wuqRae4+5mucXC+zgk5Lm4W0yOE0DNfVgobHZ5q3cpsg73j PAhGh74vADymVYUqazZ2vEi1dTYbKizvH5lZ5M0S7jQmXOH16U/2oZ6ciwHNpTGWk0Jr 5xiQ== X-Gm-Message-State: ALoCoQkrwawFb0BTZ6gQvOJ+F8sbiMKY21FJUiVwHfubRAbf+mxjma60arHHCXB4GmnPvYJ+fbwf X-Received: by 10.66.161.7 with SMTP id xo7mr24511364pab.14.1408501603214; Tue, 19 Aug 2014 19:26:43 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.105.247 with SMTP id c110ls92433qgf.5.gmail; Tue, 19 Aug 2014 19:26:43 -0700 (PDT) X-Received: by 10.220.182.73 with SMTP id cb9mr34068629vcb.9.1408501603103; Tue, 19 Aug 2014 19:26:43 -0700 (PDT) Received: from mail-vc0-f175.google.com (mail-vc0-f175.google.com [209.85.220.175]) by mx.google.com with ESMTPS id e20si10004322vdj.21.2014.08.19.19.26.43 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 19 Aug 2014 19:26:43 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.175 as permitted sender) client-ip=209.85.220.175; Received: by mail-vc0-f175.google.com with SMTP id ik5so8299618vcb.6 for ; Tue, 19 Aug 2014 19:26:43 -0700 (PDT) X-Received: by 10.220.200.71 with SMTP id ev7mr33685728vcb.24.1408501602948; Tue, 19 Aug 2014 19:26:42 -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.221.45.67 with SMTP id uj3csp17350vcb; Tue, 19 Aug 2014 19:26:42 -0700 (PDT) X-Received: by 10.69.18.11 with SMTP id gi11mr17825635pbd.163.1408501601263; Tue, 19 Aug 2014 19:26:41 -0700 (PDT) Received: from mail.openembedded.org (mail.openembedded.org. [140.211.169.62]) by mx.google.com with ESMTP id fs1si29606579pdb.102.2014.08.19.19.26.40 for ; Tue, 19 Aug 2014 19:26:40 -0700 (PDT) Received-SPF: none (google.com: openembedded-devel-bounces@lists.openembedded.org does not designate permitted sender hosts) client-ip=140.211.169.62; Received: from mail.openembedded.org (localhost [127.0.0.1]) by mail.openembedded.org (Postfix) with ESMTP id 716D5617B8; Wed, 20 Aug 2014 02:26:15 +0000 (UTC) X-Original-To: openembedded-devel@lists.openembedded.org Delivered-To: openembedded-devel@lists.openembedded.org X-Greylist: delayed 3607 seconds by postgrey-1.34 at layers.openembedded.org; Wed, 20 Aug 2014 02:26:12 UTC Received: from vms173019pub.verizon.net (vms173019pub.verizon.net [206.46.173.19]) by mail.openembedded.org (Postfix) with ESMTP id 3BF3C617B8 for ; Wed, 20 Aug 2014 02:26:12 +0000 (UTC) Received: from gandalf.denix.org ([unknown] [108.18.33.160]) by vms173019.mailsrvcs.net (Sun Java(tm) System Messaging Server 7u2-7.02 32bit (built Apr 16 2009)) with ESMTPA id <0NAK008O8ZYQ3ID0@vms173019.mailsrvcs.net> for openembedded-devel@lists.openembedded.org; Tue, 19 Aug 2014 20:25:48 -0500 (CDT) Received: from localhost.localdomain (elrond [192.168.0.7]) by gandalf.denix.org (Postfix) with ESMTP id F00D420092; Tue, 19 Aug 2014 21:25:37 -0400 (EDT) From: Denys Dmytriyenko To: openembedded-devel@lists.openembedded.org Date: Tue, 19 Aug 2014 21:25:33 -0400 Message-id: <1408497933-11310-1-git-send-email-denis@denix.org> X-Mailer: git-send-email 2.0.4 Cc: Denys Dmytriyenko Subject: [oe] [PATCH] ltp-ddt: update to the latest rev, bump the version 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: , MIME-Version: 1.0 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: denis@denix.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.175 as permitted sender) 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 From: Denys Dmytriyenko * Fix KERNEL_DIR vs. KERNEL_INC properly, drop not needed Makefile patch * Pass CC and KERNEL_CC to preserve the necessary system flags * Tons of other fixes and new testcases Signed-off-by: Denys Dmytriyenko --- ...in-modern-kernel-should-point-at-toplevel.patch | 40 ---------------------- .../ltp-ddt/{ltp-ddt_0.0.4.bb => ltp-ddt_0.0.5.bb} | 20 +++++++---- 2 files changed, 14 insertions(+), 46 deletions(-) delete mode 100644 meta-oe/recipes-devtools/ltp-ddt/ltp-ddt/0001-KERNEL_INC-in-modern-kernel-should-point-at-toplevel.patch rename meta-oe/recipes-devtools/ltp-ddt/{ltp-ddt_0.0.4.bb => ltp-ddt_0.0.5.bb} (85%) diff --git a/meta-oe/recipes-devtools/ltp-ddt/ltp-ddt/0001-KERNEL_INC-in-modern-kernel-should-point-at-toplevel.patch b/meta-oe/recipes-devtools/ltp-ddt/ltp-ddt/0001-KERNEL_INC-in-modern-kernel-should-point-at-toplevel.patch deleted file mode 100644 index 0b4ee64..0000000 --- a/meta-oe/recipes-devtools/ltp-ddt/ltp-ddt/0001-KERNEL_INC-in-modern-kernel-should-point-at-toplevel.patch +++ /dev/null @@ -1,40 +0,0 @@ -From e0fc5bea466c16b9d754a8ac8d0453e396678a2c Mon Sep 17 00:00:00 2001 -From: Khem Raj -Date: Wed, 19 Feb 2014 20:28:07 -0800 -Subject: [PATCH] KERNEL_INC in modern kernel should point at toplevel - kerneldir - -Reason is kernel headers are not only in toplevel -include/ but also in toplevel arch/ dir - -Signed-off-by: Khem Raj ---- - Makefile | 6 +++--- - 1 file changed, 3 insertions(+), 3 deletions(-) - -diff --git a/Makefile b/Makefile -index 031d8bc..73e9b3c 100644 ---- a/Makefile -+++ b/Makefile -@@ -245,15 +245,15 @@ endif - - modules_edma: - @echo "Going to compile edma test kernel modules for $(PLATFORM)" -- cd testcases/ddt/edma_test_suite/src/kernel; make CROSS_COMPILE=$(CROSS_COMPILE) KERNEL_DIR=$(KERNEL_INC)/.. PLATFORM=$(PLATFORM) -+ cd testcases/ddt/edma_test_suite/src/kernel; make CROSS_COMPILE=$(CROSS_COMPILE) KERNEL_DIR=$(KERNEL_INC) PLATFORM=$(PLATFORM) - - modules_gpio: - @echo "Going to compile gpio test kernel modules for $(PLATFORM)" -- cd testcases/ddt/gpio_test_suite/src/kernel; make CROSS_COMPILE=$(CROSS_COMPILE) KERNEL_DIR=$(KERNEL_INC)/.. PLATFORM=$(PLATFORM) -+ cd testcases/ddt/gpio_test_suite/src/kernel; make CROSS_COMPILE=$(CROSS_COMPILE) KERNEL_DIR=$(KERNEL_INC) PLATFORM=$(PLATFORM) - - modules_ipc: - @echo "Going to compile IPC test kernel modules for $(PLATFORM)" -- cd testcases/ddt/ipc_test_suite/src/kernel; make CROSS_COMPILE=$(CROSS_COMPILE) KERNEL_DIR=$(KERNEL_INC)/.. PLATFORM=$(PLATFORM) -+ cd testcases/ddt/ipc_test_suite/src/kernel; make CROSS_COMPILE=$(CROSS_COMPILE) KERNEL_DIR=$(KERNEL_INC) PLATFORM=$(PLATFORM) - - modules: $(MODULES_TO_BUILD) - --- -1.9.0 - diff --git a/meta-oe/recipes-devtools/ltp-ddt/ltp-ddt_0.0.4.bb b/meta-oe/recipes-devtools/ltp-ddt/ltp-ddt_0.0.5.bb similarity index 85% rename from meta-oe/recipes-devtools/ltp-ddt/ltp-ddt_0.0.4.bb rename to meta-oe/recipes-devtools/ltp-ddt/ltp-ddt_0.0.5.bb index a70d5b9..d0b84ad 100644 --- a/meta-oe/recipes-devtools/ltp-ddt/ltp-ddt_0.0.4.bb +++ b/meta-oe/recipes-devtools/ltp-ddt/ltp-ddt_0.0.5.bb @@ -3,21 +3,21 @@ HOMEPAGE = "http://arago-project.org/git/projects/test-automation/ltp-ddt.git" SECTION = "console/utils" LICENSE = "GPLv2" LIC_FILES_CHKSUM = "file://COPYING;md5=0636e73ff0215e8d672dc4c32c317bb3" -PR = "r1" PROVIDES += "ltp" DEPENDS += "zip-native virtual/kernel alsa-lib" -inherit autotools module-base kernel-module-split +RDEPENDS_${PN} += "pm-qa" + +inherit autotools-brokensep module-base kernel-module-split PACKAGE_ARCH = "${MACHINE_ARCH}" -SRCREV = "4f77e2e33357d2b23211ecd22f27f521aa01469a" +SRCREV = "088356602220dd8b48aeb138d4976c05c0879574" BRANCH ?= "master" SRC_URI = "git://arago-project.org/git/projects/test-automation/ltp-ddt.git;branch=${BRANCH} \ file://0001-wdt_test_suite-Make-sure-to-include-generated-header.patch \ - file://0001-KERNEL_INC-in-modern-kernel-should-point-at-toplevel.patch \ " S = "${WORKDIR}/git" @@ -28,12 +28,16 @@ EXTRA_OEMAKE_append = " \ prefix=${LTPROOT} \ CROSS_COMPILE=${HOST_PREFIX} \ SKIP_IDCHECK=1 \ + KERNEL_PATH=${STAGING_KERNEL_DIR} \ KERNEL_INC=${STAGING_KERNEL_DIR} \ KERNEL_USR_INC=${STAGING_INCDIR} \ ALSA_INCPATH=${STAGING_INCDIR} \ ALSA_LIBPATH=${STAGING_LIBDIR} \ PLATFORM=${MACHINE} \ RANLIB=${RANLIB} \ + DESTDIR=${D} \ + CC='${CC}' \ + KERNEL_CC='${KERNEL_CC}' \ " TARGET_CC_ARCH += "${LDFLAGS}" @@ -63,12 +67,16 @@ do_configure() { kmoddir = "/lib/modules/${KERNEL_VERSION}/kernel/drivers/ddt" +do_compile_prepend () { + do_make_scripts +} + do_compile_append () { - oe_runmake DESTDIR=${D} modules + oe_runmake modules } do_install() { - oe_runmake DESTDIR=${D} install + oe_runmake install install -d ${D}${datadir} install -d ${D}${kmoddir} cp -a ${D}${LTPROOT}/share/* ${D}${datadir}