@@ -374,7 +374,15 @@ each with their own way to install development tools:
374
374
gnu-efi \
375
375
libssl-dev \
376
376
libpciaccess-dev \
377
- uuid-dev
377
+ uuid-dev \
378
+ libsystemd-dev \
379
+ libevent-dev \
380
+ libxml2-dev \
381
+ libusb-1.0-0-dev
382
+
383
+ .. note ::
384
+ Ubuntu 14.04 requires ``libsystemd-journal-dev `` instead of ``libsystemd-dev ``
385
+ as indicated above.
378
386
379
387
* On a Fedora/Redhat development system:
380
388
@@ -384,7 +392,12 @@ each with their own way to install development tools:
384
392
gnu-efi-devel \
385
393
libuuid-devel \
386
394
openssl-devel \
387
- libpciaccess-devel
395
+ libpciaccess-devel \
396
+ systemd-devel \
397
+ libxml2-devel \
398
+ libevent-devel \
399
+ libusbx-devel
400
+
388
401
389
402
* On a CentOS development system:
390
403
@@ -394,17 +407,46 @@ each with their own way to install development tools:
394
407
gnu-efi-devel \
395
408
libuuid-devel \
396
409
openssl-devel \
397
- libpciaccess-devel
410
+ libpciaccess-devel \
411
+ systemd-devel \
412
+ libxml2-devel \
413
+ libevent-devel \
414
+ libusbx-devel
398
415
399
- Build the hypervisor and device model
400
- =====================================
401
416
402
- #. Download the ACRN hypervisor and build it.
417
+ Build the hypervisor, device model and tools
418
+ ============================================
419
+
420
+ The `acrn-hypervisor <https://github.com/projectacrn/acrn-hypervisor/ >`_
421
+ repository has three main components in it:
422
+
423
+ 1. The ACRN hypervisor code located in the ``hypervisor `` directory
424
+ #. The ACRN devicemodel code located in the ``devicemodel `` directory
425
+ #. The ACRN tools source code located in the ``tools `` directory
426
+
427
+ You can build all these components in one go as follows:
428
+ .. code-block :: console
429
+
430
+ $ git clone https://github.com/projectacrn/acrn-hypervisor
431
+ $ cd acrn-hypervisor
432
+ $ make
433
+
434
+ The build results are found in the ``build `` directory.
435
+
436
+ .. note ::
437
+ if you wish to use a different target folder for the build
438
+ artefacts, set the ``O `` (that is capital letter 'O') to the
439
+ desired value. Example: ``make O=build-uefi PLATFORM=uefi ``.
440
+
441
+ You can also build these components individually. The following
442
+ steps assume that you have already cloned the ``acrn-hypervisor `` repository
443
+ and are using it as the current working directory.
444
+
445
+ #. Build the ACRN hypervisor.
403
446
404
447
.. code-block :: console
405
448
406
- $ git clone https://github.com/projectacrn/acrn-hypervisor
407
- $ cd acrn-hypervisor/hypervisor
449
+ $ cd hypervisor
408
450
$ make PLATFORM=uefi
409
451
410
452
The build results are found in the ``build `` directory.
@@ -418,5 +460,12 @@ Build the hypervisor and device model
418
460
419
461
The build results are found in the ``build `` directory.
420
462
463
+ #. Build the ACRN tools (included in the acrn-hypervisor repo):
464
+
465
+ .. code-block :: console
466
+
467
+ $ cd ../tools
468
+ $ for d in */; do make -C "$d"; done
469
+
421
470
Follow the same instructions to boot and test the images you created
422
471
from your build.
0 commit comments