这里是开源社区,但还是要尊重别人的成果
这个补丁是paul.sokolovsky@linaro.org在linux-sunxi于20141018提交
只是在工具链层面增加了内核编译DRM的支持,细节如下:
Paul Kocialkowski <contact@paulk.fr>: Oct 18 11:46PM +0200
From: Paul Sokolovsky <paul.sokolovsky@linaro.org>
An ifdef in drm.h expects to be compiled with full-fledged Linux
toolchain, but it's common to compile kernel with just bare-metal
toolchain which doesn't define __linux__. So, also add __KERNEL__
check.
Signed-off-by: Paul Sokolovsky <paul.sokolovsky@linaro.org>
Signed-off-by: Dave Airlie <airlied@redhat.com>
---
include/drm/drm.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/include/drm/drm.h b/include/drm/drm.h
index 64ff02d..9a30c72 100644
--- a/include/drm/drm.h
+++ b/include/drm/drm.h
@@ -36,7 +36,7 @@
#ifndef _DRM_H_
#define _DRM_H_
-#if defined(__linux__)
+#if defined(__KERNEL__) || defined(__linux__)
#include <linux/types.h>
#include <asm/ioctl.h>
--
1.7.9.5 |