Skip to content

Think About How XMake Works When Compiling Linux kernel Module #6

@DavidingPlus

Description

@DavidingPlus

XMake 在编译内核模块的时候,通过 xmake -v 观察详细的 log 后发现,XMake 体系下的内核模块编译似乎并没有走传统的内核 KBuild 体系,而是走的裸 gcc 这一套。

这二者有什么区别呢?再者不使用内核的 KBuild 这一套会不会在编译的时候埋下一些隐患,比如缺少某些依赖、宏、符号之类的。可能在 debug 的时候遇到不小的问题。

原 issue 见:xmake-io/xmake#6216

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedExtra attention is neededquestionFurther information is requested

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions