Use KCONFIG env variable for configuration type

This commit is contained in:
Ozan Çağlayan
2009-04-09 13:18:21 +00:00
parent ee0140e66e
commit 4fd69798db
+4 -3
View File
@@ -79,10 +79,11 @@ def configure():
pisitools.dosed("Makefile", "EXTRAVERSION =.*", "EXTRAVERSION = %s" % extraversion) pisitools.dosed("Makefile", "EXTRAVERSION =.*", "EXTRAVERSION = %s" % extraversion)
# Configure the kernel # Configure the kernel
if os.getenv("MENUCONFIG"): configtype = os.getenv("KCONFIG")
autotools.make("menuconfig") if configtype:
autotools.make(configtype)
else: else:
autotools.make("silentoldconfig") autotools.make("oldconfig")
def build(): def build():
autotools.make() autotools.make()