Although there are countless analyses on the Internet, I still feel it is necessary to analyze it myself.
Uboot usually requires two steps when compiling:
make EmbedSky_config
make all
1. Let's analyze what happens after executing make EmbedSky_config.
In the Makefile, there are the following
EmbedSky_config:unconfig
@$(MKCONFIG) $(@:_config=) arm arm920t EmbedSky NULL s3c24x0
1.1 unconfig:
@rm -f include/config.h include/config.mk \
board/*/config.tmp board/*/*/config.tmp
Unconfig is very simple. Delete a few files. The files deleted are generated in the following mkconfig
1.2 @$(MKCONFIG) $(@:_config=) arm arm920t EmbedSky NULL s3c24x0
MKCONFIG := $(SRCTREE)/mkconfig
export MKCONFIG
So $(MKCONFIG) is the mkconfig script in the current directory
$(@:_config=) remove the _config in EmbedSky_config,
EmbedSky_config:unconfig
./mkconfig EmbedSky arm arm920t EmbedSky NULL s3c24x0
$0 $1 $2 $3 $4 $5 $6
1.3 Then let's analyze what happens after executing: ./mkconfig EmbedSky arm arm920t EmbedSky NULL s3c24x0
rm -f include/asm
ln -s include/asm-arm include/asm
rm -f asm-arm/proc
ln -s proc-armv asm-arm/proc
rm -f asm-arm/arch
ln -s arch-s3c24x0 asm-arm/arch
Write the following into include/config.mk
ARCH = arm
CPU = arm920t
BOARD = EmbedSky
SOC = s3c24x0
Write the following into include/config.h
#include
mkconfig does two main things: creates symbolic links and creates config.mk and config.h files.
Previous article:TQ2440's uboot---4. Analyze the final connection process of u-boot Makefile
Next article:TQ2440 uboot---2.U_BOOT_CMD analysis
- Popular Resources
- Popular amplifiers
Professor at Beihang University, dedicated to promoting microcontrollers and embedded systems for over 20 years.
- LED chemical incompatibility test to see which chemicals LEDs can be used with
- Application of ARM9 hardware coprocessor on WinCE embedded motherboard
- What are the key points for selecting rotor flowmeter?
- LM317 high power charger circuit
- A brief analysis of Embest's application and development of embedded medical devices
- Single-phase RC protection circuit
- stm32 PVD programmable voltage monitor
- Introduction and measurement of edge trigger and level trigger of 51 single chip microcomputer
- Improved design of Linux system software shell protection technology
- What to do if the ABB robot protection device stops
- Innovation is not limited to Meizhi, Welling will appear at the 2024 China Home Appliance Technology Conference
- Innovation is not limited to Meizhi, Welling will appear at the 2024 China Home Appliance Technology Conference
- Huawei's Strategic Department Director Gai Gang: The cumulative installed base of open source Euler operating system exceeds 10 million sets
- Download from the Internet--ARM Getting Started Notes
- Learn ARM development(22)
- Learn ARM development(21)
- Learn ARM development(20)
- Learn ARM development(19)
- Learn ARM development(14)
- Learn ARM development(15)
- After Cypress PSO6 was launched, ST, Siliconlabs, Nordic, NXP, and Dialo were compared.
- The spare change I saved N years ago has become a treasure!!!
- Design and Implementation of VGA Video Acquisition System Based on TMS320DM355
- FPGA-to-ASIC integration brings flexibility to microcontrollers
- Award-winning live broadcast: Registration for the introduction of ON Semiconductor's photovoltaic and energy storage products is now open~
- CircuitPython 7.0.0 Alpha 4 released
- How to Erase the Contents of EPCS in Altera FPGA Configuration Device
- [Problem Feedback] Anlu TangDynasty ChipWatcher network sorting confusion issue
- Instrument and control system grounding and shielding training materials
- ART-Pi evaluates the display driver LTDC+SDRAM of H7 RGB screen