diff options
| author | Linus Torvalds <torvalds@g5.osdl.org> | 2006-01-04 19:36:52 -0500 |
|---|---|---|
| committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-01-04 19:36:52 -0500 |
| commit | 25c862cc9ea9b312c25a9f577f91b973131f1261 (patch) | |
| tree | 8e8f56531144370ced50fa98db2973f4e93e38b0 /scripts | |
| parent | 52347f4e810ba323d02cd2c26b5d738f4a2c3d5e (diff) | |
| parent | 8ded4ac018ea706bf7ee926601a27184665c9c28 (diff) | |
Merge git://git.kernel.org/pub/scm/linux/kernel/git/sam/kbuild
Diffstat (limited to 'scripts')
38 files changed, 4426 insertions, 3857 deletions
diff --git a/scripts/.gitignore b/scripts/.gitignore index b46d68bb9e17..a234e524a490 100644 --- a/scripts/.gitignore +++ b/scripts/.gitignore | |||
| @@ -1,4 +1,7 @@ | |||
| 1 | # | ||
| 2 | # Generated files | ||
| 3 | # | ||
| 1 | conmakehash | 4 | conmakehash |
| 2 | kallsyms | 5 | kallsyms |
| 3 | pnmtologo | 6 | pnmtologo |
| 4 | 7 | bin2c | |
diff --git a/scripts/Makefile b/scripts/Makefile index 67763eeb8a3e..6f6b48f39f0a 100644 --- a/scripts/Makefile +++ b/scripts/Makefile | |||
| @@ -19,4 +19,4 @@ subdir-$(CONFIG_MODVERSIONS) += genksyms | |||
| 19 | subdir-$(CONFIG_MODULES) += mod | 19 | subdir-$(CONFIG_MODULES) += mod |
| 20 | 20 | ||
| 21 | # Let clean descend into subdirs | 21 | # Let clean descend into subdirs |
| 22 | subdir- += basic lxdialog kconfig package | 22 | subdir- += basic kconfig package |
diff --git a/scripts/Makefile.lib b/scripts/Makefile.lib index 0f81dcfd6909..550798f57da5 100644 --- a/scripts/Makefile.lib +++ b/scripts/Makefile.lib | |||
| @@ -81,8 +81,10 @@ obj-dirs := $(addprefix $(obj)/,$(obj-dirs)) | |||
| 81 | # Note: It's possible that one object gets potentially linked into more | 81 | # Note: It's possible that one object gets potentially linked into more |
| 82 | # than one module. In that case KBUILD_MODNAME will be set to foo_bar, | 82 | # than one module. In that case KBUILD_MODNAME will be set to foo_bar, |
| 83 | # where foo and bar are the name of the modules. | 83 | # where foo and bar are the name of the modules. |
| 84 | basename_flags = -DKBUILD_BASENAME=$(subst $(comma),_,$(subst -,_,$(*F))) | 84 | name-fix = $(subst $(comma),_,$(subst -,_,$1)) |
| 85 | modname_flags = $(if $(filter 1,$(words $(modname))),-DKBUILD_MODNAME=$(subst $(comma),_,$(subst -,_,$(modname)))) | 85 | basename_flags = -D"KBUILD_BASENAME=KBUILD_STR($(call name-fix,$(*F)))" |
| 86 | modname_flags = $(if $(filter 1,$(words $(modname))),\ | ||
| 87 | -D"KBUILD_MODNAME=KBUILD_STR($(call name-fix,$(modname)))") | ||
| 86 | 88 | ||
| 87 | _c_flags = $(CFLAGS) $(EXTRA_CFLAGS) $(CFLAGS_$(*F).o) | 89 | _c_flags = $(CFLAGS) $(EXTRA_CFLAGS) $(CFLAGS_$(*F).o) |
| 88 | _a_flags = $(AFLAGS) $(EXTRA_AFLAGS) $(AFLAGS_$(*F).o) | 90 | _a_flags = $(AFLAGS) $(EXTRA_AFLAGS) $(AFLAGS_$(*F).o) |
| @@ -113,7 +115,7 @@ endif | |||
| 113 | 115 | ||
| 114 | c_flags = -Wp,-MD,$(depfile) $(NOSTDINC_FLAGS) $(CPPFLAGS) \ | 116 | c_flags = -Wp,-MD,$(depfile) $(NOSTDINC_FLAGS) $(CPPFLAGS) \ |
| 115 | $(__c_flags) $(modkern_cflags) \ | 117 | $(__c_flags) $(modkern_cflags) \ |
| 116 | $(basename_flags) $(modname_flags) | 118 | -D"KBUILD_STR(s)=\#s" $(basename_flags) $(modname_flags) |
| 117 | 119 | ||
| 118 | a_flags = -Wp,-MD,$(depfile) $(NOSTDINC_FLAGS) $(CPPFLAGS) \ | 120 | a_flags = -Wp,-MD,$(depfile) $(NOSTDINC_FLAGS) $(CPPFLAGS) \ |
| 119 | $(__a_flags) $(modkern_aflags) | 121 | $(__a_flags) $(modkern_aflags) |
diff --git a/scripts/basic/fixdep.c b/scripts/basic/fixdep.c index 0b61bea869f7..679124b11e12 100644 --- a/scripts/basic/fixdep.c +++ b/scripts/basic/fixdep.c | |||
| @@ -130,9 +130,22 @@ void usage(void) | |||
| 130 | exit(1); | 130 | exit(1); |
| 131 | } | 131 | } |
| 132 | 132 | ||
| 133 | /* | ||
| 134 | * Print out the commandline prefixed with cmd_<target filename> := | ||
| 135 | * If commandline contains '#' escape with '\' so make to not see | ||
| 136 | * the '#' as a start-of-comment symbol | ||
| 137 | **/ | ||
| 133 | void print_cmdline(void) | 138 | void print_cmdline(void) |
| 134 | { | 139 | { |
| 135 | printf("cmd_%s := %s\n\n", target, cmdline); | 140 | char *p = cmdline; |
| 141 | |||
| 142 | printf("cmd_%s := ", target); | ||
| 143 | for (; *p; p++) { | ||
| 144 | if (*p == '#') | ||
| 145 | printf("\\"); | ||
| 146 | printf("%c", *p); | ||
| 147 | } | ||
| 148 | printf("\n\n"); | ||
| 136 | } | 149 | } |
| 137 | 150 | ||
| 138 | char * str_config = NULL; | 151 | char * str_config = NULL; |
diff --git a/scripts/genksyms/.gitignore b/scripts/genksyms/.gitignore new file mode 100644 index 000000000000..be5cadb1b907 --- /dev/null +++ b/scripts/genksyms/.gitignore | |||
| @@ -0,0 +1,4 @@ | |||
| 1 | keywords.c | ||
| 2 | lex.c | ||
| 3 | parse.[ch] | ||
| 4 | genksyms | ||
diff --git a/scripts/genksyms/keywords.c_shipped b/scripts/genksyms/keywords.c_shipped index eabaf7401cd6..ee4647805c58 100644 --- a/scripts/genksyms/keywords.c_shipped +++ b/scripts/genksyms/keywords.c_shipped | |||
| @@ -1,7 +1,38 @@ | |||
| 1 | /* ANSI-C code produced by gperf version 2.7.2 */ | 1 | /* ANSI-C code produced by gperf version 3.0.1 */ |
| 2 | /* Command-line: gperf -L ANSI-C -a -C -E -g -H is_reserved_hash -k '1,3,$' -N is_reserved_word -p -t scripts/genksyms/keywords.gperf */ | 2 | /* Command-line: gperf -L ANSI-C -a -C -E -g -H is_reserved_hash -k '1,3,$' -N is_reserved_word -p -t scripts/genksyms/keywords.gperf */ |
| 3 | |||
| 4 | #if !((' ' == 32) && ('!' == 33) && ('"' == 34) && ('#' == 35) \ | ||
| 5 | && ('%' == 37) && ('&' == 38) && ('\'' == 39) && ('(' == 40) \ | ||
| 6 | && (')' == 41) && ('*' == 42) && ('+' == 43) && (',' == 44) \ | ||
| 7 | && ('-' == 45) && ('.' == 46) && ('/' == 47) && ('0' == 48) \ | ||
| 8 | && ('1' == 49) && ('2' == 50) && ('3' == 51) && ('4' == 52) \ | ||
| 9 | && ('5' == 53) && ('6' == 54) && ('7' == 55) && ('8' == 56) \ | ||
| 10 | && ('9' == 57) && (':' == 58) && (';' == 59) && ('<' == 60) \ | ||
| 11 | && ('=' == 61) && ('>' == 62) && ('?' == 63) && ('A' == 65) \ | ||
| 12 | && ('B' == 66) && ('C' == 67) && ('D' == 68) && ('E' == 69) \ | ||
| 13 | && ('F' == 70) && ('G' == 71) && ('H' == 72) && ('I' == 73) \ | ||
| 14 | && ('J' == 74) && ('K' == 75) && ('L' == 76) && ('M' == 77) \ | ||
| 15 | && ('N' == 78) && ('O' == 79) && ('P' == 80) && ('Q' == 81) \ | ||
| 16 | && ('R' == 82) && ('S' == 83) && ('T' == 84) && ('U' == 85) \ | ||
| 17 | && ('V' == 86) && ('W' == 87) && ('X' == 88) && ('Y' == 89) \ | ||
| 18 | && ('Z' == 90) && ('[' == 91) && ('\\' == 92) && (']' == 93) \ | ||
| 19 | && ('^' == 94) && ('_' == 95) && ('a' == 97) && ('b' == 98) \ | ||
| 20 | && ('c' == 99) && ('d' == 100) && ('e' == 101) && ('f' == 102) \ | ||
| 21 | && ('g' == 103) && ('h' == 104) && ('i' == 105) && ('j' == 106) \ | ||
| 22 | && ('k' == 107) && ('l' == 108) && ('m' == 109) && ('n' == 110) \ | ||
| 23 | && ('o' == 111) && ('p' == 112) && ('q' == 113) && ('r' == 114) \ | ||
| 24 | && ('s' == 115) && ('t' == 116) && ('u' == 117) && ('v' == 118) \ | ||
| 25 | && ('w' == 119) && ('x' == 120) && ('y' == 121) && ('z' == 122) \ | ||
| 26 | && ('{' == 123) && ('|' == 124) && ('}' == 125) && ('~' == 126)) | ||
| 27 | /* The character set is not based on ISO-646. */ | ||
| 28 | #error "gperf generated tables don't work with this execution character set. Please report a bug to <bug-gnu-gperf@gnu.org>." | ||
| 29 | #endif | ||
| 30 | |||
| 31 | #line 1 "scripts/genksyms/keywords.gperf" | ||
| 32 | |||
| 33 | #line 3 "scripts/genksyms/keywords.gperf" | ||
| 3 | struct resword { const char *name; int token; }; | 34 | struct resword { const char *name; int token; }; |
| 4 | /* maximum key range = 109, duplicates = 0 */ | 35 | /* maximum key range = 68, duplicates = 0 */ |
| 5 | 36 | ||
| 6 | #ifdef __GNUC__ | 37 | #ifdef __GNUC__ |
| 7 | __inline | 38 | __inline |
| @@ -15,32 +46,32 @@ is_reserved_hash (register const char *str, register unsigned int len) | |||
| 15 | |||
