免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 3501 | 回复: 3
打印 上一主题 下一主题

system call, dlopen and GPLv2的几个问题 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2011-11-29 14:52 |只看该作者 |倒序浏览
本帖最后由 blworld 于 2011-11-29 14:54 编辑

先大概描述一下背景:
有一个项目,需要将之前在Windows Mobile平台的代码(自己开发的)移植到Android。
我的工作是在kernel里面开发一个驱动,并在HAL层(so library)实现对驱动的封装,对上层提供需要的接口, 这里有2个关于GPL的问题搞不太清:
kernel层的驱动会开源,但上层的代码不能开源,
1. HAL是基于bioinc(Apache 2)编译的,与kernel相关的额外头文件(除了bioinc与交叉编译器有的kernel headers),不是直接复制,而是有针对性的复制需要的部分组成新的文件(宏定义与IOCTL)。这样开发出来的HAL需要开源吗?
2. 上层的代码调用HAL的so library是通过dlopen/dlsym的方式加载的,这种方式下,如果HAL so library是GPLv2的,上层的代码是否需要开源?

论坛徽章:
0
2 [报告]
发表于 2011-11-30 14:49 |只看该作者
帮顶
我对License一直还是比较迷糊,美帝台湾那些人做设计会比较小心考虑这些,国内好像考虑很少,讨论也少。

论坛徽章:
0
3 [报告]
发表于 2011-12-01 13:28 |只看该作者
第一个问题:
可以参考 kernel/COPYING, Linus Torvalds写了注释:

   NOTE! This copyright does *not* cover user programs that use kernel
services by normal system calls - this is merely considered normal use
of the kernel, and does *not* fall under the heading of "derived work".
Also note that the GPL below is copyrighted by the Free Software
Foundation, but the instance of code that it refers to (the Linux
kernel) is copyrighted by me and others who actually wrote it.

Also note that the only valid version of the GPL as far as the kernel
is concerned is _this_ particular version of the license (ie v2, not
v2.2 or v3.x or whatever), unless explicitly otherwise stated.

                        Linus Torvalds


第二个问题的判定比较麻烦,大致可以根据这样来判断:



具体是参考了:
http://www.openfoundry.org/tw/le ... ounds-of-gnu-gpl-01
http://www.openfoundry.org/tw/le ... ounds-of-gnu-gpl-02

论坛徽章:
0
4 [报告]
发表于 2011-12-07 10:04 |只看该作者
没人讨论?
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP