正点原子Linux第31章《Uboot顶层Makefile详解》学习

FBshark / 2023-05-18 / 原文

uboot 目录结构

1. 文件夹arch:存放关于CPU架构的代码

2. 文件夹board:存放关于特定开发板的代码

3. 文件夹configs:存放uboot的配置,文件的格式为:xxxxx.deconfig,通过编译(make),生成.config文件。

4. 文件u-boot.xxx,大多数为编译相关的或者编译生成的目标文件,例如uboot.imx等等。

5.文件Makefile:顶层Makefile,makefile支持嵌套使用,顶层的Makefile会调用下一层的Makefile完成编译工作。

 

 

VScode屏蔽代码:

在.vscode 的settings.json的大括号中加入以下代码:

 1   "search.exclude": {
 2         "**/node_modules": true,
 3         "**/bower_components": true,
 4         
 5         "arch/alpha":true,
 6     },
 7     "files.exclude": {
 8          "**/.git": true,
 9          "**/.svn": true,
10          "**/.hg": true,
11         "**/CVS": true,
12         "**/.DS_Store": true, 
13        
14        "arch/alpha":true, 
15     }

注意:

1、 不要在大括号之外加入,因为会被自动清除掉。

2、 冒号前面的是要排除的文件或者文件夹,冒号后面为是否将文件排除, true 表示排除, false 表示不排除。