diff options
| -rw-r--r-- | common/recipes-bsp/rmc/rmc-efi.bb | 39 | ||||
| -rw-r--r-- | common/recipes-bsp/rmc/rmc.bb | 3 | ||||
| -rw-r--r-- | common/recipes-bsp/systemd-boot/systemd-boot/rmc-boot.inc | 2 |
3 files changed, 41 insertions, 3 deletions
diff --git a/common/recipes-bsp/rmc/rmc-efi.bb b/common/recipes-bsp/rmc/rmc-efi.bb new file mode 100644 index 00000000..ea096197 --- /dev/null +++ b/common/recipes-bsp/rmc/rmc-efi.bb | |||
| @@ -0,0 +1,39 @@ | |||
| 1 | SUMMARY = "RMC (Runtime Machine Configuration) EFI library" | ||
| 2 | |||
| 3 | DESCRIPTION = "The RMC EFI library adds RMC support to existing EFI bootloaders" | ||
| 4 | |||
| 5 | LICENSE = "MIT" | ||
| 6 | |||
| 7 | LIC_FILES_CHKSUM = "file://COPYING;md5=ade413c694d3aaefc9554b24a8814ee8" | ||
| 8 | |||
| 9 | SRC_URI = "git://git.yoctoproject.org/rmc" | ||
| 10 | |||
| 11 | SRCREV = "027ac76f642dcab1a9f237a00f03a3a714bd04b9" | ||
| 12 | |||
| 13 | S = "${WORKDIR}/git" | ||
| 14 | |||
| 15 | COMPATIBLE_HOST = "(x86_64.*|i.86.*)-linux*" | ||
| 16 | |||
| 17 | TARGET_CFLAGS +="-Wl,--hash-style=both" | ||
| 18 | |||
| 19 | EXTRA_OEMAKE = "RMC_INSTALL_PREFIX=${D}/${prefix} \ | ||
| 20 | RMC_INSTALL_LIB_PATH=${D}${libdir} \ | ||
| 21 | RMC_INSTALL_HEADER_PATH=${D}${includedir}/rmc" | ||
| 22 | |||
| 23 | SECURITY_CFLAGS_remove_class-target = "-fstack-protector-strong" | ||
| 24 | |||
| 25 | python () { | ||
| 26 | ccargs = d.getVar('TUNE_CCARGS').split() | ||
| 27 | if '-mx32' in ccargs: | ||
| 28 | ccargs.remove('-mx32') | ||
| 29 | ccargs.append('-m64') | ||
| 30 | d.setVar('TUNE_CCARGS', ' '.join(ccargs)) | ||
| 31 | } | ||
| 32 | |||
| 33 | do_compile() { | ||
| 34 | oe_runmake -f Makefile.efi | ||
| 35 | } | ||
| 36 | |||
| 37 | do_install() { | ||
| 38 | oe_runmake -f Makefile.efi install | ||
| 39 | } | ||
diff --git a/common/recipes-bsp/rmc/rmc.bb b/common/recipes-bsp/rmc/rmc.bb index 93fdd3aa..fb0d1737 100644 --- a/common/recipes-bsp/rmc/rmc.bb +++ b/common/recipes-bsp/rmc/rmc.bb | |||
| @@ -28,14 +28,13 @@ EXTRA_OEMAKE = "RMC_INSTALL_PREFIX=${D}/${prefix} \ | |||
| 28 | RMC_INSTALL_HEADER_PATH=${D}${includedir}/rmc" | 28 | RMC_INSTALL_HEADER_PATH=${D}${includedir}/rmc" |
| 29 | 29 | ||
| 30 | SECURITY_CFLAGS_remove_class-target = "-fstack-protector-strong" | 30 | SECURITY_CFLAGS_remove_class-target = "-fstack-protector-strong" |
| 31 | |||
| 31 | do_compile_class-target() { | 32 | do_compile_class-target() { |
| 32 | oe_runmake | 33 | oe_runmake |
| 33 | oe_runmake -f Makefile.efi | ||
| 34 | } | 34 | } |
| 35 | 35 | ||
| 36 | do_install() { | 36 | do_install() { |
| 37 | oe_runmake install | 37 | oe_runmake install |
| 38 | oe_runmake -f Makefile.efi install | ||
| 39 | } | 38 | } |
| 40 | 39 | ||
| 41 | do_install_class-native() { | 40 | do_install_class-native() { |
diff --git a/common/recipes-bsp/systemd-boot/systemd-boot/rmc-boot.inc b/common/recipes-bsp/systemd-boot/systemd-boot/rmc-boot.inc index db75eb68..1172d53d 100644 --- a/common/recipes-bsp/systemd-boot/systemd-boot/rmc-boot.inc +++ b/common/recipes-bsp/systemd-boot/systemd-boot/rmc-boot.inc | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | DEPENDS_append_intel-x86-common = " rmc" | 1 | DEPENDS_append_intel-x86-common = " rmc rmc-efi" |
| 2 | 2 | ||
| 3 | EXTRA_OEMAKE_append_intel-x86-common = ' EFI_LDFLAGS="-L${STAGING_DIR_HOST}/usr/lib" EFI_CFLAGS="-I${STAGING_INCDIR}/rmc -DRMC_EFI"' | 3 | EXTRA_OEMAKE_append_intel-x86-common = ' EFI_LDFLAGS="-L${STAGING_DIR_HOST}/usr/lib" EFI_CFLAGS="-I${STAGING_INCDIR}/rmc -DRMC_EFI"' |
| 4 | 4 | ||
