diff options
Diffstat (limited to 'scripts')
| -rw-r--r-- | scripts/Makefile.lib | 4 | ||||
| -rw-r--r-- | scripts/kconfig/util.c | 2 | ||||
| -rw-r--r-- | scripts/mod/file2alias.c | 14 | ||||
| -rwxr-xr-x | scripts/package/mkspec | 2 | ||||
| -rw-r--r-- | scripts/selinux/genheaders/genheaders.c | 2 |
5 files changed, 21 insertions, 3 deletions
diff --git a/scripts/Makefile.lib b/scripts/Makefile.lib index f9bdf264473d..cbcd654215e6 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/kconfig/util.c b/scripts/kconfig/util.c index b6b2a46af14c..25d1ec4ca28a 100644 --- a/scripts/kconfig/util.c +++ b/scripts/kconfig/util.c | |||
| @@ -72,7 +72,7 @@ int file_write_dep(const char *name) | |||
| 72 | } | 72 | } |
| 73 | 73 | ||
| 74 | 74 | ||
| 75 | /* Allocate initial growable sting */ | 75 | /* Allocate initial growable string */ |
| 76 | struct gstr str_new(void) | 76 | struct gstr str_new(void) |
| 77 | { | 77 | { |
| 78 | struct gstr gs; | 78 | struct gstr gs; |
diff --git a/scripts/mod/file2alias.c b/scripts/mod/file2alias.c index 220213e603db..df90f31d14bf 100644 --- a/scripts/mod/file2alias.c +++ b/scripts/mod/file2alias.c | |||
| @@ -796,6 +796,16 @@ static int do_platform_entry(const char *filename, | |||
| 796 | return 1; | 796 | return 1; |
| 797 | } | 797 | } |
| 798 | 798 | ||
| 799 | /* Looks like: zorro:iN. */ | ||
| 800 | static int do_zorro_entry(const char *filename, struct zorro_device_id *id, | ||
| 801 | char *alias) | ||
| 802 | { | ||
| 803 | id->id = TO_NATIVE(id->id); | ||
| 804 | strcpy(alias, "zorro:"); | ||
| 805 | ADD(alias, "i", id->id != ZORRO_WILDCARD, id->id); | ||
| 806 | return 1; | ||
| 807 | } | ||
| 808 | |||
| 799 | /* Ignore any prefix, eg. some architectures prepend _ */ | 809 | /* Ignore any prefix, eg. some architectures prepend _ */ |
| 800 | static inline int sym_is(const char *symbol, const char *name) | 810 | static inline int sym_is(const char *symbol, const char *name) |
| 801 | { | 811 | { |
| @@ -943,6 +953,10 @@ void handle_moddevtable(struct module *mod, struct elf_info *info, | |||
| 943 | do_table(symval, sym->st_size, | 953 | do_table(symval, sym->st_size, |
| 944 | sizeof(struct platform_device_id), "platform", | 954 | sizeof(struct platform_device_id), "platform", |
| 945 | do_platform_entry, mod); | 955 | do_platform_entry, mod); |
| 956 | else if (sym_is(symname, "__mod_zorro_device_table")) | ||
| 957 | do_table(symval, sym->st_size, | ||
| 958 | sizeof(struct zorro_device_id), "zorro", | ||
| 959 | do_zorro_entry, mod); | ||
| 946 | free(zeros); | 960 | free(zeros); |
| 947 | } | 961 | } |
| 948 | 962 | ||
diff --git a/scripts/package/mkspec b/scripts/package/mkspec index 47bdd2f99b78..fa27f3dac769 100755 --- a/scripts/package/mkspec +++ b/scripts/package/mkspec | |||
| @@ -1,6 +1,6 @@ | |||
| 1 | #!/bin/sh | 1 | #!/bin/sh |
| 2 | # | 2 | # |
| 3 | # Output a simple RPM spec file that uses no fancy features requring | 3 | # Output a simple RPM spec file that uses no fancy features requiring |
| 4 | # RPM v4. This is intended to work with any RPM distro. | 4 | # RPM v4. This is intended to work with any RPM distro. |
| 5 | # | 5 | # |
| 6 | # The only gothic bit here is redefining install_post to avoid | 6 | # The only gothic bit here is redefining install_post to avoid |
diff --git a/scripts/selinux/genheaders/genheaders.c b/scripts/selinux/genheaders/genheaders.c index 24626968055d..58a12c278706 100644 --- a/scripts/selinux/genheaders/genheaders.c +++ b/scripts/selinux/genheaders/genheaders.c | |||
| @@ -81,7 +81,7 @@ int main(int argc, char *argv[]) | |||
| 81 | fprintf(fout, "\n"); | 81 | fprintf(fout, "\n"); |
| 82 | 82 | ||
| 83 | for (i = 1; i < isids_len; i++) { | 83 | for (i = 1; i < isids_len; i++) { |
| 84 | char *s = initial_sid_to_string[i]; | 84 | const char *s = initial_sid_to_string[i]; |
| 85 | fprintf(fout, "#define SECINITSID_%s", s); | 85 | fprintf(fout, "#define SECINITSID_%s", s); |
| 86 | for (j = 0; j < max(1, 40 - strlen(s)); j++) | 86 | for (j = 0; j < max(1, 40 - strlen(s)); j++) |
| 87 | fprintf(fout, " "); | 87 | fprintf(fout, " "); |
