From patchwork Fri Nov 21 13:16:56 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ian Campbell X-Patchwork-Id: 41306 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wi0-f200.google.com (mail-wi0-f200.google.com [209.85.212.200]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 5C32B244B0 for ; Fri, 21 Nov 2014 13:18:48 +0000 (UTC) Received: by mail-wi0-f200.google.com with SMTP id ex7sf3315957wid.3 for ; Fri, 21 Nov 2014 05:18:46 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:from:to:date:message-id:in-reply-to :references:mime-version:cc:subject:precedence:list-id :list-unsubscribe:list-post:list-help:list-subscribe:content-type :content-transfer-encoding:sender:errors-to:x-original-sender :x-original-authentication-results:mailing-list:list-archive; bh=2VHDLwgcTzqcUogeDxVHTXuipMJaFFQ6ZMfACLUKKTI=; b=WTeW2gDW6vJCqNQVTWno49gzp83E0f3F8rLUZ074zjFnBT0ALP5JYca7tw9sJjku+K 07+Kign5rU9Bm+eJeR90h2STzjlHhLIjSDNE+GVSxcgLvPkTwEd7/+oFyGI6TDoYZu6L An7EKrnkpOWkRovJKs7lDbpmb4NhsrdyOigxG2GrGsRnGS3gl94hUdZqC7Udz7dCPxYK SUAl38pGhlt+kphTlo6gzKHxo1H5ZogERMfuXZrhBvmy8yfKiet5dhilsRqkeIoaPZcN FjFDZVaaFqr2bfI7ZY2pJFr7FHsJtfh7vtoXaf/jNoHaMoWQsLQrot0K1EfB9zrw4oqg be/w== X-Gm-Message-State: ALoCoQkhyp248R2j4EKoiO4cU8AbaDoM1KTZxwMBf4Hch6BL3kQGlL6EeiaEULcsBZSLVGdUQJtY X-Received: by 10.112.168.228 with SMTP id zz4mr564385lbb.7.1416575926210; Fri, 21 Nov 2014 05:18:46 -0800 (PST) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.21.135 with SMTP id v7ls199437lae.40.gmail; Fri, 21 Nov 2014 05:18:45 -0800 (PST) X-Received: by 10.112.168.97 with SMTP id zv1mr4641307lbb.6.1416575925770; Fri, 21 Nov 2014 05:18:45 -0800 (PST) Received: from mail-la0-f52.google.com (mail-la0-f52.google.com. [209.85.215.52]) by mx.google.com with ESMTPS id j1si3803784lah.68.2014.11.21.05.18.45 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 21 Nov 2014 05:18:45 -0800 (PST) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.52 as permitted sender) client-ip=209.85.215.52; Received: by mail-la0-f52.google.com with SMTP id q1so4120909lam.25 for ; Fri, 21 Nov 2014 05:18:44 -0800 (PST) X-Received: by 10.152.87.100 with SMTP id w4mr4377421laz.27.1416575924913; Fri, 21 Nov 2014 05:18:44 -0800 (PST) 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.112.184.201 with SMTP id ew9csp87156lbc; Fri, 21 Nov 2014 05:18:44 -0800 (PST) X-Received: by 10.52.237.131 with SMTP id vc3mr3864781vdc.12.1416575916666; Fri, 21 Nov 2014 05:18:36 -0800 (PST) Received: from lists.xen.org (lists.xen.org. [50.57.142.19]) by mx.google.com with ESMTPS id ej8si2260624vdb.57.2014.11.21.05.18.36 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Fri, 21 Nov 2014 05:18:36 -0800 (PST) Received-SPF: none (google.com: xen-devel-bounces@lists.xen.org does not designate permitted sender hosts) client-ip=50.57.142.19; Received: from localhost ([127.0.0.1] helo=lists.xen.org) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1Xro5L-0007Gt-Su; Fri, 21 Nov 2014 13:17:15 +0000 Received: from mail6.bemta14.messagelabs.com ([193.109.254.103]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1Xro5K-0007GL-PR for xen-devel@lists.xen.org; Fri, 21 Nov 2014 13:17:14 +0000 Received: from [193.109.254.147] by server-15.bemta-14.messagelabs.com id 68/B9-02699-A5B3F645; Fri, 21 Nov 2014 13:17:14 +0000 X-Env-Sender: Ian.Campbell@citrix.com X-Msg-Ref: server-13.tower-27.messagelabs.com!1416575827!13996777!4 X-Originating-IP: [66.165.176.89] X-SpamReason: No, hits=0.0 required=7.0 tests=sa_preprocessor: VHJ1c3RlZCBJUDogNjYuMTY1LjE3Ni44OSA9PiAyMDMwMDc=\n X-StarScan-Received: X-StarScan-Version: 6.12.4; banners=-,-,- X-VirusChecked: Checked Received: (qmail 29045 invoked from network); 21 Nov 2014 13:17:13 -0000 Received: from smtp.citrix.com (HELO SMTP.CITRIX.COM) (66.165.176.89) by server-13.tower-27.messagelabs.com with RC4-SHA encrypted SMTP; 21 Nov 2014 13:17:13 -0000 X-IronPort-AV: E=Sophos;i="5.07,431,1413244800"; d="scan'208";a="193695895" Received: from ukmail1.uk.xensource.com (10.80.16.128) by smtprelay.citrix.com (10.13.107.78) with Microsoft SMTP Server id 14.3.181.6; Fri, 21 Nov 2014 08:17:12 -0500 Received: from kazak.uk.xensource.com ([10.80.2.80] helo=zakaz.uk.xensource.com) by ukmail1.uk.xensource.com with smtp (Exim 4.69) (envelope-from ) id 1Xro5H-0003Ai-44; Fri, 21 Nov 2014 13:17:12 +0000 Received: by zakaz.uk.xensource.com (sSMTP sendmail emulation); Fri, 21 Nov 2014 13:17:11 +0000 From: Ian Campbell To: Date: Fri, 21 Nov 2014 13:16:56 +0000 Message-ID: <1416575824-15555-7-git-send-email-ian.campbell@citrix.com> X-Mailer: git-send-email 2.1.1 In-Reply-To: <1416505070.26869.2.camel@citrix.com> References: <1416505070.26869.2.camel@citrix.com> MIME-Version: 1.0 X-DLP: MIA1 Cc: Ian Campbell , xen-devel@lists.xen.org Subject: [Xen-devel] [PATCH OSSTEST v3 07/15] Osstest/Debian: Install dtbs into target filesystem in /boot/dtbs X-BeenThere: xen-devel@lists.xen.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Post: , List-Help: , List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: ian.campbell@citrix.com X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.52 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 List-Archive: This is done whenever dtbs.tar.gz exists. mg-debian-installer-update produces the necessary inputs on the relevant platform (armhf). Signed-off-by: Ian Campbell --- v3: More careful check/stat for existence of dtbs.tar.gz v2: Install dtbs iff dtbs.tar.gz exists. --- Osstest/Debian.pm | 28 +++++++++++++++++++++++++--- 1 file changed, 25 insertions(+), 3 deletions(-) diff --git a/Osstest/Debian.pm b/Osstest/Debian.pm index 33a4ca4..1b4d7a7 100644 --- a/Osstest/Debian.pm +++ b/Osstest/Debian.pm @@ -20,6 +20,8 @@ package Osstest::Debian; use strict; use warnings; +use POSIX; + use IO::File; use File::Copy; @@ -514,6 +516,9 @@ sub preseed_create ($$;@) { my $disk= $xopts{DiskDevice} || '/dev/sda'; my $suite= $xopts{Suite} || $c{DebianSuite}; + my $d_i= $ho->{Tftp}{Path}.'/'.$ho->{Tftp}{DiBase}.'/'.$r{arch}.'/'. + $c{TftpDiVersion}.'-'.$ho->{Suite}; + my $hostsq= $dbh_tests->prepare(<{Flags} }) { $kp =~ s/need-kernel-deb-// or next; - my $d_i= $ho->{Tftp}{Path}.'/'.$ho->{Tftp}{DiBase}.'/'.$r{arch}.'/'. - $c{TftpDiVersion}.'-'.$ho->{Suite}; - my $kurl = create_webfile($ho, "kernel", sub { copy("$d_i/$kp.deb", $_[0]) or die "Copy kernel failed: $!";