赞
踩
0. 准备工作与说明
0.1 准备工作
请先下载以下文件,里面有文档:
参考GIT中的文档,安装好虚拟机,从GIT总下载Liteos-a源码,打上IMX6ULL的补丁。
0.2 说明
1. Makefile编译系统分析
1.1 变量
1. LITEOSTOPDIR // kernel/liteos_a
2. LITEOSTHIRDPARTY // third_party
3. LITEOS_MK_PATH // kernel/liteos_a/tools/build/mk
4. MK_PATH = $(LITEOSTOPDIR)/tools/build/mk // kernel/liteos_a/tools/build/mk
1.2 包含的文件
Makefile
-include $(LITEOSTOPDIR)/tools/build/config.mk
-include $(LITEOSTOPDIR)/tools/build/mk/los_config.mk
-include $(LITEOSTOPDIR)/.config
include $(LITEOSTOPDIR)/arch/cpu.mk
-include $(LITEOSTOPDIR)/arch/arm/arm.mk
include $(LITEOSTOPDIR)/platform/bsp.mk
include $(LITEOSTOPDIR)/../../vendor/nxp/imx6ull/imx6ull.mk
include $(LITEOSTOPDIR)/../../drivers/hdf/lite/hdf_lite.mk
include $(LITEOSTOPDIR)/../../vendor/nxp/hdf/hdf_vendor.mk
-include $(LITEOSTOPDIR)/3rdParty/3rdParty.mk
-include $(LITEOS_MK_PATH)/liteos_tables_ldflags.mk
-include $(LITEOS_MK_PATH)/dynload.mk
1.3 把Makefile全部展开
得到了一个Makefile_all.txt,
分析Makefile_all.tx
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。