Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 139176
b: refs/heads/master
c: dc71768
h: refs/heads/master
v: v3
  • Loading branch information
WANG Cong authored and Linus Torvalds committed Apr 1, 2009
1 parent ec81b19 commit 10340db
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 6 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 792dd4fc317e1f94a6af111a0979c1c0d8c14453
refs/heads/master: dc71768742b39bca298e9ca6c91e575cd4b140e6
6 changes: 3 additions & 3 deletions trunk/arch/um/kernel/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -28,17 +28,17 @@ $(obj)/config.tmp: $(objtree)/.config FORCE
$(call if_changed,quote1)

quiet_cmd_quote1 = QUOTE $@
cmd_quote1 = sed -e 's/"/\\"/g' -e 's/^/"/' -e 's/$$/\\n"/' \
cmd_quote1 = sed -e 's/"/\\"/g' -e 's/^/"/' -e 's/$$/\\n",/' \
$< > $@

$(obj)/config.c: $(src)/config.c.in $(obj)/config.tmp FORCE
$(call if_changed,quote2)

quiet_cmd_quote2 = QUOTE $@
cmd_quote2 = sed -e '/CONFIG/{' \
-e 's/"CONFIG"\;/""/' \
-e 's/"CONFIG"//' \
-e 'r $(obj)/config.tmp' \
-e 'a \' \
-e '""\;' \
-e '""' \
-e '}' \
$< > $@
8 changes: 6 additions & 2 deletions trunk/arch/um/kernel/config.c.in
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,15 @@
#include <stdlib.h>
#include "init.h"

static __initdata char *config = "CONFIG";
static __initdata const char *config[] = {
"CONFIG"
};

static int __init print_config(char *line, int *add)
{
printf("%s", config);
int i;
for (i = 0; i < sizeof(config)/sizeof(config[0]); i++)
printf("%s", config[i]);
exit(0);
}

Expand Down

0 comments on commit 10340db

Please sign in to comment.