zoukankan      html  css  js  c++  java
  • uboot执行make做了什么?

      

      主Makefile1~130为变量定义,第130行(ifeq ($(obj)include/config.mk,$(wildcard $(obj)include/config.mk)))这句是判断在include是否有config.mk存在,

    若存在则130~454会被编译进makefile中,config.mk在make x210_sd_config配置生成

      运行make默认执行第291行的目标,根据依赖链规则依次执行以下步骤

    1  主Makefile454行sinclude $(obj)include/autoconf.mk.dep预处理时未找到该文件则找到生成规则在440行

    2  执行$(VERSION_FILE)即include/version_autogenerated.h目标得到include/version_autogenerated.h版本文件

    3  执行主Makefile447行目标得到include/autoconf.mk该文件为系统中所有的"CONFIG_"开头的宏开关

    4  执行主Makefile380行目标进入SUBDIRS中每个文件执行make _depend

    5  执行主Makefile340行目标进入SUBDIRS中每个文件执行make all

    6  执行主Makefile331行目标make -C cpu/s5pc11x start.o得到start.o

    7  执行主Makefile334行目标进入相应文件执行make

    8  执行主Makefile343行执行make -C /root/uboot/board/samsung/x210/ u-boot.lds

    9  执行主Makefile337行执行make -C board/samsung/x210/

    10  执行主Makefile324行生成u-boot

    11  执行主Makefile296行生成u-boot.srec

    12  执行主Makefile299行生成u-boot.bin

    13  执行主Makefile429行生成System.map

    14  执行主Makefile321行生成u-boot.dis

  • 相关阅读:
    旺旺狗
    写在父亲离世周年
    老家老院
    玉米粒自传
    记念父亲
    26年前来蒙阴
    玉米粒自传
    pywin32安装
    linux中源码安装mysql
    在Linux上搭建禅道
  • 原文地址:https://www.cnblogs.com/genshu123/p/11121838.html
Copyright © 2011-2022 走看看