Add dumpVersion to write the package version-release information into /etc/kernel

This commit is contained in:
Ozan Çağlayan
2009-05-22 12:30:19 +00:00
parent 3992844247
commit 571db4757f
+9
View File
@@ -131,9 +131,18 @@ def configure():
# Building and nstallation stuff #
##################################
def dumpVersion():
# Writes the specific kernel version into /etc/kernel
destination = os.path.join(get.installDIR(), "etc/kernel/")
if not os.path.exists(destination):
os.makedirs(destination)
open(os.path.join(destination, get.srcNAME()), "w").write("%s-%s" % (get.srcVERSION(), get.srcRELEASE()))
def build(debugSymbols=False):
extra_config = ["CONFIG_DEBUG_SECTION_MISMATCH=y"]
if debugSymbols:
# Enable debugging symbols (-g -gdwarf2)
extra_config.append("CONFIG_DEBUG_INFO=y")
autotools.make("%s" " ".join(extra_config))