diff options
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/Makefile.host | 1 | ||||
-rw-r--r-- | scripts/Makefile.lib | 2 | ||||
-rw-r--r-- | scripts/basic/docproc.c | 1 | ||||
-rwxr-xr-x | scripts/find_stray_empty_lines | 19 | ||||
-rwxr-xr-x | scripts/gen_build_files.sh | 4 | ||||
-rwxr-xr-x | scripts/kconfig/check.sh | 1 | ||||
-rw-r--r-- | scripts/kconfig/lex.zconf.c_shipped | 4 | ||||
-rw-r--r-- | scripts/kconfig/menu.c | 1 | ||||
-rw-r--r-- | scripts/kconfig/util.c | 1 | ||||
-rw-r--r-- | scripts/kconfig/zconf.hash.c_shipped | 1 | ||||
-rw-r--r-- | scripts/kconfig/zconf.tab.c_shipped | 2 | ||||
-rw-r--r-- | scripts/kconfig/zconf.y | 2 | ||||
-rwxr-xr-x | scripts/showasm | 1 |
13 files changed, 24 insertions, 16 deletions
diff --git a/scripts/Makefile.host b/scripts/Makefile.host index 23bd9ff10..2e628508d 100644 --- a/scripts/Makefile.host +++ b/scripts/Makefile.host | |||
@@ -153,4 +153,3 @@ $(host-cshlib): %: $(host-cshobjs) FORCE | |||
153 | 153 | ||
154 | targets += $(host-csingle) $(host-cmulti) $(host-cobjs)\ | 154 | targets += $(host-csingle) $(host-cmulti) $(host-cobjs)\ |
155 | $(host-cxxmulti) $(host-cxxobjs) $(host-cshlib) $(host-cshobjs) | 155 | $(host-cxxmulti) $(host-cxxobjs) $(host-cshlib) $(host-cshobjs) |
156 | |||
diff --git a/scripts/Makefile.lib b/scripts/Makefile.lib index be679b624..3e54ea712 100644 --- a/scripts/Makefile.lib +++ b/scripts/Makefile.lib | |||
@@ -168,5 +168,3 @@ cmd_objcopy = $(OBJCOPY) $(OBJCOPYFLAGS) $(OBJCOPYFLAGS_$(@F)) $< $@ | |||
168 | 168 | ||
169 | quiet_cmd_gzip = GZIP $@ | 169 | quiet_cmd_gzip = GZIP $@ |
170 | cmd_gzip = gzip -f -9 < $< > $@ | 170 | cmd_gzip = gzip -f -9 < $< > $@ |
171 | |||
172 | |||
diff --git a/scripts/basic/docproc.c b/scripts/basic/docproc.c index 50ef37157..db30019d8 100644 --- a/scripts/basic/docproc.c +++ b/scripts/basic/docproc.c | |||
@@ -397,4 +397,3 @@ int main(int argc, char **argv) | |||
397 | fflush(stdout); | 397 | fflush(stdout); |
398 | return exitstatus; | 398 | return exitstatus; |
399 | } | 399 | } |
400 | |||
diff --git a/scripts/find_stray_empty_lines b/scripts/find_stray_empty_lines new file mode 100755 index 000000000..aae18f99b --- /dev/null +++ b/scripts/find_stray_empty_lines | |||
@@ -0,0 +1,19 @@ | |||
1 | #!/bin/sh | ||
2 | |||
3 | grep -n -B1 -r $'^\t*}$' . | grep -A1 '.[ch]-[0-9]*-$' | ||
4 | grep -n -A1 -r $'^\t*{$' . | grep -B1 '.[ch]-[0-9]*-$' | ||
5 | # or (less surefire ones): | ||
6 | grep -n -B1 -r $'^\t*}' . | grep -A1 '.[ch]-[0-9]*-$' | ||
7 | grep -n -A1 -r $'^\t*{' . | grep -B1 '.[ch]-[0-9]*-$' | ||
8 | |||
9 | # find trailing empty lines | ||
10 | find -type f | while read file; do | ||
11 | test x"$file" = x"" && continue | ||
12 | tail -n1 $file | while read lastline | ||
13 | do | ||
14 | #echo "|$file|$lastline" | ||
15 | if test x"$lastline" = x""; then | ||
16 | echo "$file" | ||
17 | fi | ||
18 | done | ||
19 | done | ||
diff --git a/scripts/gen_build_files.sh b/scripts/gen_build_files.sh index 968158758..18c172d5a 100755 --- a/scripts/gen_build_files.sh +++ b/scripts/gen_build_files.sh | |||
@@ -53,8 +53,8 @@ fi | |||
53 | 53 | ||
54 | src="$srctree/$d/Kbuild.src" | 54 | src="$srctree/$d/Kbuild.src" |
55 | dst="$d/Kbuild" | 55 | dst="$d/Kbuild" |
56 | mkdir -p -- "$d" 2>/dev/null | ||
57 | if test -f "$src"; then | 56 | if test -f "$src"; then |
57 | mkdir -p -- "$d" 2>/dev/null | ||
58 | #echo " CHK $dst" | 58 | #echo " CHK $dst" |
59 | 59 | ||
60 | s=`sed -n 's@^//kbuild:@@p' -- "$srctree/$d"/*.c` | 60 | s=`sed -n 's@^//kbuild:@@p' -- "$srctree/$d"/*.c` |
@@ -73,8 +73,8 @@ fi | |||
73 | 73 | ||
74 | src="$srctree/$d/Config.src" | 74 | src="$srctree/$d/Config.src" |
75 | dst="$d/Config.in" | 75 | dst="$d/Config.in" |
76 | mkdir -p -- "$d" 2>/dev/null | ||
77 | if test -f "$src"; then | 76 | if test -f "$src"; then |
77 | mkdir -p -- "$d" 2>/dev/null | ||
78 | #echo " CHK $dst" | 78 | #echo " CHK $dst" |
79 | 79 | ||
80 | s=`sed -n 's@^//config:@@p' -- "$srctree/$d"/*.c` | 80 | s=`sed -n 's@^//config:@@p' -- "$srctree/$d"/*.c` |
diff --git a/scripts/kconfig/check.sh b/scripts/kconfig/check.sh index fa59cbf9d..15fc29421 100755 --- a/scripts/kconfig/check.sh +++ b/scripts/kconfig/check.sh | |||
@@ -11,4 +11,3 @@ EOF | |||
11 | if [ ! "$?" -eq "0" ]; then | 11 | if [ ! "$?" -eq "0" ]; then |
12 | echo -DKBUILD_NO_NLS; | 12 | echo -DKBUILD_NO_NLS; |
13 | fi | 13 | fi |
14 | |||
diff --git a/scripts/kconfig/lex.zconf.c_shipped b/scripts/kconfig/lex.zconf.c_shipped index 5fc323de3..51f15e175 100644 --- a/scripts/kconfig/lex.zconf.c_shipped +++ b/scripts/kconfig/lex.zconf.c_shipped | |||
@@ -2235,13 +2235,14 @@ static void zconf_endhelp(void) | |||
2235 | */ | 2235 | */ |
2236 | FILE *zconf_fopen(const char *name) | 2236 | FILE *zconf_fopen(const char *name) |
2237 | { | 2237 | { |
2238 | char *env, fullname[PATH_MAX+1]; | 2238 | char *env; |
2239 | FILE *f; | 2239 | FILE *f; |
2240 | 2240 | ||
2241 | f = fopen(name, "r"); | 2241 | f = fopen(name, "r"); |
2242 | if (!f && name[0] != '/') { | 2242 | if (!f && name[0] != '/') { |
2243 | env = getenv(SRCTREE); | 2243 | env = getenv(SRCTREE); |
2244 | if (env) { | 2244 | if (env) { |
2245 | char *fullname = alloca(strlen(env) + strlen(name) + 2); | ||
2245 | sprintf(fullname, "%s/%s", env, name); | 2246 | sprintf(fullname, "%s/%s", env, name); |
2246 | f = fopen(fullname, "r"); | 2247 | f = fopen(fullname, "r"); |
2247 | } | 2248 | } |
@@ -2322,4 +2323,3 @@ char *zconf_curname(void) | |||
2322 | { | 2323 | { |
2323 | return current_pos.file ? current_pos.file->name : "<none>"; | 2324 | return current_pos.file ? current_pos.file->name : "<none>"; |
2324 | } | 2325 | } |
2325 | |||
diff --git a/scripts/kconfig/menu.c b/scripts/kconfig/menu.c index 0fce20cb7..14cf2ead0 100644 --- a/scripts/kconfig/menu.c +++ b/scripts/kconfig/menu.c | |||
@@ -394,4 +394,3 @@ struct menu *menu_get_parent_menu(struct menu *menu) | |||
394 | } | 394 | } |
395 | return menu; | 395 | return menu; |
396 | } | 396 | } |
397 | |||
diff --git a/scripts/kconfig/util.c b/scripts/kconfig/util.c index ef4c83228..263091945 100644 --- a/scripts/kconfig/util.c +++ b/scripts/kconfig/util.c | |||
@@ -112,4 +112,3 @@ const char *str_get(struct gstr *gs) | |||
112 | { | 112 | { |
113 | return gs->s; | 113 | return gs->s; |
114 | } | 114 | } |
115 | |||
diff --git a/scripts/kconfig/zconf.hash.c_shipped b/scripts/kconfig/zconf.hash.c_shipped index 345f0fc07..d39cf189a 100644 --- a/scripts/kconfig/zconf.hash.c_shipped +++ b/scripts/kconfig/zconf.hash.c_shipped | |||
@@ -228,4 +228,3 @@ kconf_id_lookup (register const char *str, register unsigned int len) | |||
228 | } | 228 | } |
229 | return 0; | 229 | return 0; |
230 | } | 230 | } |
231 | |||
diff --git a/scripts/kconfig/zconf.tab.c_shipped b/scripts/kconfig/zconf.tab.c_shipped index b62724da0..a27d256d6 100644 --- a/scripts/kconfig/zconf.tab.c_shipped +++ b/scripts/kconfig/zconf.tab.c_shipped | |||
@@ -2169,5 +2169,3 @@ void zconfdump(FILE *out) | |||
2169 | #include "expr.c" | 2169 | #include "expr.c" |
2170 | #include "symbol.c" | 2170 | #include "symbol.c" |
2171 | #include "menu.c" | 2171 | #include "menu.c" |
2172 | |||
2173 | |||
diff --git a/scripts/kconfig/zconf.y b/scripts/kconfig/zconf.y index 2007a4e02..bef5e92a3 100644 --- a/scripts/kconfig/zconf.y +++ b/scripts/kconfig/zconf.y | |||
@@ -473,7 +473,7 @@ void conf_parse(const char *name) | |||
473 | menu_finalize(&rootmenu); | 473 | menu_finalize(&rootmenu); |
474 | for_all_symbols(i, sym) { | 474 | for_all_symbols(i, sym) { |
475 | sym_check_deps(sym); | 475 | sym_check_deps(sym); |
476 | } | 476 | } |
477 | 477 | ||
478 | sym_change_count = 1; | 478 | sym_change_count = 1; |
479 | } | 479 | } |
diff --git a/scripts/showasm b/scripts/showasm index 046442653..dc2cd705d 100755 --- a/scripts/showasm +++ b/scripts/showasm | |||
@@ -18,4 +18,3 @@ then | |||
18 | fi | 18 | fi |
19 | 19 | ||
20 | objdump -d $1 | sed -n -e '/./{H;$!d}' -e "x;/^.[0-9a-fA-F]* <$2>:/p" | 20 | objdump -d $1 | sed -n -e '/./{H;$!d}' -e "x;/^.[0-9a-fA-F]* <$2>:/p" |
21 | |||