From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ian Campbell Subject: [PATCH OSSTEST v2 04/20] ts-host-install: Add fdtdir to PXE stanza if dtbs directory exists Date: Wed, 29 Oct 2014 10:41:26 +0000 Message-ID: <1414579302-6692-4-git-send-email-ian.campbell@citrix.com> References: <1414579268.29975.13.camel@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1414579268.29975.13.camel@citrix.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: ian.jackson@eu.citrix.com Cc: Ian Campbell , xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org u-boot's pxe client uses this together with $fdtfile in its local environment to automatically load the fdt when pxe booting. Signed-off-by: Ian Campbell Acked-by: Ian Jackson --- v2: Place if on the next line --- ts-host-install | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ts-host-install b/ts-host-install index 95ce845..90058e3 100755 --- a/ts-host-install +++ b/ts-host-install @@ -188,6 +188,9 @@ SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="$ho->{Ether}", A END } + my $dtbs = "fdtdir /$d_i/dtbs" + if -e "$ho->{Tftp}{Path}/$d_i/dtbs"; + file_simple_write_contents("$initrd_overlay.cpio", sub { contents_make_cpio($_[0], 'newc', "$initrd_overlay.d"); }); @@ -222,6 +225,7 @@ label overwrite kernel $kernel append $installcmdline ipappend $ipappend + $dtbs default overwrite END } -- 2.1.1