mirror of
https://e.coding.net/weidongshan/01_all_series_quickstart.git
synced 2025-11-08 15:05:34 +08:00
编译uboot的过程分析
This commit is contained in:
@@ -359,14 +359,16 @@ endif
|
|||||||
|
|
||||||

|

|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
## 5.3 编译过程详细分析(IMX6ULL)
|
## 5.3 编译过程详细分析(IMX6ULL)
|
||||||
|
|
||||||
### 5.3.1 结论
|
### 5.3.1 结论
|
||||||
|
|
||||||
以IMX6ULL为例,先说结论:
|
以IMX6ULL为例,先说结论:
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
细节如下:
|
||||||
|
|
||||||
* 执行make命令时,要编译得到哪些文件由`ALL-y`决定
|
* 执行make命令时,要编译得到哪些文件由`ALL-y`决定
|
||||||
|
|
||||||
* 规则如下
|
* 规则如下
|
||||||
@@ -434,7 +436,6 @@ endif
|
|||||||
$(DTB): arch-dtbs
|
$(DTB): arch-dtbs
|
||||||
$(obj)/dt.dtb: $(DTB) FORCE
|
$(obj)/dt.dtb: $(DTB) FORCE
|
||||||
$(call if_changed,shipped)
|
$(call if_changed,shipped)
|
||||||
|
|
||||||
targets += dt.dtb
|
targets += dt.dtb
|
||||||
|
|
||||||
$(DTB): arch-dtbs
|
$(DTB): arch-dtbs
|
||||||
@@ -472,7 +473,10 @@ endif
|
|||||||
|
|
||||||
### 5.3.2 顶层Makefile
|
### 5.3.2 顶层Makefile
|
||||||
|
|
||||||
顶层Makefile里指定了第1个文件(head-y)、指定了要编译哪些子目录(libs-y)。
|
顶层Makefile里:
|
||||||
|
|
||||||
|
* 包含架构相关的Makefile,里面指定了第1个文件(head-y)
|
||||||
|
* 指定了要编译哪些子目录(libs-y)。
|
||||||
|
|
||||||
从顶层Makefile开始分析:
|
从顶层Makefile开始分析:
|
||||||
|
|
||||||
@@ -551,7 +555,7 @@ $(u-boot-dirs): prepare scripts
|
|||||||
然后使用scripts/Makefile.build进行处理:$(Q)$(MAKE) $(build)=$@ ,展开就是:
|
然后使用scripts/Makefile.build进行处理:$(Q)$(MAKE) $(build)=$@ ,展开就是:
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
make -f /scripts/Makefile.build obj=arch/arm/cpu/armv7/
|
make -f scripts/Makefile.build obj=arch/arm/cpu/armv7/
|
||||||
```
|
```
|
||||||
|
|
||||||
scripts/Makefile.build是编译u-boot源码的关键:
|
scripts/Makefile.build是编译u-boot源码的关键:
|
||||||
|
|||||||
BIN
09_u-boot完全分析与移植/doc_pic/05_编译uboot的过程分析.tif
Normal file
BIN
09_u-boot完全分析与移植/doc_pic/05_编译uboot的过程分析.tif
Normal file
Binary file not shown.
Reference in New Issue
Block a user