]> xenbits.xensource.com Git - people/dariof/osstest.git/commitdiff
ts-host-install: Add fdtdir to PXE stanza if dtbs directory exists
authorIan Campbell <ian.campbell@citrix.com>
Wed, 29 Oct 2014 10:41:26 +0000 (10:41 +0000)
committerIan Campbell <ian.campbell@citrix.com>
Wed, 29 Oct 2014 16:49:14 +0000 (16:49 +0000)
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 <ian.campbell@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
ts-host-install

index 95ce845b020af8b6504c78be502878dcdd4268f4..90058e381724d21727a307ff2230b2a75200e669 100755 (executable)
@@ -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
 }