bareflank-hypervisor/loader/linux
Christopher Pelloux d2030b602d Loader: Build the arch target defined by CMake
This patch fixes an issue that could arise if the following conditions
are met:
- set HYPERVISOR_TARGET_ARCH to Intel in CMake
- build the loader for Linux on an AMD machine
- On AMD, `make driver_quick`, then `make start` -> computer hangs

This occurs because the loader is built using the architecture of the
build machine while the hypervisor is built using the target arch set
during cmake configuration which can be different. The cpu checks are
done inside the Linux driver which will succeed and load the hypervisor
which is using Intel specific instructions causing the machine to hang
when it tries to start on AMD.

We now use the cmake HYPERVISOR_TARGET_ARCH variable in Makefile which
will keep the hypervisor and the Linux driver in sync.
2021-10-17 23:23:04 -04:00
..
include Adds missing unit tests for the loader 2021-10-15 08:07:34 -06:00
src Adds missing unit tests for the loader 2021-10-15 08:07:34 -06:00
.clang-format Add UEFI suppport 2021-03-17 08:04:53 -06:00
Makefile.in Loader: Build the arch target defined by CMake 2021-10-17 23:23:04 -04:00