diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2009-04-13 15:20:01 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2009-04-13 15:20:01 -0400 |
commit | 80a04d3f2f94fb68b5df05e3ac6697130bc3467a (patch) | |
tree | 792449152961db67e4a2855af4518db55822ff64 /scripts | |
parent | eebb2afb82c4f999e850d198af26ce6969d0f47a (diff) | |
parent | 2810ae8c73cbfb37891aa99dfbca46ffd40dbc91 (diff) |
Merge git://git.kernel.org/pub/scm/linux/kernel/git/sam/kbuild-fixes
* git://git.kernel.org/pub/scm/linux/kernel/git/sam/kbuild-fixes:
docbook: make cleandocs
kbuild: fix spurious initramfs rebuild
Documentation: explain the difference between __bitwise and __bitwise__
kbuild: make it possible for the linker to discard local symbols from vmlinux
kbuild: remove pointless strdup() on arguments passed to new_module() in modpost
kbuild: fix a few typos in top-level Makefile
kbuild: introduce destination-y for exported headers
kbuild: use git svn instead of git-svn in setlocalversion
kconfig: fix update-po-config to accect backslash in input
kbuild: fix option processing for -I in headerdep
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/Makefile.headersinst | 2 | ||||
-rw-r--r-- | scripts/gen_initramfs_list.sh | 2 | ||||
-rwxr-xr-x | scripts/headerdep.pl | 2 | ||||
-rw-r--r-- | scripts/kconfig/kxgettext.c | 4 | ||||
-rw-r--r-- | scripts/mod/modpost.c | 4 | ||||
-rwxr-xr-x | scripts/setlocalversion | 2 |
6 files changed, 11 insertions, 5 deletions
diff --git a/scripts/Makefile.headersinst b/scripts/Makefile.headersinst index 612dc13ddd85..095cfc8b9dbf 100644 --- a/scripts/Makefile.headersinst +++ b/scripts/Makefile.headersinst | |||
@@ -14,6 +14,8 @@ _dst := $(if $(dst),$(dst),$(obj)) | |||
14 | kbuild-file := $(srctree)/$(obj)/Kbuild | 14 | kbuild-file := $(srctree)/$(obj)/Kbuild |
15 | include $(kbuild-file) | 15 | include $(kbuild-file) |
16 | 16 | ||
17 | _dst := $(if $(destination-y),$(destination-y),$(_dst)) | ||
18 | |||
17 | include scripts/Kbuild.include | 19 | include scripts/Kbuild.include |
18 | 20 | ||
19 | install := $(INSTALL_HDR_PATH)/$(_dst) | 21 | install := $(INSTALL_HDR_PATH)/$(_dst) |
diff --git a/scripts/gen_initramfs_list.sh b/scripts/gen_initramfs_list.sh index 3eea8f15131b..76af5f9623e3 100644 --- a/scripts/gen_initramfs_list.sh +++ b/scripts/gen_initramfs_list.sh | |||
@@ -97,7 +97,7 @@ print_mtime() { | |||
97 | } | 97 | } |
98 | 98 | ||
99 | list_parse() { | 99 | list_parse() { |
100 | echo "$1 \\" | 100 | [ ! -L "$1" ] && echo "$1 \\" || : |
101 | } | 101 | } |
102 | 102 | ||
103 | # for each file print a line in following format | 103 | # for each file print a line in following format |
diff --git a/scripts/headerdep.pl b/scripts/headerdep.pl index 97399da89ef2..b7f6c560e24d 100755 --- a/scripts/headerdep.pl +++ b/scripts/headerdep.pl | |||
@@ -19,7 +19,7 @@ my $opt_graph; | |||
19 | version => \&version, | 19 | version => \&version, |
20 | 20 | ||
21 | all => \$opt_all, | 21 | all => \$opt_all, |
22 | I => \@opt_include, | 22 | "I=s" => \@opt_include, |
23 | graph => \$opt_graph, | 23 | graph => \$opt_graph, |
24 | ); | 24 | ); |
25 | 25 | ||
diff --git a/scripts/kconfig/kxgettext.c b/scripts/kconfig/kxgettext.c index 6eb72a7f2562..8d9ce22b0fc5 100644 --- a/scripts/kconfig/kxgettext.c +++ b/scripts/kconfig/kxgettext.c | |||
@@ -43,6 +43,10 @@ static char *escape(const char* text, char *bf, int len) | |||
43 | ++text; | 43 | ++text; |
44 | goto next; | 44 | goto next; |
45 | } | 45 | } |
46 | else if (*text == '\\') { | ||
47 | *bfp++ = '\\'; | ||
48 | len--; | ||
49 | } | ||
46 | *bfp++ = *text++; | 50 | *bfp++ = *text++; |
47 | next: | 51 | next: |
48 | --len; | 52 | --len; |
diff --git a/scripts/mod/modpost.c b/scripts/mod/modpost.c index 8cc70612984c..df6e6286a065 100644 --- a/scripts/mod/modpost.c +++ b/scripts/mod/modpost.c | |||
@@ -1913,7 +1913,7 @@ static void read_dump(const char *fname, unsigned int kernel) | |||
1913 | if (!mod) { | 1913 | if (!mod) { |
1914 | if (is_vmlinux(modname)) | 1914 | if (is_vmlinux(modname)) |
1915 | have_vmlinux = 1; | 1915 | have_vmlinux = 1; |
1916 | mod = new_module(NOFAIL(strdup(modname))); | 1916 | mod = new_module(modname); |
1917 | mod->skip = 1; | 1917 | mod->skip = 1; |
1918 | } | 1918 | } |
1919 | s = sym_add_exported(symname, mod, export_no(export)); | 1919 | s = sym_add_exported(symname, mod, export_no(export)); |
@@ -1997,7 +1997,7 @@ static void read_markers(const char *fname) | |||
1997 | 1997 | ||
1998 | mod = find_module(modname); | 1998 | mod = find_module(modname); |
1999 | if (!mod) { | 1999 | if (!mod) { |
2000 | mod = new_module(NOFAIL(strdup(modname))); | 2000 | mod = new_module(modname); |
2001 | mod->skip = 1; | 2001 | mod->skip = 1; |
2002 | } | 2002 | } |
2003 | if (is_vmlinux(modname)) { | 2003 | if (is_vmlinux(modname)) { |
diff --git a/scripts/setlocalversion b/scripts/setlocalversion index f1c4b35bc324..47e75b69a2e9 100755 --- a/scripts/setlocalversion +++ b/scripts/setlocalversion | |||
@@ -21,7 +21,7 @@ if head=`git rev-parse --verify --short HEAD 2>/dev/null`; then | |||
21 | 21 | ||
22 | # Is this git on svn? | 22 | # Is this git on svn? |
23 | if git config --get svn-remote.svn.url >/dev/null; then | 23 | if git config --get svn-remote.svn.url >/dev/null; then |
24 | printf -- '-svn%s' "`git-svn find-rev $head`" | 24 | printf -- '-svn%s' "`git svn find-rev $head`" |
25 | fi | 25 | fi |
26 | 26 | ||
27 | # Are there uncommitted changes? | 27 | # Are there uncommitted changes? |