]> git.proxmox.com Git - mirror_edk2.git/commitdiff
ArmVirtPkg/ArmVirtQemu: gate FDT config table install with build option
authorArd Biesheuvel <ard.biesheuvel@linaro.org>
Thu, 31 Mar 2016 11:15:05 +0000 (13:15 +0200)
committerArd Biesheuvel <ard.biesheuvel@linaro.org>
Thu, 31 Mar 2016 14:37:33 +0000 (16:37 +0200)
This introduces the .DSC define 'PURE_ACPI_BOOT_ENABLE', defaulting to
FALSE, which controls the value of the feature PCD 'PcdPureAcpiBoot'.

This allows an ArmVirtQemu image to be built that restricts the OS to
booting in ACPI mode.

This feature is only added to ArmVirtQemu, and not to ArmVirtQemuKernel,
the reason being that the latter is mostly intended for development work,
where the burden of adding 'acpi=force' if you need it is much more
tolerable than when trying to boot an installer on a production KVM guest
instance.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Reviewed-by: Laszlo Ersek <lersek@redhat.com>
ArmVirtPkg/ArmVirtQemu.dsc

index fafad7751e6dfa15c0fe7eb40f91adfab0cfc11a..e626df768f859ee44d2606f5b2b0ae3b32d6092d 100644 (file)
@@ -34,6 +34,7 @@
   # -D FLAG=VALUE\r
   #\r
   DEFINE SECURE_BOOT_ENABLE      = FALSE\r
+  DEFINE PURE_ACPI_BOOT_ENABLE   = FALSE\r
 \r
 !include ArmVirtPkg/ArmVirt.dsc.inc\r
 \r
   # Activate KVM workaround for now.\r
   gArmVirtTokenSpaceGuid.PcdKludgeMapPciMmioAsCached|TRUE\r
 \r
+!if $(PURE_ACPI_BOOT_ENABLE) == TRUE\r
+  gArmVirtTokenSpaceGuid.PcdPureAcpiBoot|TRUE\r
+!endif\r
+\r
 [PcdsFixedAtBuild.common]\r
   gArmPlatformTokenSpaceGuid.PcdCoreCount|1\r
 !if $(ARCH) == AARCH64\r