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:
@@ -111,15 +111,13 @@ def __getExtraVersion():
|
|||||||
# Configuration stuff #
|
# Configuration stuff #
|
||||||
#######################
|
#######################
|
||||||
|
|
||||||
|
|
||||||
def configure():
|
def configure():
|
||||||
# Set EXTRAVERSION
|
|
||||||
extraversion = __getExtraVersion()
|
|
||||||
|
|
||||||
# I don't know what for but let's clean *.orig files
|
# I don't know what for but let's clean *.orig files
|
||||||
shelltools.system("find . -name \"*.orig\" | xargs rm -f")
|
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
|
# Configure the kernel
|
||||||
configtype = os.getenv("KCONFIG")
|
configtype = os.getenv("KCONFIG")
|
||||||
@@ -129,12 +127,16 @@ def configure():
|
|||||||
autotools.make("oldconfig")
|
autotools.make("oldconfig")
|
||||||
|
|
||||||
|
|
||||||
######################
|
##################################
|
||||||
# Installation stuff #
|
# Building and nstallation stuff #
|
||||||
######################
|
##################################
|
||||||
|
|
||||||
def build():
|
def build(debugSymbols=False):
|
||||||
autotools.make("CONFIG_DEBUG_SECTION_MISMATCH=y")
|
extra_config = ["CONFIG_DEBUG_SECTION_MISMATCH=y"]
|
||||||
|
if debugSymbols:
|
||||||
|
extra_config.append("CONFIG_DEBUG_INFO=y")
|
||||||
|
|
||||||
|
autotools.make("%s" " ".join(extra_config))
|
||||||
|
|
||||||
def install():
|
def install():
|
||||||
suffix = __getSuffix()
|
suffix = __getSuffix()
|
||||||
|
|||||||
Reference in New Issue
Block a user