Add possibility to clean-up firmwares

This commit is contained in:
Ozan Çağlayan
2009-12-24 19:36:36 +00:00
parent e60595bd86
commit cd4486e1d9
+6 -2
View File
@@ -136,7 +136,7 @@ def updateKConfig():
# variables.
# Grr ugly but no solution.
shelltools.system('yes "" | make silentoldconfig')
shelltools.system('yes "" | make oldconfig')
###################################
@@ -159,7 +159,7 @@ def build(debugSymbols=False):
autotools.make("%s" % " ".join(extra_config))
def install():
def install(installFirmwares=True):
suffix = __getSuffix()
# Check if loadable module support is available or not before doing module specific tasks
@@ -180,6 +180,10 @@ def install():
# Install kernel image
pisitools.insinto("/boot/", "arch/x86/boot/bzImage", "kernel-%s" % suffix)
if not installFirmwares:
# For use with PAE e.g.
shelltools.system("rm -rf %s/lib/firmware" % get.installDIR())
def installHeaders(extra=[]):
""" Install the files needed to build out-of-tree kernel modules. """