3(2)、uboot根目录下的mkconfig.mk文件代码
来源:互联网 发布:php 检验 excel 编辑:程序博客网 时间:2024/05/23 07:26
#!/bin/sh -e# Script to create header files and links to configure# U-Boot for a specific board.## Parameters: Target Architecture CPU Board [VENDOR] [SOC]## (C) 2002-2006 DENX Software Engineering, Wolfgang Denk <wd@denx.de>#APPEND=no# Default: Create new config fileBOARD_NAME=""# Name to print in make outputwhile [ $# -gt 0 ] ; docase "$1" in--) shift ; break ;;-a) shift ; APPEND=yes ;;-n) shift ; BOARD_NAME="${1%%_config}" ; shift ;;*) break ;;esacdone[ "${BOARD_NAME}" ] || BOARD_NAME="$1"[ $# -lt 4 ] && exit 1[ $# -gt 6 ] && exit 1echo "Configuring for ${BOARD_NAME} board..."## Create link to architecture specific headers#if [ "$SRCTREE" != "$OBJTREE" ] ; thenmkdir -p ${OBJTREE}/includemkdir -p ${OBJTREE}/include2cd ${OBJTREE}/include2rm -f asmln -s ${SRCTREE}/include/asm-$2 asmLNPREFIX="../../include2/asm/"cd ../includerm -rf asm-$2rm -f asmmkdir asm-$2ln -s asm-$2 asmelsecd ./includerm -f asmln -s asm-$2 asmfirm -f asm-$2/archif [ -z "$6" -o "$6" = "NULL" ] ; thenln -s ${LNPREFIX}arch-$3 asm-$2/archelseln -s ${LNPREFIX}arch-$6 asm-$2/archfi# create link for s3c24xx SoCif [ "$3" = "s3c24xx" ] ; thenrm -f regs.hln -s $6.h regs.hrm -f asm-$2/archln -s arch-$3 asm-$2/archfi# create link for s3c64xx SoCif [ "$3" = "s3c64xx" ] ; thenrm -f regs.hln -s $6.h regs.hrm -f asm-$2/archln -s arch-$3 asm-$2/archfi# create link for s5pc1xx SoCif [ "$3" = "s5pc1xx" ] ; then rm -f regs.h ln -s $6.h regs.h rm -f asm-$2/arch ln -s arch-$3 asm-$2/archfi# create link for s5pc11x SoCif [ "$3" = "s5pc11x" ] ; then rm -f regs.h ln -s $6.h regs.h rm -f asm-$2/arch ln -s arch-$3 asm-$2/archfi# create link for s5p64xx SoCif [ "$3" = "s5p64xx" ] ; thenrm -f regs.hln -s $6.h regs.hrm -f asm-$2/archln -s arch-$3 asm-$2/archfi# create link for s5p644x SoCif [ "$3" = "s5p644x" ] ; thenrm -f regs.hln -s $6.h regs.hrm -f asm-$2/archln -s arch-$3 asm-$2/archfiif [ "$2" = "arm" ] ; thenrm -f asm-$2/procln -s ${LNPREFIX}proc-armv asm-$2/procfi# create link for s3c64xx-mp SoCif [ "$3" = "s3c64xx-mp" ] ; thenrm -f regs.hln -s $6.h regs.hrm -f asm-$2/archln -s arch-$3 asm-$2/archfi## Create include file for Make#echo "ARCH = $2" > config.mkecho "CPU = $3" >> config.mkecho "BOARD = $4" >> config.mk[ "$5" ] && [ "$5" != "NULL" ] && echo "VENDOR = $5" >> config.mk[ "$6" ] && [ "$6" != "NULL" ] && echo "SOC = $6" >> config.mk## Create board specific header file#if [ "$APPEND" = "yes" ]# Append to existing config filethenecho >> config.helse> config.h# Create new config filefiecho "/* Automatically generated - do not edit */" >>config.hecho "#include <configs/$1.h>" >>config.hexit 0
阅读全文
0 0
- 3(2)、uboot根目录下的mkconfig.mk文件代码
- 3(3)、uboot根目录下的config.mk文件代码
- Linux学习日志(14)- uboot根目录下的config.mk文件学习
- uboot根目录下的config.mk
- uboot根目录下mkconfig分析,基于s3c2440
- uboot根目录下的config.mk的分析
- uboot移植:uboot下的mkconfig解析
- U-boot根目录下的mkconfig分析
- U-boot根目录下的mkconfig分析
- uboot下mkconfig脚本的分析
- uboot mkconfig文件分析
- u-boot根目录下mkconfig文件学习笔记
- U-boot根目录下的mkconfig详尽分析
- 编译libfdk-aac 库,使用根目录下的android.mk直接包含所有子目录下的android.mk文件
- uboot中mkconfig的解析
- uboot配置和启动过程2(mkconfig分析)
- uboot下mkconfig脚本具体含义
- uboot下mkconfig脚本具体含义
- 检查oracle表和索引可回收空间!!
- 点击联系我们弹出临时QQ对话框
- c#基础接触(打卡)
- LTDC 学习
- 前端js实现桌面通知
- 3(2)、uboot根目录下的mkconfig.mk文件代码
- 大学生走出校园踏入社会需坚持的原则
- div垂直水平居中的五种方法
- 史上最全编程语言列表_你掌握了哪些?
- 【Lua】Mac系统下配置SublimeText的Lua编译环境
- 二叉树非递归遍历
- 异常 The content of the adapter has changed but ListView did not receive a notification可能的一种解决方法
- Vue.js系列之vue-resource
- 前端知识谱图