summaryrefslogtreecommitdiff
path: root/extra/config
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2002-11-05 05:02:53 +0000
committerEric Andersen <andersen@codepoet.org>2002-11-05 05:02:53 +0000
commitebaee63a76b0c3117d72bcb7bf8cb3bf03a83361 (patch)
tree05216d14cb4825ef5812369686ec1a414cc2ce50 /extra/config
parentd79988b6ec28b70c2db783a847acedc4f6a42984 (diff)
Patch from M. R. Brown to fix 'make defconfig'
Diffstat (limited to 'extra/config')
-rw-r--r--extra/config/symbol.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/extra/config/symbol.c b/extra/config/symbol.c
index 59c88d253..d02876060 100644
--- a/extra/config/symbol.c
+++ b/extra/config/symbol.c
@@ -79,6 +79,13 @@ void sym_init(void)
sym->type = S_STRING;
sym->flags |= SYMBOL_AUTO;
sym_add_default(sym, uts.release);
+
+ sym = sym_lookup("TARGET_ARCH", 0);
+ sym->type = S_STRING;
+ sym->flags |= SYMBOL_AUTO;
+ p = getenv("TARGET_ARCH");
+ if (p)
+ sym_add_default(sym, p);
}
int sym_get_type(struct symbol *sym)