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

Taskfile vs Makefile: Which Is the Superior Build Tool?

Taskfile vs Makefile: Which Is the Superior Build Tool?

Follow us on WeChat: 「Wonderful Linux World」 Set as a 「Star」 to explore Linux every day! 1. What is Taskfile? Taskfile describes various execution tasks using YAML, and its core is written in Go; compared to Makefile, which uses tab-separated and bash-combined syntax, Taskfile appears more modern and user-friendly (though it may turn you into … Read more

Understanding Makefile, Kconfig, and .config Files

Understanding Makefile, Kconfig, and .config Files

1 We want to add a program (such as a driver) to the kernel and ensure that this driver can be compiled into the kernel, which is fundamentally divided into two main parts. First, we need to tell the kernel, “Please include me in the next compilation,” which requires us to configure the kernel appropriately. … Read more

A Universal Makefile Template for Various Scenarios

A Universal Makefile Template for Various Scenarios

1. Introduction For development on Windows, many IDEs come with integrated compilers, such as Visual Studio, providing a “one-click compile” feature. After coding, you only need one operation to compile, link, and generate the target file. Linux development is different from Windows; typically, the gcc/g++ compiler is used on Linux. If you are developing Linux … 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

Common Makefile Syntax and Functions in Chip Development

Common Makefile Syntax and Functions in Chip Development

1. Why do Makefiles exist? In software or chip development, Makefile is generally used. It is a text file that contains instructions on how to compile and link programs. Makefile is used by the make tool, which is an automation build tool that can automatically execute the compilation and linking process based on the instructions … Read more

Understanding Makefile: A Tool Language for GNU GCC Compilation

Understanding Makefile: A Tool Language for GNU GCC Compilation

Click aboveLinux Community to follow us Abstract: This article mainly introduces makefile, a commonly used tool language for GNU GCC compilation. LiteOS also uses this file to build project files and generate executable files. In the LiteOS source code, makefile is used for batch processing compilation and linking to generate files. When designing a project … Read more

How to Write an Impressive Makefile from Version 1 to Version 5

How to Write an Impressive Makefile from Version 1 to Version 5

1. The Three Essential Elements of Makefile 2. Working Principle 3. Start Writing First, let’s write our program, taking C language as an example. 1) func.h Define two functions: addition and subtraction: 2) Implementation of the Addition Function 3) Implementation of the Subtraction Function 4) main function 3.1 Version 1 The most basic version: just … 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