zoukankan      html  css  js  c++  java
  • u-boot 用哪个lds链接脚本

    顶层Makefile文件中 :

    ifndef LDSCRIPT
        #LDSCRIPT := $(srctree)/board/$(BOARDDIR)/u-boot.lds.debug
        ifdef CONFIG_SYS_LDSCRIPT
            # need to strip off double quotes
            LDSCRIPT := $(srctree)/$(CONFIG_SYS_LDSCRIPT:"%"=%)
        endif
    endif

    # If there is no specified link script, we look in a number of places for it
    ifndef LDSCRIPT
        ifeq ($(wildcard $(LDSCRIPT)),)
            LDSCRIPT := $(srctree)/board/$(BOARDDIR)/u-boot.lds
        endif
        ifeq ($(wildcard $(LDSCRIPT)),)
            LDSCRIPT := $(srctree)/$(CPUDIR)/u-boot.lds
        endif
        ifeq ($(wildcard $(LDSCRIPT)),)
            LDSCRIPT := $(srctree)/arch/$(ARCH)/cpu/u-boot.lds
        endif
    endif

    之前一直在后面几条里面找,board目录下没有,以为是arch/arm/cpu/u-boot.lds

    结果发现是/arch/arm/mach-fmxx/u-boot.lds

    grep果然是好东西,

    grep -nwr u-boot.lds

    发现了

    include/configs/fmxx-common.h:120:#define CONFIG_SYS_LDSCRIPT   "arch/arm/mach-fmxx/u-boot.lds"
    在头文件里定义了这个。

    u-boot链接最终所使用的链接脚本u-boot.lds位于根目录下,通过编译(准确说是预处理)才能生成。

  • 相关阅读:
    PHP独立环境安装与文件配置
    变量常量区别及用法
    PHP初步了解
    js dom操作基本单词和格式
    PHP 类的继承 访问修饰符 重写
    PHP面向对象基本概念 类与对象 静态属性 构造/析构方法
    人员定位系统项目整理
    json
    租房子ajax
    省市区三级联动用ajax实现
  • 原文地址:https://www.cnblogs.com/idyllcheung/p/11606460.html
Copyright © 2011-2022 走看看