mirror of
https://git.yoctoproject.org/poky
synced 2026-04-30 12:32:12 +02:00
build-appliance-image: Add vmx* files and build zip file
This commit adds the vmx* files needed to setup a VMware image, this also packages the vmdk along with the vmx files. (From OE-Core rev: 968cfc0b630fb409430a46b1512d6bf0de225ad1) Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
d13d50a61f
commit
86a6410fcb
@@ -20,7 +20,10 @@ IMAGE_FSTYPES = "vmdk"
|
||||
inherit core-image
|
||||
|
||||
SRCREV = "73cdebf60df225ee10f2eb215935be3b61e1b831"
|
||||
SRC_URI = "git://git.yoctoproject.org/poky;protocol=git"
|
||||
SRC_URI = "git://git.yoctoproject.org/poky;protocol=git \
|
||||
file://Yocto_Build_Appliance.vmx \
|
||||
file://Yocto_Build_Appliance.vmxf \
|
||||
"
|
||||
|
||||
IMAGE_CMD_ext3_append () {
|
||||
# We don't need to reserve much space for root, 0.5% is more than enough
|
||||
@@ -68,3 +71,19 @@ python do_get_poky_src () {
|
||||
bb.build.exec_func('base_do_unpack', d)
|
||||
}
|
||||
addtask do_get_poky_src before do_rootfs
|
||||
|
||||
create_bundle_files () {
|
||||
cd ${WORKDIR}
|
||||
mkdir -p Yocto_Build_Appliance
|
||||
cp *.vmx* Yocto_Build_Appliance
|
||||
ln -sf ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.vmdk Yocto_Build_Appliance/Yocto_Build_Appliance.vmdk
|
||||
zip -r ${DEPLOY_DIR_IMAGE}/Yocto_Build_Appliance-${DATETIME}.zip Yocto_Build_Appliance
|
||||
ln -sf ${DEPLOY_DIR_IMAGE}/Yocto_Build_Appliance-${DATETIME}.zip ${DEPLOY_DIR_IMAGE}/Yocto_Build_Appliance.zip
|
||||
}
|
||||
|
||||
python do_bundle_files() {
|
||||
bb.build.exec_func('create_bundle_files', d)
|
||||
}
|
||||
|
||||
addtask bundle_files after do_vmdkimg before do_build
|
||||
do_bundle_files[nostamp] = "1"
|
||||
|
||||
@@ -0,0 +1,52 @@
|
||||
.encoding = "UTF-8"
|
||||
displayname = "Yocto Build Appliance"
|
||||
guestos = "other"
|
||||
tools.syncTime = "FALSE"
|
||||
virtualhw.version = "8"
|
||||
config.version = "8"
|
||||
numvcpus = "2"
|
||||
cpuid.coresPerSocket = "1"
|
||||
vcpu.hotadd = "TRUE"
|
||||
mem.hotadd = "TRUE"
|
||||
memsize = "4096"
|
||||
svga.autodetect = "TRUE"
|
||||
pciBridge0.present = "TRUE"
|
||||
mks.enable3d = "TRUE"
|
||||
pciBridge4.present = "TRUE"
|
||||
pciBridge4.virtualDev = "pcieRootPort"
|
||||
pciBridge4.functions = "8"
|
||||
pciBridge5.present = "TRUE"
|
||||
pciBridge5.virtualDev = "pcieRootPort"
|
||||
pciBridge5.functions = "8"
|
||||
pciBridge6.present = "TRUE"
|
||||
pciBridge6.virtualDev = "pcieRootPort"
|
||||
pciBridge6.functions = "8"
|
||||
pciBridge7.present = "TRUE"
|
||||
pciBridge7.virtualDev = "pcieRootPort"
|
||||
pciBridge7.functions = "8"
|
||||
vmci0.present = "TRUE"
|
||||
floppy0.present = "TRUE"
|
||||
floppy0.fileType = "device"
|
||||
floppy0.autodetect = "FALSE"
|
||||
floppy0.startConnected = "FALSE"
|
||||
ide1:0.present = "TRUE"
|
||||
ide1:0.deviceType = "atapi-cdrom"
|
||||
ide1:0.autodetect = "TRUE"
|
||||
ide1:0.startConnected = "FALSE"
|
||||
ide0:0.present = "TRUE"
|
||||
ide0:0.deviceType = "disk"
|
||||
ide0:0.fileName = "Yocto_Build_Appliance.vmdk"
|
||||
usb.present = "TRUE"
|
||||
scsi0.virtualDev = "lsilogic"
|
||||
scsi0.present = "TRUE"
|
||||
ethernet0.present = "TRUE"
|
||||
ethernet0.virtualDev = "e1000"
|
||||
ethernet0.connectionType = "nat"
|
||||
ethernet0.startConnected = "TRUE"
|
||||
ethernet0.addressType = "generated"
|
||||
sound.present = "TRUE"
|
||||
sound.virtualDev = "es1371"
|
||||
sound.autodetect = "TRUE"
|
||||
extendedConfigFile = "Yocto_Build_Appliance.vmxf"
|
||||
sound.fileName = "-1"
|
||||
virtualHW.productCompatibility = "hosted"
|
||||
@@ -0,0 +1,8 @@
|
||||
<?xml version="1.0"?>
|
||||
<Foundry>
|
||||
<VM>
|
||||
<VMId type="string">52 e4 0b df 7b 70 21 f8-88 56 a7 26 47 43 95 93</VMId>
|
||||
<ClientMetaData>
|
||||
<clientMetaDataAttributes/>
|
||||
<HistoryEventList/></ClientMetaData>
|
||||
<vmxPathName type="string">Yocto_Build_Appliance.vmx</vmxPathName></VM></Foundry>
|
||||
Reference in New Issue
Block a user