[PATCH] fix for xconfig

Jakub Jelinek (jj@sunsite.ms.mff.cuni.cz)
Thu, 6 Aug 1998 12:50:05 +0200 (MET DST)


Hi!

This simple patch fixes the problems many people are seeing with xconfig
and e.g. drivers/video's Config.in. The problem is that it uses "$ARCH"
a lot, which works well with menuconfig, config and oldconfig, but does not
work at all with xconfig.
This patch is probably only a part of solution for this problem. Now, people
will see a huge load of options they can never set and thus will be always
grayed, e.g. because they are never valid for that arch. It works right, but
it would be much nicer to offer only those options which could be settable.
That would require some more changes to scripts/tk*.c, like finding out if
a conditional will be always false with the ARCH... It could even consider
define_bools which do not depend on any other condition. Anybody interested
to write something like that?
So for now, just this simple patch:

--- scripts/Makefile.jj Tue Jul 28 09:59:31 1998
+++ scripts/Makefile Thu Aug 6 11:43:51 1998
@@ -17,6 +17,7 @@
cat ${HEADER} >> ./kconfig.tk
./tkparse < ../arch/${ARCH}/config.in >> kconfig.tk
echo "set defaults \"arch/${ARCH}/defconfig\"" >> kconfig.tk
+ echo "set ARCH \"${ARCH}\"" >> kconfig.tk
cat ${TAIL} >> kconfig.tk
chmod 755 kconfig.tk

Cheers,
Jakub
___________________________________________________________________
Jakub Jelinek | jj@sunsite.mff.cuni.cz | http://sunsite.mff.cuni.cz
Administrator of SunSITE Czech Republic, MFF, Charles University
___________________________________________________________________
Ultralinux - first 64bit OS to take full power of the UltraSparc
Linux version 2.1.115 on a sparc64 machine (498.80 BogoMips).
___________________________________________________________________

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.altern.org/andrebalsa/doc/lkml-faq.html