uboot顶层Makefile前期所做工作说明一
一. uboot顶层 Makefile文件
uboot顶层 Makefile,就是 uboot源码工程的根目录下的 Makefile文件。
注意:是对编译后的 uboot 源码进行分析。
二. Makefile 前期所做的内容
使用 vscode软件打开 uboot源码工程。打开 uboot 源码的顶层 Makefile文件。接下来大体了解一下 顶层 Makefile的内容。
1. 版本号
5 VERSION = 2016
6 PATCHLEVEL = 03
7 SUBLEVEL =
8 EXTRAVERSION =
9 NAME =
2. MAKEFLAGS 变量
涉及 MAKEFLAGS变量的内容如下:
20 MAKEFLAGS += -rR --include-dir=$(CURDIR)
3. 命令输出与静默输出
命令输出
wangtian@wangtian-virtual-machine:~/zhengdian_Linux/linux/uboot/alientek_uboot/uboot-imx-rel_imx_4.1.15_2.1.0_ga_alientek$ makeCLEAN examples/standaloneCLEAN toolsCLEAN tools/lib tools/commonCLEAN include/bmp_logo.h include/bmp_logo_data.h u-boot-nodtb.bin u-boot.lds u-boot.map u-boot.bin u-boot.cfg u-boot.srec u-boot u-boot.imx u-boot.sym System.map
wangtian@wangtian-virtual-machine:~/zhengdian_Linux/linux/uboot/alientek_uboot/uboot-imx-rel_imx_4.1.15_2.1.0_ga_alientek$ make V=1
make -f ./Makefile silentoldconfig
make -f ./scripts/Makefile.build obj=scripts/basic
rm -f .tmp_quiet_recordmcount
73 ifeq ("$(origin V)", "command line")
74 KBUILD_VERBOSE = $(V)
75 endif
76 ifndef KBUILD_VERBOSE
77 KBUILD_VERBOSE = 0
78 endif
79
80 ifeq ($(KBUILD_VERBOSE),1)
81 quiet =
82 Q =
83 else
84 quiet=quiet_
85 Q = @
86 endif
静默输出
88 # If the user is running make -s (silent mode), suppress echoing of
89 # commands
90
91 ifneq ($(filter 4.%,$(MAKE_VERSION)),) # make-4
92 ifneq ($(filter %s ,$(firstword x$(MAKEFLAGS))),)
93 quiet=silent_
94 endif
95 else # make-3.8x
96 ifneq ($(filter s% -s%,$(MAKEFLAGS)),)
97 quiet=silent_
98 endif
99 endif
100
101 export quiet Q KBUILD_VERBOSE
4. 设置编译结果输出目录
120 ifeq ($(KBUILD_SRC),)
121
122 # OK, Make called in directory where kernel src resides
123 # Do we want to locate output files in a separate directory?
124 ifeq ("$(origin O)", "command line")
125 KBUILD_OUTPUT := $(O)
126 endif
127
128 # That's our default target when none is given on the command line
129 PHONY := _all
130 _all:
131
132 # Cancel implicit rules on top Makefile
133 $(CURDIR)/Makefile Makefile: ;
134
135 ifneq ($(KBUILD_OUTPUT),)
136 # Invoke a second make in the output directory, passing relevant
variables
137 # check that the output directory actually exists
138 saved-output := $(KBUILD_OUTPUT)
139 KBUILD_OUTPUT := $(shell mkdir -p $(KBUILD_OUTPUT) && cd
$(KBUILD_OUTPUT) \
140 && /bin/pwd)
......
155 endif # ifneq ($(KBUILD_OUTPUT),)
156 endif # ifeq ($(KBUILD_SRC),)
uboot顶层Makefile前期所做工作说明一相关推荐
- U-Boot顶层Makefile分析
参考:U-Boot顶层Makefile介绍 作者:一只青木呀 发布时间: 2020-10-22 16:22:17 网址:https://blog.csdn.net/weixin_45309916/ar ...
- 【正点原子Linux连载】第三十一章 U-Boot顶层Makefile详解 -摘自【正点原子】I.MX6U嵌入式Linux驱动开发指南V1.0
1)实验平台:正点原子阿尔法Linux开发板 2)平台购买地址:https://item.taobao.com/item.htm?id=603672744434 2)全套实验源码+手册+视频下载地址: ...
- U-Boot 顶层 Makefile 详解
U-Boot 顶层 Makefile 详解 1.U-Boot 工程目录分析 我们在分析 uboot 源码之前一定要 先在 Ubuntu 中编译一下 uboot 源码,因为编译过程会生成一些文件,而生成 ...
- u-boot 顶层Makefile 分析
U-Boot 顶层Makefile 解析 u-Boot -Makefile(一) 声明 : 以下解析大部分来自网络大神之手 所以可以放心阅读 Good luck VERSION = 1 PATCH ...
- U-boot 顶层Makefile 学习(1)
U-boot 顶层Makefile 学习(1) Makefile可以说是学习路上的难点之一,刚开始看视频学习时,很难跟得上讲师的步伐,虽然讲的很详细,但是由于没有Makefile基础,理解较为困难.建 ...
- uboot顶层Makefile
1. 工作目录 如上图代码,编译之后将解压包放到windows解压观看. 目录如下: 文件夹: 文件: 1.1 arch 这里面存放着和架构有关的文件 我们用的是arm架构的文件,打开arm文件夹: ...
- imx6ull:uboot顶层Makefile分析
版本号 MAKEFLAGES变量 20 MAKEFLAGS += -rR --include-dir=$(CURDIR) Makefile有两个特殊的变量:"SHELL"和&quo ...
- U-Boot 顶层 Makefile 分析二
6.代码检查 uboot 支持代码检查,使用命令"make C=1"使能代码检查,检查那些需要重新编译的文件."make C=2"用于检查所有的源码文件 # ...
- U-BOOT分析(二)之顶层Makefile文件(1)
U-BOOT分析(二)之顶层Makefile文件(1) U-BOOT版本 u-boot版本: u-boot-2021.01.tar.bz2 Makefile && make简介 ...
- GNU ARM汇编--(十七)u-boot的makefile和mkconfig解读
自己写的bootloader可以引导kernel了,我以为曾经神秘的u-boot代码将变得毫无挑战,然事实表明u-boot作为优秀的开源代码,阅读起来还是很有挑战的,值得一读! 阅读碰到的头等问题:M ...
最新文章
- Android shape 绘制左右 或者上下的渐变色
- 自己学习Foundation一些类
- 【IT笔试面试题整理】字符串的排列
- Esfog_UnityShader教程_漫反射DiffuseReflection
- UA SIE545 优化理论基础1 例题2 Farkas定理与相关结论
- 循环冗余码CRC使用matlab实现
- hp服务器raid制作,HP服务器建立RAID的两种方法
- 【linux】 redhat中设置时区
- min-width:100%和max-width:100%的区别
- 一文搞懂HMM(隐马尔可夫模型)-Viterbi algorithm
- 作者:张群(1988-),女,博士,中国电子技术标准化研究院设备与数据研究室副主任。...
- 面试题简答题——数据库相关汇总
- linux下飞信安装详细过程
- Matlab 轴承信号仿真+分析
- Oracle 12c 中修改PDB数据库的日志归档模式
- SQL Injection Bypassing WAF ——from DVWA ——2012-12-8
- 不是抽象的, 并且未覆盖Handler中的抽象方法
- 前端项目实战59-new URLSearchParams
- java基础--名词解释汇总
- 搭建Openstack环境以及Openstack认证服务
热门文章
- TikTok升级游戏出海营销服务体系,进一步优化合作伙伴生态
- 【渝粤题库】广东开放大学 跨文化交际学1 形成性考核
- uniapp问题界面模板
- 【转】iOS 音频-AVAudioSession
- latex参考文献IEEEtran报错BibTeX return exit code(1)indicating that some problems might have occurred..
- Springboot 集成 easyexcel excel导入并验证模板
- 安徽职评英语计算机免试条件,安徽 高级经济师 计算机免考条件
- 牙不好全身遭殃!这些病竟都和牙有关,以前太小瞧了!
- 量子机器公司获得1750万美元投资
- 全国2021年4月自考信息资源管理真题和答案