auto create head file use varaible
来源:互联网 发布:java undefined 判断 编辑:程序博客网 时间:2024/05/18 02:52
#!/bin/bash
PROJECT_PREFIX=$1
REGION_OPERATOR=$2
HW_REV=$3
PROJECT_NAME=${REGION_OPERATOR%%_*}
echo "PROJECT_PREFIX=$1, REGION=$2, HW_REV=$3"
cat << EOF > include/config.h
/*
* Automatically generated C config: don't edit
*/
#ifndef __CONFIG_H__
#define __CONFIG_H__
#define CONFIG_$PROJECT_NAME
#define CONFIG_$REGION_OPERATOR
#define CONFIG_BOARD_REVISION 0x$HW_REV
#include <configs/$PROJECT_PREFIX.h>
#if !defined(__ASSEMBLY__) && !defined(__HEADER_ONLY__)
#include <asm/system.h>
#include <asm/types.h>
#include <asm/glib.h>
#endif /* !__ASSEMBLY__ && !__HEADER_ONLY__ */
#endif /* __CONFIG_H__ */
EOF
cat << EOF > include/config_spl.h
/*
* Automatically generated C config: don't edit
*/
#ifndef __CONFIG_H__
#define __CONFIG_H__
#define CONFIG_$PROJECT_NAME
#define CONFIG_$REGION_OPERATOR
#define CONFIG_BOARD_REVISION 0x$HW_REV
#endif /* __CONFIG_H__ */
EOF
PROJECT_PREFIX=$1
REGION_OPERATOR=$2
HW_REV=$3
PROJECT_NAME=${REGION_OPERATOR%%_*}
echo "PROJECT_PREFIX=$1, REGION=$2, HW_REV=$3"
cat << EOF > include/config.h
/*
* Automatically generated C config: don't edit
*/
#ifndef __CONFIG_H__
#define __CONFIG_H__
#define CONFIG_$PROJECT_NAME
#define CONFIG_$REGION_OPERATOR
#define CONFIG_BOARD_REVISION 0x$HW_REV
#include <configs/$PROJECT_PREFIX.h>
#if !defined(__ASSEMBLY__) && !defined(__HEADER_ONLY__)
#include <asm/system.h>
#include <asm/types.h>
#include <asm/glib.h>
#endif /* !__ASSEMBLY__ && !__HEADER_ONLY__ */
#endif /* __CONFIG_H__ */
EOF
cat << EOF > include/config_spl.h
/*
* Automatically generated C config: don't edit
*/
#ifndef __CONFIG_H__
#define __CONFIG_H__
#define CONFIG_$PROJECT_NAME
#define CONFIG_$REGION_OPERATOR
#define CONFIG_BOARD_REVISION 0x$HW_REV
#endif /* __CONFIG_H__ */
EOF
- auto create head file use varaible
- How to use freetts create/generate a wave file
- c# use Visual Studio Command create xml's serialitation file by xml file
- auto create Makefile
- Auto create csdn post
- ORACLE Varaible
- Create+File
- UIScrollView 与 Use Auto Layout
- Class create, device create, device create file
- Class create, device create, device create file
- Class create, device create, device create file
- Class create, device create, device create file
- Class create, device create, device create file
- Class create, device create, device create file
- sctp head file
- create file color.xml at res/values and then you can use android:backgroud"@color/what you like"
- 未解决Unable to use slave's temporary directory /tmp - Can't create/write to file '/tmp/SQL_LOAD-' (Err
- inline static varaible
- js读取xml文件,动态加载成表格
- javascript读取cookie,javascrip写入cookie,asp.net读取cookie,asp.net写入cookie
- Web入侵安全测试与对策
- 详解P2P网络技术与实现原理
- ORA-28002: 密码将在 7 天后到期之问题解决
- auto create head file use varaible
- 操作系统结构
- abap type 与 like 的区别/ TYPES与DATA区别
- HTK数据准备工具-HCopy
- 数字和货币校验的dojo的js
- 解析excel03 and excel07 文件--poi
- 软件随想录(local.joelonsoftware.com/wiki)-2001年02月12日 人的工作切换有害无益 - Human Task Switches Considered Harmful
- UART DCB 流控
- 快速排序