From 571db4757f69da19eb29db50e14c8d73cfcc81d9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ozan=20=C3=87a=C4=9Flayan?= Date: Fri, 22 May 2009 12:30:19 +0000 Subject: [PATCH] Add dumpVersion to write the package version-release information into /etc/kernel --- pisi/actionsapi/kerneltools.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/pisi/actionsapi/kerneltools.py b/pisi/actionsapi/kerneltools.py index cb91e646..04fd983d 100644 --- a/pisi/actionsapi/kerneltools.py +++ b/pisi/actionsapi/kerneltools.py @@ -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))