From: Denys Dmytriyenko <de...@ti.com> This way keystone_remoteproc.h can also be found in sysroots, when available. Otherwise it can fall back to using kernel sources directly.
Signed-off-by: Denys Dmytriyenko <de...@ti.com> --- ...on-t-hardcode-kernel-s-uapi-location-keys.patch | 27 ++++++++++++++++++++++ recipes-ti/multiprocmgr/multiprocmgr_git.bb | 9 +++++--- 2 files changed, 33 insertions(+), 3 deletions(-) create mode 100644 recipes-ti/multiprocmgr/multiprocmgr/0001-mpmdlif.c-don-t-hardcode-kernel-s-uapi-location-keys.patch diff --git a/recipes-ti/multiprocmgr/multiprocmgr/0001-mpmdlif.c-don-t-hardcode-kernel-s-uapi-location-keys.patch b/recipes-ti/multiprocmgr/multiprocmgr/0001-mpmdlif.c-don-t-hardcode-kernel-s-uapi-location-keys.patch new file mode 100644 index 0000000..25deedc --- /dev/null +++ b/recipes-ti/multiprocmgr/multiprocmgr/0001-mpmdlif.c-don-t-hardcode-kernel-s-uapi-location-keys.patch @@ -0,0 +1,27 @@ +From 17c307ff6e67af43f243366baa2ccc01f89cdddd Mon Sep 17 00:00:00 2001 +From: Denys Dmytriyenko <de...@ti.com> +Date: Mon, 23 Apr 2018 15:35:44 -0400 +Subject: [PATCH] mpmdlif.c: don't hardcode kernel's "uapi" location + keystone_remoteproc.h + +Signed-off-by: Denys Dmytriyenko <de...@ti.com> +--- + src/daemon/mpmdlif.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/src/daemon/mpmdlif.c b/src/daemon/mpmdlif.c +index 0c31604..d287bbc 100644 +--- a/src/daemon/mpmdlif.c ++++ b/src/daemon/mpmdlif.c +@@ -47,7 +47,7 @@ + #include <stdint.h> + + #define _LINUX_TYPES_H +-#include "uapi/linux/keystone_remoteproc.h" ++#include "linux/keystone_remoteproc.h" + #include "internal/rsc_types.h" + //#include <elf.h> + // #define LOADER_DEBUG +-- +2.7.4 + diff --git a/recipes-ti/multiprocmgr/multiprocmgr_git.bb b/recipes-ti/multiprocmgr/multiprocmgr_git.bb index 053a04e..f37b97e 100644 --- a/recipes-ti/multiprocmgr/multiprocmgr_git.bb +++ b/recipes-ti/multiprocmgr/multiprocmgr_git.bb @@ -3,15 +3,18 @@ SUMMARY = "Provides download, debug and other utilities for other cores in the S include multiprocmgr.inc -SRC_URI_append = " file://mpmsrv-daemon.service" +SRC_URI += " \ + file://mpmsrv-daemon.service \ + file://0001-mpmdlif.c-don-t-hardcode-kernel-s-uapi-location-keys.patch \ +" -PR = "${INC_PR}.1" +PR = "${INC_PR}.2" DEPENDS = "mpm-transport libdaemon virtual/kernel cmem" PACKAGE_ARCH = "${MACHINE_ARCH}" -CC += "-I${STAGING_KERNEL_DIR}/include" +CC += "-I${STAGING_KERNEL_DIR}/include -I${STAGING_KERNEL_DIR}/include/uapi" INITSCRIPT_NAME = "mpmsrv-daemon.sh" INITSCRIPT_PARAMS = "defaults 10" -- 2.7.4 -- _______________________________________________ meta-ti mailing list meta-ti@yoctoproject.org https://lists.yoctoproject.org/listinfo/meta-ti