rmc: don't hardcode install paths

Instead of hardcoding /usr in the recipe, and hardcoding $prefix/lib in the
Makefile, override all of the paths with the distro configuration.

[ YOCTO #10800 ]

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: California Sullivan <california.l.sullivan@intel.com>
This commit is contained in:
Ross Burton 2016-12-13 11:17:11 +00:00 committed by California Sullivan
parent 48c335a46e
commit 04899c330d

View File

@ -22,6 +22,11 @@ COMPATIBLE_HOST = "(x86_64.*|i.86.*)-linux*"
TARGET_CFLAGS +="-Wl,--hash-style=both"
EXTRA_OEMAKE = "RMC_INSTALL_PREFIX=${D}/${prefix} \
RMC_INSTALL_BIN_PATH=${D}${bindir} \
RMC_INSTALL_LIB_PATH=${D}${libdir} \
RMC_INSTALL_HEADER_PATH=${D}${includedir}/rmc"
SECURITY_CFLAGS_remove_class-target = "-fstack-protector-strong"
do_compile_class-target() {
oe_runmake
@ -29,8 +34,8 @@ do_compile_class-target() {
}
do_install() {
oe_runmake RMC_INSTALL_PREFIX=${D}/usr install
oe_runmake RMC_INSTALL_PREFIX=${D}/usr -f Makefile.efi install
oe_runmake install
oe_runmake -f Makefile.efi install
}
do_install_class-native() {