diff options
| author | Michal Marek <mmarek@suse.cz> | 2010-08-04 08:05:07 -0400 |
|---|---|---|
| committer | Michal Marek <mmarek@suse.cz> | 2010-08-04 08:05:07 -0400 |
| commit | 7a996d3ab150bb0e1b71fa182f70199a703efdd1 (patch) | |
| tree | 96a36947d90c9b96580899abd38cb3b70cd9d40b /scripts | |
| parent | 7cf3d73b4360e91b14326632ab1aeda4cb26308d (diff) | |
| parent | 9fe6206f400646a2322096b56c59891d530e8d51 (diff) | |
Merge commit 'v2.6.35' into kbuild/kconfig
Conflicts:
scripts/kconfig/Makefile
Diffstat (limited to 'scripts')
| -rw-r--r-- | scripts/.gitignore | 1 | ||||
| -rw-r--r-- | scripts/Makefile.lib | 4 | ||||
| -rw-r--r-- | scripts/Makefile.modbuiltin | 5 | ||||
| -rw-r--r-- | scripts/binoffset.c | 163 | ||||
| -rwxr-xr-x | scripts/checkpatch.pl | 109 | ||||
| -rwxr-xr-x | scripts/extract-ikconfig | 127 | ||||
| -rw-r--r-- | scripts/gen_initramfs_list.sh | 1 | ||||
| -rwxr-xr-x | scripts/get_maintainer.pl | 255 | ||||
| -rw-r--r-- | scripts/gfp-translate | 2 | ||||
| -rw-r--r-- | scripts/kconfig/Makefile | 18 | ||||
| -rw-r--r-- | scripts/kconfig/nconf.gui.c | 2 | ||||
| -rw-r--r-- | scripts/kconfig/streamline_config.pl | 68 | ||||
| -rw-r--r-- | scripts/kconfig/util.c | 2 | ||||
| -rwxr-xr-x | scripts/kernel-doc | 21 | ||||
| -rw-r--r-- | scripts/markup_oops.pl | 2 | ||||
| -rw-r--r-- | scripts/mod/file2alias.c | 57 | ||||
| -rw-r--r-- | scripts/mod/modpost.c | 7 | ||||
| -rw-r--r-- | scripts/package/Makefile | 2 | ||||
| -rwxr-xr-x | scripts/package/mkspec | 2 | ||||
| -rwxr-xr-x | scripts/recordmcount.pl | 39 | ||||
| -rw-r--r-- | scripts/selinux/genheaders/genheaders.c | 2 | ||||
| -rwxr-xr-x | scripts/setlocalversion | 183 |
22 files changed, 670 insertions, 402 deletions
diff --git a/scripts/.gitignore b/scripts/.gitignore index 52cab46ae35a..c5d5db54c009 100644 --- a/scripts/.gitignore +++ b/scripts/.gitignore | |||
| @@ -6,5 +6,4 @@ kallsyms | |||
| 6 | pnmtologo | 6 | pnmtologo |
| 7 | bin2c | 7 | bin2c |
| 8 | unifdef | 8 | unifdef |
| 9 | binoffset | ||
| 10 | ihex2fw | 9 | ihex2fw |
diff --git a/scripts/Makefile.lib b/scripts/Makefile.lib index f3ccdb1b302b..54fd1b700131 100644 --- a/scripts/Makefile.lib +++ b/scripts/Makefile.lib | |||
| @@ -245,3 +245,7 @@ quiet_cmd_lzo = LZO $@ | |||
| 245 | cmd_lzo = (cat $(filter-out FORCE,$^) | \ | 245 | cmd_lzo = (cat $(filter-out FORCE,$^) | \ |
| 246 | lzop -9 && $(call size_append, $(filter-out FORCE,$^))) > $@ || \ | 246 | lzop -9 && $(call size_append, $(filter-out FORCE,$^))) > $@ || \ |
| 247 | (rm -f $@ ; false) | 247 | (rm -f $@ ; false) |
| 248 | |||
| 249 | # misc stuff | ||
| 250 | # --------------------------------------------------------------------------- | ||
| 251 | quote:=" | ||
diff --git a/scripts/Makefile.modbuiltin b/scripts/Makefile.modbuiltin index 102a276f6eea..1adb974e6950 100644 --- a/scripts/Makefile.modbuiltin +++ b/scripts/Makefile.modbuiltin | |||
| @@ -14,6 +14,11 @@ __modbuiltin: | |||
| 14 | 14 | ||
| 15 | include scripts/Kbuild.include | 15 | include scripts/Kbuild.include |
| 16 | 16 | ||
| 17 | ifneq ($(KBUILD_SRC),) | ||
| 18 | # Create output directory if not already present | ||
| 19 | _dummy := $(shell [ -d $(obj) ] || mkdir -p $(obj)) | ||
| 20 | endif | ||
| 21 | |||
| 17 | # The filename Kbuild has precedence over Makefile | 22 | # The filename Kbuild has precedence over Makefile |
| 18 | kbuild-dir := $(if $(filter /%,$(src)),$(src),$(srctree)/$(src)) | 23 | kbuild-dir := $(if $(filter /%,$(src)),$(src),$(srctree)/$(src)) |
| 19 | kbuild-file := $(if $(wildcard $(kbuild-dir)/Kbuild),$(kbuild-dir)/Kbuild,$(kbuild-dir)/Makefile) | 24 | kbuild-file := $(if $(wildcard $(kbuild-dir)/Kbuild),$(kbuild-dir)/Kbuild,$(kbuild-dir)/Makefile) |
diff --git a/scripts/binoffset.c b/scripts/binoffset.c deleted file mode 100644 index 1a2e39b8e3e5..000000000000 --- a/scripts/binoffset.c +++ /dev/null | |||
| @@ -1,163 +0,0 @@ | |||
| 1 | /*************************************************************************** | ||
| 2 | * binoffset.c | ||
| 3 | * (C) 2002 Randy Dunlap <rdunlap@xenotime.net> | ||
| 4 | |||
| 5 | # This program is free software; you can redistribute it and/or modify | ||
| 6 | # it under the terms of the GNU General Public License as published by | ||
| 7 | # the Free Software Foundation; either version 2 of the License, or | ||
| 8 | # (at your option) any later version. | ||
| 9 | # | ||
| 10 | # This program is distributed in the hope that it will be useful, | ||
| 11 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 12 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 13 | # GNU General Public License for more details. | ||
| 14 | # | ||
| 15 | # You should have received a copy of the GNU General Public License | ||
| 16 | # along with this program; if not, write to the Free Software | ||
| 17 | # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. | ||
| 18 | |||
| 19 | # binoffset.c: | ||
| 20 | # - searches a (binary) file for a specified (binary) pattern | ||
| 21 | # - returns the offset of the located pattern or ~0 if not found | ||
| 22 | # - exits with exit status 0 normally or non-0 if pattern is not found | ||
| 23 | # or any other error occurs. | ||
| 24 | |||
| 25 | ****************************************************************/ | ||
| 26 | |||
| 27 | #include <stdio.h> | ||
| 28 | #include <stdlib.h> | ||
| 29 | #include <string.h> | ||
| 30 | #include <errno.h> | ||
| 31 | #include <unistd.h> | ||
| 32 | #include <fcntl.h> | ||
| 33 | #include <sys/types.h> | ||
| 34 | #include <sys/stat.h> | ||
| 35 | #include <sys/mman.h> | ||
| 36 | |||
| 37 | #define VERSION "0.1" | ||
| 38 | #define BUF_SIZE (16 * 1024) | ||
| 39 | #define PAT_SIZE 100 | ||
| 40 | |||
| 41 | char *progname; | ||
| 42 | char *inputname; | ||
| 43 | int inputfd; | ||
| 44 | unsigned int bix; /* buf index */ | ||
| 45 | unsigned char patterns [PAT_SIZE] = {0}; /* byte-sized pattern array */ | ||
| 46 | int pat_len; /* actual number of pattern bytes */ | ||
| 47 | unsigned char *madr; /* mmap address */ | ||
| 48 | size_t filesize; | ||
| 49 | int num_matches = 0; | ||
| 50 | off_t firstloc = 0; | ||
| 51 | |||
| 52 | void usage (void) | ||
| 53 | { | ||
| 54 | fprintf (stderr, "%s ver. %s\n", progname, VERSION); | ||
| 55 | fprintf (stderr, "usage: %s filename pattern_bytes\n", | ||
| 56 | progname); | ||
| 57 | fprintf (stderr, " [prints location of pattern_bytes in file]\n"); | ||
| 58 | exit (1); | ||
| 59 | } | ||
| 60 | |||
| 61 | void get_pattern (int pat_count, char *pats []) | ||
| 62 | { | ||
| 63 | int ix, err, tmp; | ||
| 64 | |||
| 65 | #ifdef DEBUG | ||
| 66 | fprintf (stderr,"get_pattern: count = %d\n", pat_count); | ||
| 67 | for (ix = 0; ix < pat_count; ix++) | ||
| 68 | fprintf (stderr, " pat # %d: [%s]\n", ix, pats[ix]); | ||
| 69 | #endif | ||
| 70 | |||
| 71 | for (ix = 0; ix < pat_count; ix++) { | ||
| 72 | tmp = 0; | ||
| 73 | err = sscanf (pats[ix], "%5i", &tmp); | ||
| 74 | if (err != 1 || tmp > 0xff) { | ||
| 75 | fprintf (stderr, "pattern or value error in pattern # %d [%s]\n", | ||
| 76 | ix, pats[ix]); | ||
| 77 | usage (); | ||
| 78 | } | ||
| 79 | patterns [ix] = tmp; | ||
| 80 | } | ||
| 81 | pat_len = pat_count; | ||
| 82 | } | ||
| 83 | |||
| 84 | void search_pattern (void) | ||
| 85 | { | ||
| 86 | for (bix = 0; bix < filesize; bix++) { | ||
| 87 | if (madr[bix] == patterns[0]) { | ||
| 88 | if (memcmp (&madr[bix], patterns, pat_len) == 0) { | ||
| 89 | if (num_matches == 0) | ||
| 90 | firstloc = bix; | ||
| 91 | num_matches++; | ||
| 92 | } | ||
| 93 | } | ||
| 94 | } | ||
| 95 | } | ||
| 96 | |||
| 97 | #ifdef NOTDEF | ||
| 98 | size_t get_filesize (int fd) | ||
| 99 | { | ||
| 100 | off_t end_off = lseek (fd, 0, SEEK_END); | ||
| 101 | lseek (fd, 0, SEEK_SET); | ||
| 102 | return (size_t) end_off; | ||
| 103 | } | ||
| 104 | #endif | ||
| 105 | |||
| 106 | size_t get_filesize (int fd) | ||
| 107 | { | ||
| 108 | int err; | ||
| 109 | struct stat stat; | ||
| 110 | |||
| 111 | err = fstat (fd, &stat); | ||
| 112 | fprintf (stderr, "filesize: %ld\n", err < 0 ? (long)err : stat.st_size); | ||
| 113 | if (err < 0) | ||
| 114 | return err; | ||
| 115 | return (size_t) stat.st_size; | ||
| 116 | } | ||
| 117 | |||
| 118 | int main (int argc, char *argv []) | ||
| 119 | { | ||
| 120 | progname = argv[0]; | ||
| 121 | |||
| 122 | if (argc < 3) | ||
| 123 | usage (); | ||
| 124 | |||
| 125 | get_pattern (argc - 2, argv + 2); | ||
| 126 | |||
