我尝试使用 Eclipse 浏览 Linux 内核源代码。
如何让 Eclipse 知道.config分别#define在 ed in 中设置为构建配置的内容include/linux/autoconf.h?
.config
#define
include/linux/autoconf.h
我在 Debian(稳定版)上使用 Eclipse 的 Juno Service Release 1(构建 ID:20120920-0800)。
有用的是类似于项目基础上gcc的选项-include <file name>。
gcc
-include <file name>
c eclipse linux-kernel
c ×1
eclipse ×1
linux-kernel ×1