Add product.img support for arm templates

This commit is contained in:
Brian C. Lane 2014-11-06 09:16:49 -08:00
parent 86ee799ea1
commit 142b23b64e
2 changed files with 16 additions and 0 deletions

View File

@ -6,6 +6,7 @@ DTBDIR="images/pxeboot/dtb"
BOOTDIR="boot"
KERNELDIR=PXEBOOTDIR
LIVEDIR="LiveOS"
LORAXDIR="usr/share/lorax/"
# different platforms use different kernel load addresses.
# include a 'baseline' kernel for no 'flavor'.
@ -114,6 +115,13 @@ mkdir ${KERNELDIR}
# add platform to treeinfo for Beaker support
treeinfo ${basearch} platforms ${platforms}
# Create optional product.img and updates.img
<% images=["product", "updates"] %>
%for img in images:
%if exists("%s/%s/" % (LORAXDIR, img)):
installimg ${LORAXDIR}/${img}/ images/${img}.img
%endif
%endfor
## FIXME: ARM may need some extra boot config

View File

@ -5,6 +5,7 @@ PXEBOOTDIR="images/pxeboot"
BOOTDIR="boot"
KERNELDIR=PXEBOOTDIR
LIVEDIR="LiveOS"
LORAXDIR="usr/share/lorax/"
# different platforms use different kernel load addresses.
# include a 'baseline' kernel for no 'flavor'.
@ -69,6 +70,13 @@ mkdir ${KERNELDIR}
%endif
%endfor
# Create optional product.img and updates.img
<% images=["product", "updates"] %>
%for img in images:
%if exists("%s/%s/" % (LORAXDIR, img)):
installimg ${LORAXDIR}/${img}/ images/${img}.img
%endif
%endfor
## FIXME: ARM may need some extra boot config