From patchwork Fri Oct 10 12:02:30 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ian Campbell X-Patchwork-Id: 38577 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-la0-f71.google.com (mail-la0-f71.google.com [209.85.215.71]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 5CA0D202DB for ; Fri, 10 Oct 2014 12:03:55 +0000 (UTC) Received: by mail-la0-f71.google.com with SMTP id gi9sf2055585lab.2 for ; Fri, 10 Oct 2014 05:03:54 -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:from:to:date:message-id:in-reply-to :references:mime-version:cc:subject:precedence:list-id :list-unsubscribe:list-post:list-help:list-subscribe:sender :errors-to:x-original-sender:x-original-authentication-results :mailing-list:list-archive:content-type:content-transfer-encoding; bh=pDl1gX4231tOprUZDUskfj8MUvtaKzJGASleRhTgWRU=; b=Qt0niZ7z2mdEGbqMYvVn4JpFO0TXzH/1xNs+L3PoXW2EDgy8TrWHXIsDIVA3Fwolod vOCaf4woSEL8F/5uWzb+VDcyu8ALSQv/23a7dws7jGtTcV1tuVBa7NpHLdyDNJrfmPos Ay/OB9RPqqe1gau/CE3AasOZJPjVdjG3xLM52ZJ6GY+bH7GYC/0VZ1yQgTfHRjRSWS/q GrunokJVyJGx7l4FkmjlLvnnctknDu+C5dh4vcWCYwtdveeXRCKezzR4f5gnlNtNv58D e5aa8ebZTU0vo06kl8qANl9GTteDxGa3bdw/I3/hPxCwaGl9dwSL0FZUVrElt1+ZCpen ylQw== X-Gm-Message-State: ALoCoQk+OiZuYTLhXGL4J+IEF5VLsIGpBLVwEounfeDCXkzBlWUbvIRo9eyOWNFVI9Nyf9dLFAJe X-Received: by 10.152.5.137 with SMTP id s9mr605las.10.1412942631317; Fri, 10 Oct 2014 05:03:51 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.26.72 with SMTP id j8ls237425lag.105.gmail; Fri, 10 Oct 2014 05:03:51 -0700 (PDT) X-Received: by 10.112.219.3 with SMTP id pk3mr4371233lbc.14.1412942631169; Fri, 10 Oct 2014 05:03:51 -0700 (PDT) Received: from mail-la0-f43.google.com (mail-la0-f43.google.com [209.85.215.43]) by mx.google.com with ESMTPS id f7si8905608laa.67.2014.10.10.05.03.51 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 10 Oct 2014 05:03:51 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.43 as permitted sender) client-ip=209.85.215.43; Received: by mail-la0-f43.google.com with SMTP id mc6so3113910lab.16 for ; Fri, 10 Oct 2014 05:03:51 -0700 (PDT) X-Received: by 10.152.19.195 with SMTP id h3mr4286929lae.71.1412942631085; Fri, 10 Oct 2014 05:03:51 -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.112.84.229 with SMTP id c5csp414361lbz; Fri, 10 Oct 2014 05:03:50 -0700 (PDT) X-Received: by 10.53.13.227 with SMTP id fb3mr3462386vdd.18.1412942627946; Fri, 10 Oct 2014 05:03:47 -0700 (PDT) Received: from lists.xen.org (lists.xen.org. [50.57.142.19]) by mx.google.com with ESMTPS id b5si10753293qcp.29.2014.10.10.05.03.47 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Fri, 10 Oct 2014 05:03:47 -0700 (PDT) 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 1XcYuL-0002Qp-TP; Fri, 10 Oct 2014 12:02:53 +0000 Received: from mail6.bemta4.messagelabs.com ([85.158.143.247]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1XcYuK-0002PV-Ow for xen-devel@lists.xen.org; Fri, 10 Oct 2014 12:02:52 +0000 Received: from [85.158.143.35:41798] by server-2.bemta-4.messagelabs.com id 14/8C-04525-CEAC7345; Fri, 10 Oct 2014 12:02:52 +0000 X-Env-Sender: Ian.Campbell@citrix.com X-Msg-Ref: server-3.tower-21.messagelabs.com!1412942558!11748672!7 X-Originating-IP: [66.165.176.63] X-SpamReason: No, hits=0.0 required=7.0 tests=sa_preprocessor: VHJ1c3RlZCBJUDogNjYuMTY1LjE3Ni42MyA9PiAzMDYwNDg=\n X-StarScan-Received: X-StarScan-Version: 6.12.3; banners=-,-,- X-VirusChecked: Checked Received: (qmail 10990 invoked from network); 10 Oct 2014 12:02:51 -0000 Received: from smtp02.citrix.com (HELO SMTP02.CITRIX.COM) (66.165.176.63) by server-3.tower-21.messagelabs.com with RC4-SHA encrypted SMTP; 10 Oct 2014 12:02:51 -0000 X-IronPort-AV: E=Sophos;i="5.04,691,1406592000"; d="scan'208";a="181281254" 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, 10 Oct 2014 08:02:50 -0400 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 1XcYuH-0008U3-F6; Fri, 10 Oct 2014 13:02:50 +0100 Received: by zakaz.uk.xensource.com (sSMTP sendmail emulation); Fri, 10 Oct 2014 13:02:49 +0100 From: Ian Campbell To: Date: Fri, 10 Oct 2014 13:02:30 +0100 Message-ID: <1412942554-752-15-git-send-email-ian.campbell@citrix.com> X-Mailer: git-send-email 2.1.0 In-Reply-To: <1412942404.27111.12.camel@citrix.com> References: <1412942404.27111.12.camel@citrix.com> MIME-Version: 1.0 X-DLP: MIA1 Cc: Ian Campbell , xen-devel@lists.xen.org Subject: [Xen-devel] [PATCH RFC OSSTEST 15/19] Osstest/Debian: Add support for "ExtraInitramfsModules" host property 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.43 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: The arndale platform needs a bunch of clk, phy and regulator stuff in order to access its root filesystem. However mkinitramfs is not (currently?) able to figure this out and therefore doesn't include them in the initrd. Add a new host prop which can list these required additional module and arranges for a suitable /etc/initramfs-tools/modules to be created on install. Using the new HostGroupProp syntax the required modules are: HostGroupProp_arndale_ExtraInitramfsModules clk-s2mps11 s5m8767 i2c-s3c2410 phy-exynos5250-sata Signed-off-by: Ian Campbell --- Osstest/Debian.pm | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/Osstest/Debian.pm b/Osstest/Debian.pm index 19d6a22..97a6cda 100644 --- a/Osstest/Debian.pm +++ b/Osstest/Debian.pm @@ -708,6 +708,20 @@ in-target mkimage -A arm -T script -d /boot/boot /boot/boot.scr END } + my $modules = get_host_property($ho, "ExtraInitramfsModules", "NONE"); + if ( $modules ne "NONE" ) + { + preseed_hook_command($ho, 'late_command', $sfx, <> /target/etc/initramfs-tools/modules +done +in-target update-initramfs -u -k all +END + } + my @extra_packages = (); push(@extra_packages, "u-boot-tools") if $ho->{Flags}{'need-uboot-bootscr'};