Skip to content

Commit 4041275

Browse files
author
yunzha4x
committed
doc: update Build ACRN from Source
Signed-off-by: yunzha4x <yunx.zhang@intel.com>
1 parent cd40980 commit 4041275

File tree

1 file changed

+7
-27
lines changed

1 file changed

+7
-27
lines changed

doc/getting-started/building-from-source.rst

Lines changed: 7 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,9 @@ the hypervisor using the updated ``.config``.
275275

276276
.. code-block:: none
277277
278-
$ make menuconfig # Modify the configurations per your needs
278+
# Modify the configurations per your needs
279+
$ cd ../ # Enter top-level folder of acrn-hypervisor source
280+
$ make menuconfig -C hypervisor BOARD=kbl-nuc-i7 <select industry scenario>
279281
280282
.. note::
281283
Menuconfig is python3 only.
@@ -293,7 +295,6 @@ Now you can build all these components in one go as follows:
293295

294296
.. code-block:: none
295297
296-
$ cd ../ # Enter top-level folder of acrn-hypervisor source
297298
$ make FIRMWARE=uefi # Build the UEFI hypervisor with the new .config
298299
299300
The build results are found in the ``build`` directory. You can specify
@@ -304,35 +305,14 @@ If you only need the hypervisor, then use this command:
304305

305306
.. code-block:: none
306307
307-
$ make clean # Remove files previously built
308-
$ make FIRMWARE=uefi hypervisor # This will only build the hypervisor
308+
$ make clean # Remove files previously built
309+
$ make -C hypervisor
310+
$ make -C misc/efi-stub HV_OBJDIR=$PWD/hypervisor/build EFI_OBJDIR=$PWD/hypervisor/build
309311
310-
You could also use ``FIRMWARE=sbl`` instead, to build the Intel SBL
312+
The acrn.efi will be generated in directory: . /hypervisor/build/acrn.efi
311313
(`Slim bootloader
312314
<https://www.intel.com/content/www/us/en/design/products-and-solutions/technologies/slim-bootloader/overview.html>`_)
313315
hypervisor.
314316

315317
Follow the same instructions to boot and test the images you created from your build.
316318

317-
Save as default configuration
318-
*****************************
319-
320-
Currently the ACRN hypervisor looks for default configurations under
321-
``hypervisor/arch/x86/configs/<BOARD>.config``, where ``<BOARD>`` is the
322-
specified platform. The following steps allow you to create a defconfig for
323-
another platform based on a current one.
324-
325-
.. code-block:: none
326-
327-
$ cd hypervisor
328-
$ make defconfig BOARD=nuc6cayh
329-
$ make menuconfig # Modify the configurations
330-
$ make savedefconfig # The minimized config reside at build/defconfig
331-
$ cp build/defconfig arch/x86/configs/xxx.config
332-
333-
Then you can re-use that configuration by passing the name (``xxx`` in the
334-
example above) to 'BOARD=':
335-
336-
.. code-block:: none
337-
338-
$ make defconfig BOARD=xxx

0 commit comments

Comments
 (0)