summaryrefslogtreecommitdiff
path: root/arch/blackfin/cpu/bootrom-asm-offsets.awk
diff options
context:
space:
mode:
authorMasahiro Yamada <yamada.m@jp.panasonic.com>2013-11-29 15:34:16 +0900
committerSonic Zhang <sonic.zhang@analog.com>2013-12-06 16:06:51 +0800
commit985e18d14e0cb3933311945d30de6357cf8be9df (patch)
treec0ebb57feb9481f1010f9422e7db3af2c4c9ad11 /arch/blackfin/cpu/bootrom-asm-offsets.awk
parent9bac8f77698771165def23b9eebad536d5b5cd6d (diff)
downloadu-boot-imx-985e18d14e0cb3933311945d30de6357cf8be9df.zip
u-boot-imx-985e18d14e0cb3933311945d30de6357cf8be9df.tar.gz
u-boot-imx-985e18d14e0cb3933311945d30de6357cf8be9df.tar.bz2
blackfin: Do not generate unused header bootrom-asm-offsets.h
Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com> Signed-off-by: Sonic Zhang <sonic.zhang@analog.com>
Diffstat (limited to 'arch/blackfin/cpu/bootrom-asm-offsets.awk')
-rw-r--r--arch/blackfin/cpu/bootrom-asm-offsets.awk41
1 files changed, 0 insertions, 41 deletions
diff --git a/arch/blackfin/cpu/bootrom-asm-offsets.awk b/arch/blackfin/cpu/bootrom-asm-offsets.awk
deleted file mode 100644
index 1d61824..0000000
--- a/arch/blackfin/cpu/bootrom-asm-offsets.awk
+++ /dev/null
@@ -1,41 +0,0 @@
-#!/usr/bin/gawk -f
-BEGIN {
- print "/* DO NOT EDIT: AUTOMATICALLY GENERATED"
- print " * Input files: bootrom-asm-offsets.awk bootrom-asm-offsets.c.in"
- print " * DO NOT EDIT: AUTOMATICALLY GENERATED"
- print " */"
- print ""
- system("cat bootrom-asm-offsets.c.in")
- print "{"
-}
-
-{
- /* find a structure definition */
- if ($0 ~ /typedef struct .* {/) {
- delete members;
- i = 0;
-
- /* extract each member of the structure */
- while (1) {
- getline
- if ($1 == "}")
- break;
- gsub(/[*;]/, "");
- members[i++] = $NF;
- }
-
- /* grab the structure's name */
- struct = $NF;
- sub(/;$/, "", struct);
-
- /* output the DEFINE() macros */
- while (i-- > 0)
- print "\tDEFINE(" struct ", " members[i] ");"
- print ""
- }
-}
-
-END {
- print "\treturn 0;"
- print "}"
-}