From a5b57049ea452eb0d6490872e770d6a876c836f0 Mon Sep 17 00:00:00 2001 From: Qiang Yu Date: Mon, 12 Dec 2016 14:48:56 +0800 Subject: [PATCH 1229/4131] drm/amd/dkms: add amdkfd module Change-Id: I49bfb2aa76766f9ede31062a226015a5993deb02 Signed-off-by: Qiang Yu Reviewed-by: Junwei Zhang Reviewed-by: Ken Wang Conflicts: drivers/gpu/drm/amd/dkms/dkms.conf --- drivers/gpu/drm/amd/amdkfd/Makefile | 3 +++ drivers/gpu/drm/amd/amdkfd/backport/Makefile | 6 ++++++ drivers/gpu/drm/amd/amdkfd/backport/backport.h | 6 ++++++ 3 files changed, 15 insertions(+) create mode 100644 drivers/gpu/drm/amd/amdkfd/backport/Makefile create mode 100644 drivers/gpu/drm/amd/amdkfd/backport/backport.h diff --git a/drivers/gpu/drm/amd/amdkfd/Makefile b/drivers/gpu/drm/amd/amdkfd/Makefile index 3be1acd..923e3ae 100644 --- a/drivers/gpu/drm/amd/amdkfd/Makefile +++ b/drivers/gpu/drm/amd/amdkfd/Makefile @@ -23,3 +23,6 @@ amdkfd-y := kfd_module.o kfd_device.o kfd_chardev.o kfd_topology.o \ amdkfd-$(CONFIG_DEBUG_FS) += kfd_debugfs.o obj-$(CONFIG_HSA_AMD) += amdkfd.o + +AMDKFD_FULL_PATH = $(src) +include $(AMDKFD_FULL_PATH)/backport/Makefile diff --git a/drivers/gpu/drm/amd/amdkfd/backport/Makefile b/drivers/gpu/drm/amd/amdkfd/backport/Makefile new file mode 100644 index 0000000..3fc650a --- /dev/null +++ b/drivers/gpu/drm/amd/amdkfd/backport/Makefile @@ -0,0 +1,6 @@ + + +LINUXINCLUDE := $(DKMS_INCLUDE_PREFIX) $(LINUXINCLUDE) + +ccflags-y += \ + -include $(AMDKFD_FULL_PATH)/backport/backport.h diff --git a/drivers/gpu/drm/amd/amdkfd/backport/backport.h b/drivers/gpu/drm/amd/amdkfd/backport/backport.h new file mode 100644 index 0000000..e1f8c1d --- /dev/null +++ b/drivers/gpu/drm/amd/amdkfd/backport/backport.h @@ -0,0 +1,6 @@ +#ifndef AMDKFD_BACKPORT_H +#define AMDKFD_BACKPORT_H + +#include + +#endif -- 2.7.4