Using Local Source for Remote Programming in CLion

Using Local Source for Remote Programming in CLion

Local Client Operating System: macOS / Linux / Windows Remote Host Operating System: Linux Source File Location: Local, automatically synchronized to remote host Required Tools on Remote Host: macOS/Linux/Windows client needs rsync, Windows client needs tar Project Model: CMake/Makefile Required Plugins (pre-installed and enabled by default): FTP/SFTP/WebDAV connection This remote mode allows you to use … Read more

Efficiently Manage Linux Projects with Makefile

Efficiently Manage Linux Projects with Makefile

Linux | Red Hat Certified | IT Technology | Operations Engineer 👇 Join the technical exchange QQ group of 1000 people, note “public account” for faster approval Basic Structure A simple Makefile usually includes the following parts: Variable Definitions: You can define compilers, compilation options, source files, etc. Rules: Specify how to build targets. The … Read more

Essential Makefile Guide: Step-by-Step Project Compilation!

Linux | Red Hat Certified | IT Technology | Operations Engineer 👇1000 people technical exchange QQ group, note 【public number】 for faster access 1. Basic Structure of Makefile The Makefile contains a series of “rules”, with the basic structure of each rule as follows: target…: prerequisites… <tab> command Target(target): usually the name of the file … Read more

How to Compile C Programs in Linux

How to Compile C Programs in Linux

Article Word Count: 1400 Practical Index: ⭐⭐⭐⭐⭐ Common IDEs for compiling on Windows, while using gcc directly for compilation in Linux, is the foundation of Linux embedded programming and also a frequently asked question in embedded interviews. Command Line Compilation and Detailed Compilation Process Example code for hello.c: #include <stdio.h> int main(void) { printf("Hello world\n"); … Read more

Understanding U-Boot Makefile

Understanding U-Boot Makefile

1. Compiling U-Boot First, let’s review how to compile U-Boot. (1) Set temporary environment variables export ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- (2) Specify board configuration and generate .config file make xxx_defconfig (3) Compile make -j8 (4) Clean build make distclean Next, we will analyze the top-level Makefile in the U-Boot root directory to explore what happens behind these … Read more

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

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

The Linux kernel source code contains numerous files, and understanding the relationships between Makefile, Kconfig, and .config is crucial for navigating the kernel compilation system. Issues arise when trying to compile and modify the kernel, integrate your own drivers, or configure the kernel. All of these problems relate to Makefile, Kconfig, and .config. Below, I … Read more

Why I Use Makefile for Processes

Why I Use Makefile for Processes

Automatically check if target files or source files exist. If the source files are not found, exit the make process. If the target files are found, skip this make step. Automatically check for changes in target files or source files. If the source files are modified, regenerate the corresponding target files. Easy to run multiple … Read more

Overview of Linux Kernel Configuration, Compilation, and Makefile

Overview of Linux Kernel Configuration, Compilation, and Makefile

Recently, I have been learning about the configuration, compilation, and Makefile for the Linux kernel. Today, I would like to summarize my learning results and share them with everyone. 1. Unpacking and Patching First, you need to unpack the Linux kernel you obtained. Here I am using version linux.2.22.6. In the Linux command line, you … Read more

Master Makefile in 5 Minutes

Master Makefile in 5 Minutes

Photographer: Product Manager This Sichuan restaurant tastes quite good In a previous article titled “One Skill a Day: Writing Makefile for Python Projects”, we discussed Makefile. Many students have left messages on the public account backend, wanting to learn more about how to write a Makefile. Thus, we have today’s article. If you are currently … Read more