CubieBoard中文论坛

 找回密码
 立即注册
搜索
热搜: unable
123
返回列表 发新帖
楼主: yangkkokk

3.4内核的一个bug修复

[复制链接]
发表于 2014-11-7 10:00:50 | 显示全部楼层
这里是开源社区,但还是要尊重别人的成果
这个补丁是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
回复 支持 反对

使用道具 举报

 楼主| 发表于 2014-11-7 10:52:38 | 显示全部楼层
提示: 作者被禁止或删除 内容自动屏蔽
回复 支持 反对

使用道具 举报

 楼主| 发表于 2014-11-7 10:59:54 | 显示全部楼层
提示: 作者被禁止或删除 内容自动屏蔽
回复 支持 反对

使用道具 举报

 楼主| 发表于 2014-11-7 13:35:06 | 显示全部楼层
提示: 作者被禁止或删除 内容自动屏蔽
回复 支持 反对

使用道具 举报

发表于 2014-11-7 20:06:16 | 显示全部楼层
其实你有这些发现都是站在了巨人肩膀上,如果没有社区你能拿到代码吗?如果没有CB,你能调试问题吗?楼主应该谦虚一些才好。
回复 支持 反对

使用道具 举报

发表于 2014-11-10 16:45:18 | 显示全部楼层
我想问下这个BUG会造成什么影响?
回复 支持 反对

使用道具 举报

发表于 2014-11-20 09:57:51 | 显示全部楼层

fix bug #218

yangkkokk opened this Issue 14 days ago · 0 comments

yangkkokk  commented 14 days ago  

sys/ioccom.h: No such file or directory

修改include/drm/drm.h文件
--#if defined(linux)
++#if defined(KERNEL) || defined(linux)

回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|Archiver|手机版|粤ICP备13051116号|cubie.cc---深刻的嵌入式技术讨论社区

GMT+8, 2024-5-5 16:39 , Processed in 0.020356 second(s), 12 queries .

Powered by Discuz! X3.4

© 2001-2012 Comsenz Inc. | Style by Coxxs

返回顶部