Add product.img support for arm templates
This commit is contained in:
		
							parent
							
								
									86ee799ea1
								
							
						
					
					
						commit
						142b23b64e
					
				| @ -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 | ||||
| 
 | ||||
|  | ||||
| @ -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 | ||||
| 
 | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user