
They only need one xmake command to get everything done.Īnd these dependency pulls are implemented through the add_requires("linux-headers", ) configuration package.
#CLION LINUX KERNEL HOW TO#
In other words, no matter what environment you are in, users don’t need to care about how to build a kernel-driven development environment. If the user has installed them through third-party package management such as apt, Xmake will give priority to the version already installed on the system, saving the download and installation process. When compiling for the first time, Xmake will pull all dependencies. : linking.release build/linux/x86_64/release/hello.ko
#CLION LINUX KERNEL INSTALL#
$ xmake note: install or modify (m) these packages (pass -y to skip confirm)? We intuitively feel it through one of the simplest character drivers.įirst, we prepare a Hello World driver code, for example:

With Xmake, we can provide more flexible configurability, simpler configuration files, and features such as one-click compilation, automatic dependency pull integration, automatic download and integration of Linux kernel source code, and cross-compilation of kernel drivers. In other words, it is actually a build that relies on the Makefile of the Linux kernel source code to execute, so if you want to add some compilation configuration and macro definitions yourself, it will be very troublesome. Xmake may be the first third-party build tool that provides built-in support for Linux kernel driver development.Īlthough there are also instructions on how CMake configures and builds Linux drivers on the Internet, most of them use add_custom_command to customize various commands, and then execute echo to splice and generate Linux Makefile files by themselves. New feature introduction Build Linux kernel driver module Some of the larger changes will be explained one by one below. You can see the details of the update content at the end of the following. The rest are mainly scattered function improvements and bugs fixes.

