]> git.proxmox.com Git - mirror_edk2.git/commit
OvmfPkg: PlatformPei: take no-exec DXE settings from the QEMU command line
authorLaszlo Ersek <lersek@redhat.com>
Tue, 15 Sep 2015 08:35:14 +0000 (08:35 +0000)
committerlersek <lersek@Edk2>
Tue, 15 Sep 2015 08:35:14 +0000 (08:35 +0000)
commitab081a50e5651a5b10e35e12b4b19f7fb67c5735
tree2620a3e134ffb04524a242540f5444152c02da81
parentc075d250f6f2358a7c1b19798935d14d716bd67b
OvmfPkg: PlatformPei: take no-exec DXE settings from the QEMU command line

Control them with:

  -fw_cfg name=opt/ovmf/PcdPropertiesTableEnable,file=no.txt \
  -fw_cfg name=opt/ovmf/PcdSetNxForStack,file=yes.txt

where the contents of the text files can be

  [0nN1yY](\n|\r\n)?

The macro trickery is not optimal, but it is caused by PcdSetBool(), which
is itself a macro, and can only take open-coded PCD names (ie. no
variables, like function parameters).

Cc: Jordan Justen <jordan.l.justen@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Laszlo Ersek <lersek@redhat.com>
Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@18471 6f19259b-4bc3-4df7-8a09-765794883524
OvmfPkg/PlatformPei/Platform.c
OvmfPkg/PlatformPei/PlatformPei.inf