[uClibc][PATCH] Fix 'make defconfig'
M. R. Brown
mrbrown at 0xd6.org
Tue Nov 5 03:42:00 UTC 2002
The attached patch fixes the defconfig target. Note you need a
extra/Configs/Config.$(TARGET_ARCH).default file for defconfig to work, this
just fixes the issue where $(TARGET_ARCH) wasn't being resolved in conf.
The modification to Makefile feels like a kludge, but I couldn't think of a
better way to pass TARGET_ARCH atm.
M. R.
-------------- next part --------------
Index: Makefile
===================================================================
RCS file: /var/cvs/uClibc/Makefile,v
retrieving revision 1.188
diff -u -b -B -w -p -r1.188 Makefile
--- Makefile 3 Nov 2002 13:22:00 -0000 1.188
+++ Makefile 5 Nov 2002 03:38:51 -0000
@@ -327,7 +327,7 @@ allnoconfig: extra/config/conf
defconfig: extra/config/conf
rm -rf include/bits
mkdir -p include/bits
- @./extra/config/conf -d extra/Configs/Config.$(TARGET_ARCH)
+ @TARGET_ARCH=$(TARGET_ARCH) ./extra/config/conf -d extra/Configs/Config.$(TARGET_ARCH)
clean:
Index: extra/config/symbol.c
===================================================================
RCS file: /var/cvs/uClibc/extra/config/symbol.c,v
retrieving revision 1.1
diff -u -b -B -w -p -r1.1 symbol.c
--- extra/config/symbol.c 31 Oct 2002 18:19:07 -0000 1.1
+++ extra/config/symbol.c 5 Nov 2002 03:38:51 -0000
@@ -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)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.busybox.net/pipermail/uclibc/attachments/20021104/dbbc1f32/attachment.pgp
More information about the uClibc
mailing list