Skip to content
Snippets Groups Projects
Commit 4f954108 authored by Pekka Enberg's avatar Pekka Enberg
Browse files

Revert "build: Support VMDK and other image formats"


This reverts commit 59563357 which
causes significant slowdown on first time boot to a QCOW2 image:

  [penberg@localhost osv]$ time ./scripts/run.py
  OSv v0.05-rc1-108-g0639dd8
  OpenJDK 64-Bit Server VM warning: Can't detect initial thread stack
  location - find_vma failed
  ^D^D^D
  [/]%

  real    0m9.954s
  user    0m4.958s
  sys     0m1.309s

  [penberg@localhost osv]$ git revert
  59563357
  [penberg@localhost osv]$ time ./scripts/run.py
  OSv v0.05-rc1-108-g0639dd8
  OpenJDK 64-Bit Server VM warning: Can't detect initial thread stack
  location - find_vma failed
  ^D^D^D
  [/]% ^D

  real    0m4.441s
  user    0m3.785s
  sys     0m0.530s

Signed-off-by: default avatarPekka Enberg <penberg@cloudius-systems.com>
parent fc0715e0
No related branches found
Tags v0.05-rc2
No related merge requests found
......@@ -92,11 +92,6 @@ endif
arch-cflags = -msse4.1
ifeq ($(img_format),qcow2)
tmp_img_format = qcow2
else
tmp_img_format = raw
endif
quiet = $(if $V, $1, @echo " $2"; $1)
very-quiet = $(if $V, $1, @$1)
......@@ -646,22 +641,18 @@ bare.raw: loader.img
$(call quiet, $(src)/scripts/imgedit.py setpartition $@ 2 $(zfs-start) $(zfs-size), IMGEDIT $@)
bare.img: scripts/mkzfs.py $(jni) bare.raw $(out)/bootfs.manifest
$(call quiet, echo Creating $@ as $(tmp_img_format))
$(call quiet, qemu-img convert -f raw -O $(tmp_img_format) bare.raw $@)
$(call quiet, echo Creating $@ as $(img_format))
$(call quiet, qemu-img convert -f raw -O $(img_format) bare.raw $@)
$(call quiet, qemu-img resize $@ +$(fs_size_mb)M > /dev/null 2>&1)
$(src)/scripts/mkzfs.py -o $@ -d $@.d -m $(out)/bootfs.manifest
usr.tmp: bare.img $(out)/usr.manifest $(out)/cmdline
usr.img: bare.img $(out)/usr.manifest $(out)/cmdline
$(call quiet, cp bare.img $@)
$(src)/scripts/upload_manifest.py -o $@ -d $@.d -m $(out)/usr.manifest \
-D jdkbase=$(jdkbase) -D gccbase=$(gccbase) -D \
glibcbase=$(glibcbase) -D miscbase=$(miscbase)
$(call quiet, $(src)/scripts/imgedit.py setargs $@ $(shell cat $(out)/cmdline), IMGEDIT $@)
usr.img: usr.tmp
$(call quiet, echo Convert $@ to $(img_format))
$(call quiet, qemu-img convert -f $(tmp_img_format) -O $(img_format) usr.tmp $@)
$(jni): INCLUDES += -I /usr/lib/jvm/java/include -I /usr/lib/jvm/java/include/linux/
bootfs.bin: scripts/mkbootfs.py $(out)/bootfs.manifest $(tests) $(java_tests) $(tools) \
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment