In-Depth Analysis of CMake Build Process: From Fundamentals to Complex Projects

In-Depth Analysis of CMake Build Process: From Fundamentals to Complex Projects

1. Analysis of the Project Structure After CMake Build 1.1 Directory Structure After CMake Build After CMake build is complete, a directory named build will be generated in the root directory of the project. This directory is where all intermediate files and final target files generated during the CMake build process are stored. Below, we … Read more

From 0 to 1: Easily Master Makefile

From 0 to 1: Easily Master Makefile

Click on the above “IT Circle“, select “Top Public Account” Critical moments, delivered first! This article is published by reader Liang Xu from the public account, please do not reprint without authorization! 1. What is Makefile A typical enterprise-level project usually has many source files, sometimes categorized by function, type, or module in different directories, … Read more

An Overview of Makefile, Kconfig, and .config in the Kernel

An Overview of Makefile, Kconfig, and .config in the Kernel

The Linux kernel source code is extensive, and it can be confusing to understand the relationship between Makefile, Kconfig, and .config. Not knowing how the kernel compilation system works can lead to issues when trying to modify the kernel, integrate your own drivers, or configure the kernel. These problems are all related to Makefile, Kconfig, … Read more

Linux C Basics: Have You Met the Makefile Master?

Linux C Basics: Have You Met the Makefile Master?

Introduction to Make: Project Manager, as the name suggests, refers to managing multiple files The Make project manager is essentially an “automated compilation manager“. Here, “automated” means it can automatically detect updated files based on file timestamps to reduce compilation workload. It performs a large amount of compilation work by reading the contents of the … Read more

Understanding Makefile from a Different Perspective

Understanding Makefile from a Different Perspective

Source: WeChat Official Account [Programming Gems] Author: Mr. Watcher ID: shouwangxiansheng As a C/C++ developer on Linux, it’s essential to have some exposure to Makefile. Typically, constructing large C/C++ projects relies heavily on Makefile. You might be using cmake or other similar tools, but they are fundamentally similar. As a light user, at the request … Read more

An Overview of Makefile, Kconfig, and .config in Linux Kernel Source

An Overview of Makefile, Kconfig, and .config in Linux Kernel Source

Click on the above“Embedded and Linux Matters”, select“Pin/Star the Official Account” Welfare and valuable content delivered first-hand The Linux kernel source code files are numerous, and it can be confusing to understand the relationship between Makefile, Kconfig, and .config. Not knowing the kernel compilation system can lead to issues when compiling or modifying the kernel, … Read more

Crash Recovery for User-Space Block Drivers

Crash Recovery for User-Space Block Drivers

Follow to see more great articles like this~ Crash recovery for user-space block drivers By Jonathan Corbet August 29, 2022 DeepL assisted translation https://lwn.net/Articles/906097/ During the 6.0 merge window, the kernel incorporated a new user-space block driver mechanism into the kernel. This subsystem, known as “ublk,” uses io_uring to communicate with user-space drivers, achieving impressive … Read more

Exploring The Linux Bus, Device, and Driver Model

Exploring The Linux Bus, Device, and Driver Model

The demand for device driver models includes the bus, device, and driver models. If we compare their relationships to examples in everyday life, it becomes easier to understand. For instance, a charging wall socket quietly embedded in the wall can fulfill its mission of charging, regardless of whether the device is a computer or a … Read more