summaryrefslogtreecommitdiffstats
path: root/common/recipes-bsp/systemd-boot/systemd-boot/rmc-boot.inc
diff options
context:
space:
mode:
authorTodor Minchev <todor.minchev@linux.intel.com>2017-06-23 15:58:17 -0700
committerSaul Wold <sgw@linux.intel.com>2017-06-23 16:07:40 -0700
commita70ba3debd103708c4c40d7c19bb56e7b66ef2a5 (patch)
tree804ce63b5a016fe2cfd20c299e8c2e98a5e640aa /common/recipes-bsp/systemd-boot/systemd-boot/rmc-boot.inc
parent54d18a7efe307b9fb45d64156d53b886abc3792b (diff)
downloadmeta-intel-a70ba3debd103708c4c40d7c19bb56e7b66ef2a5.tar.gz
systemd-boot: disable RMC for systemd-boot EFI_PROVIDER
Previously the RMC library was always linked into systemd-boot. Non rmc-boot EFI_PROVIDERs will not build the rmc.db and userspace tool and therefore linking the library into these bootloaders is redundant. This change disables RMC completely when the EFI_PROVIDER is not rmc-boot. The default EFI_PROVIDER in meta-intel is rmc-boot. To use systemd-boot without RMC, set EFI_PROVIDER to systemd-boot in your conf/local.conf. Example: EFI_PROVIDER = "systemd-boot" Signed-off-by: Todor Minchev <todor.minchev@linux.intel.com> Signed-off-by: Saul Wold <sgw@linux.intel.com>
Diffstat (limited to 'common/recipes-bsp/systemd-boot/systemd-boot/rmc-boot.inc')
-rw-r--r--common/recipes-bsp/systemd-boot/systemd-boot/rmc-boot.inc12
1 files changed, 12 insertions, 0 deletions
diff --git a/common/recipes-bsp/systemd-boot/systemd-boot/rmc-boot.inc b/common/recipes-bsp/systemd-boot/systemd-boot/rmc-boot.inc
new file mode 100644
index 00000000..db75eb68
--- /dev/null
+++ b/common/recipes-bsp/systemd-boot/systemd-boot/rmc-boot.inc
@@ -0,0 +1,12 @@
1DEPENDS_append_intel-x86-common = " rmc"
2
3EXTRA_OEMAKE_append_intel-x86-common = ' EFI_LDFLAGS="-L${STAGING_DIR_HOST}/usr/lib" EFI_CFLAGS="-I${STAGING_INCDIR}/rmc -DRMC_EFI"'
4
5SRC_URI_append_intel-x86-common = " \
6 file://0001-sd-boot-Link-RMC-library-into-bootloader-and-stub.patch \
7 file://0002-sd-boot-Load-board-specific-boot-entries-from-RMC-da.patch \
8 file://0003-sd-boot-Support-global-kernel-command-line-fragment.patch \
9 file://0004-sd-boot-Support-global-kernel-command-line-fragment-in-EFI-stub.patch \
10 file://0001-efi-boot.c-workaround-for-Joule-BIOS-hang.patch \
11 file://0001-sd-boot-stub-check-LoadOptions-contains-data.patch \
12 "