make templates install upgrade.img

This commit is contained in:
Will Woods 2012-11-13 01:33:17 -05:00 committed by Dennis Gilmore
parent b5eb38ae97
commit 88f027d506
4 changed files with 26 additions and 2 deletions

View File

@ -32,7 +32,11 @@ mkdir ${KERNELDIR}
installkernel images-${kernel.flavor}-${basearch} ${kernel.path} ${KERNELDIR}/vmlinuz-${kernel.flavor} installkernel images-${kernel.flavor}-${basearch} ${kernel.path} ${KERNELDIR}/vmlinuz-${kernel.flavor}
installinitrd images-${kernel.flavor}-${basearch} ${kernel.initrd.path} ${KERNELDIR}/initrd-${kernel.flavor}.img installinitrd images-${kernel.flavor}-${basearch} ${kernel.initrd.path} ${KERNELDIR}/initrd-${kernel.flavor}.img
# create U-Boot wrapped images ## install upgrader image
install ${kernel.upgrader.img} ${KERNELDIR}/upgrade-${kernel.flavor}.img
treeinfo images-${kernel.flavor}-${basearch} upgrade ${KERNELDIR}/upgrade-${kernel.flavor}.img
## create U-Boot wrapped images
runcmd mkimage \ runcmd mkimage \
-A arm -O linux -T ramdisk -C none \ -A arm -O linux -T ramdisk -C none \
@ -55,7 +59,11 @@ mkdir ${KERNELDIR}
installkernel images-${basearch} ${kernel.path} ${KERNELDIR}/vmlinuz installkernel images-${basearch} ${kernel.path} ${KERNELDIR}/vmlinuz
installinitrd images-${basearch} ${kernel.initrd.path} ${KERNELDIR}/initrd.img installinitrd images-${basearch} ${kernel.initrd.path} ${KERNELDIR}/initrd.img
# create U-Boot wrapped images ## install upgrader image
install ${kernel.upgrader.img} ${KERNELDIR}/upgrade.img
treeinfo images-${basearch} upgrade ${KERNELDIR}/upgrade.img
## create U-Boot wrapped images
runcmd mkimage \ runcmd mkimage \
-A arm -O linux -T ramdisk -C none \ -A arm -O linux -T ramdisk -C none \

View File

@ -66,6 +66,10 @@ install ${configdir}/magic ${BOOTDIR}
installkernel images-${kernel.arch} ${kernel.path} ${KERNELDIR}/vmlinuz installkernel images-${kernel.arch} ${kernel.path} ${KERNELDIR}/vmlinuz
installinitrd images-${kernel.arch} ${kernel.initrd.path} ${KERNELDIR}/initrd.img installinitrd images-${kernel.arch} ${kernel.initrd.path} ${KERNELDIR}/initrd.img
## upgrader image
install ${kernel.upgrader.path} ${KERNELDIR}/upgrade.img
treeinfo images-${kernel.arch} upgrade ${KERNELDIR}/upgrade.img
## install arch-specific bootloader config ## install arch-specific bootloader config
install ${configdir}/yaboot.conf.in ${KERNELDIR}/yaboot.conf install ${configdir}/yaboot.conf.in ${KERNELDIR}/yaboot.conf
replace @BITS@ ${bits} ${KERNELDIR}/yaboot.conf replace @BITS@ ${bits} ${KERNELDIR}/yaboot.conf

View File

@ -24,6 +24,10 @@ replace @INITRD_LOAD_ADDRESS@ ${INITRD_ADDRESS} generic.ins
installkernel images-${basearch} ${kernel.path} ${KERNELDIR}/kernel.img installkernel images-${basearch} ${kernel.path} ${KERNELDIR}/kernel.img
installinitrd images-${basearch} ${kernel.initrd.path} ${KERNELDIR}/initrd.img installinitrd images-${basearch} ${kernel.initrd.path} ${KERNELDIR}/initrd.img
## upgrader image
install ${kernel.upgrade.img} ${KERNELDIR}/upgrade.img
treeinfo images-${basearch} upgrade ${KERNELDIR}/upgrade.img
## s390 needs some extra boot config ## s390 needs some extra boot config
createaddrsize ${INITRD_ADDRESS} ${outroot}/${BOOTDIR}/initrd.img ${outroot}/${BOOTDIR}/initrd.addrsize createaddrsize ${INITRD_ADDRESS} ${outroot}/${BOOTDIR}/initrd.img ${outroot}/${BOOTDIR}/initrd.addrsize

View File

@ -31,19 +31,27 @@ replace @ROOT@ 'inst.stage2=hd:LABEL=${isolabel|udev}' ${BOOTDIR}/isolinux.cfg
mkdir ${KERNELDIR} mkdir ${KERNELDIR}
%for kernel in kernels: %for kernel in kernels:
%if kernel.flavor: %if kernel.flavor:
## i386 PAE
installkernel images-xen ${kernel.path} ${KERNELDIR}/vmlinuz-${kernel.flavor} installkernel images-xen ${kernel.path} ${KERNELDIR}/vmlinuz-${kernel.flavor}
installinitrd images-xen ${kernel.initrd.path} ${KERNELDIR}/initrd-${kernel.flavor}.img installinitrd images-xen ${kernel.initrd.path} ${KERNELDIR}/initrd-${kernel.flavor}.img
install ${kernel.upgrade.path} ${KERNELDIR}/upgrade-${kernel.flavor}.img
treeinfo images-xen upgrade ${KERNELDIR}/upgrade-${kernel.flavor}.img
%else: %else:
## normal i386, x86_64
installkernel images-${basearch} ${kernel.path} ${KERNELDIR}/vmlinuz installkernel images-${basearch} ${kernel.path} ${KERNELDIR}/vmlinuz
installinitrd images-${basearch} ${kernel.initrd.path} ${KERNELDIR}/initrd.img installinitrd images-${basearch} ${kernel.initrd.path} ${KERNELDIR}/initrd.img
install ${kernel.upgrade.path} ${KERNELDIR}/upgrade.img
treeinfo images-${basearch} upgrade ${KERNELDIR}/upgrade.img
%endif %endif
%endfor %endfor
hardlink ${KERNELDIR}/vmlinuz ${BOOTDIR} hardlink ${KERNELDIR}/vmlinuz ${BOOTDIR}
hardlink ${KERNELDIR}/initrd.img ${BOOTDIR} hardlink ${KERNELDIR}/initrd.img ${BOOTDIR}
hardlink ${KERNELDIR}/upgrade.img ${BOOTDIR}
%if basearch == 'x86_64': %if basearch == 'x86_64':
treeinfo images-xen kernel ${KERNELDIR}/vmlinuz treeinfo images-xen kernel ${KERNELDIR}/vmlinuz
treeinfo images-xen initrd ${KERNELDIR}/initrd.img treeinfo images-xen initrd ${KERNELDIR}/initrd.img
treeinfo images-xen upgrade ${KERNELDIR}/upgrade.img
%endif %endif
## WHeeeeeeee, EFI. ## WHeeeeeeee, EFI.