Build the kernel with debug symbols if debugSymbols=True is given in actions.py. This will eliminate the necessarity of another kernel configuration patch for kernel-debug package.

This commit is contained in:
Ozan Çağlayan
2009-05-16 23:16:20 +00:00
parent bbe0bce1c5
commit 5deda08937
+11 -9
View File
@@ -111,15 +111,13 @@ def __getExtraVersion():
# Configuration stuff #
#######################
def configure():
# Set EXTRAVERSION
extraversion = __getExtraVersion()
# I don't know what for but let's clean *.orig files
shelltools.system("find . -name \"*.orig\" | xargs rm -f")
pisitools.dosed("Makefile", "EXTRAVERSION =.*", "EXTRAVERSION = %s" % extraversion)
# Set EXTRAVERSION
pisitools.dosed("Makefile", "EXTRAVERSION =.*", "EXTRAVERSION = %s" % __getExtraVersion())
# Configure the kernel
configtype = os.getenv("KCONFIG")
@@ -129,12 +127,16 @@ def configure():
autotools.make("oldconfig")
######################
# Installation stuff #
######################
##################################
# Building and nstallation stuff #
##################################
def build():
autotools.make("CONFIG_DEBUG_SECTION_MISMATCH=y")
def build(debugSymbols=False):
extra_config = ["CONFIG_DEBUG_SECTION_MISMATCH=y"]
if debugSymbols:
extra_config.append("CONFIG_DEBUG_INFO=y")
autotools.make("%s" " ".join(extra_config))
def install():
suffix = __getSuffix()