New rule to create a VMWare image from the plain Haiku image using Marcus'
vmdkheader tool. New pseudo target haiku-vmware-image to build it. Image default name is "haiku.vmdk", adjustable via the HAIKU_VMWARE_IMAGE_NAME variable. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19982 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -371,3 +371,20 @@ actions BuildHaikuImage1
|
||||
export isImage="$(IS_IMAGE)"
|
||||
$(2[1]) $(2[2-])
|
||||
}
|
||||
|
||||
rule BuildVMWareImage vmwareImage : plainImage : imageSize
|
||||
{
|
||||
# BuildVMWareImage <vmware image> : <plain image> : <image size in MB>
|
||||
|
||||
IMAGE_SIZE on $(vmwareImage) = $(imageSize) ;
|
||||
|
||||
Depends $(vmwareImage) : <build>vmdkheader $(plainImage) ;
|
||||
BuildVMWareImage1 $(vmwareImage) : <build>vmdkheader $(plainImage) ;
|
||||
}
|
||||
|
||||
actions BuildVMWareImage1
|
||||
{
|
||||
rm -f $(1)
|
||||
$(2[1]) -h 64k -i$(IMAGE_SIZE)M $(1) &&
|
||||
cat $(2[2]) >> $(1)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user