actionsapi/kerneltools: More fixes and cleanup
Avoid calling depmod Call nonint_oldconfig to check the configuration Call dumpVersion from here instead of actions.py
This commit is contained in:
@@ -169,23 +169,23 @@ def build(debugSymbols=False):
|
|||||||
def install():
|
def install():
|
||||||
suffix = __getSuffix()
|
suffix = __getSuffix()
|
||||||
|
|
||||||
|
# Dump kernel version under /etc/kernel
|
||||||
|
dumpVersion()
|
||||||
|
|
||||||
# Install kernel image
|
# Install kernel image
|
||||||
pisitools.insinto("/boot/", "arch/x86/boot/bzImage", "kernel-%s" % suffix)
|
pisitools.insinto("/boot/", "arch/x86/boot/bzImage", "kernel-%s" % suffix)
|
||||||
|
|
||||||
# Install the modules
|
# Install the modules
|
||||||
# mod-fw= avoids firmwares from installing
|
# mod-fw= avoids firmwares from installing
|
||||||
|
# Override DEPMOD= to not call depmod as it will be called
|
||||||
|
# during module-init-tools' package handler
|
||||||
autotools.rawInstall("INSTALL_MOD_PATH=%s/" % get.installDIR(),
|
autotools.rawInstall("INSTALL_MOD_PATH=%s/" % get.installDIR(),
|
||||||
"modules_install mod-fw=")
|
"DEPMOD=/bin/true modules_install mod-fw=")
|
||||||
|
|
||||||
# Remove symlinks first
|
# Remove symlinks first
|
||||||
pisitools.remove("/lib/modules/%s/source" % suffix)
|
pisitools.remove("/lib/modules/%s/source" % suffix)
|
||||||
pisitools.remove("/lib/modules/%s/build" % suffix)
|
pisitools.remove("/lib/modules/%s/build" % suffix)
|
||||||
|
|
||||||
# Create correct ones
|
|
||||||
pisitools.dodir("/lib/modules/%s/build" % suffix)
|
|
||||||
pisitools.dosym("/lib/modules/%s/build" % suffix,
|
|
||||||
"/lib/modules/%s/source" % suffix)
|
|
||||||
|
|
||||||
# Create extra/ and updates/ subdirectories
|
# Create extra/ and updates/ subdirectories
|
||||||
for _dir in ("extra", "updates"):
|
for _dir in ("extra", "updates"):
|
||||||
pisitools.dodir("/lib/modules/%s/%s" % (suffix, _dir))
|
pisitools.dodir("/lib/modules/%s/%s" % (suffix, _dir))
|
||||||
@@ -244,6 +244,7 @@ def installHeaders(extraHeaders=None):
|
|||||||
|
|
||||||
# Settle the correct build symlink to this headers
|
# Settle the correct build symlink to this headers
|
||||||
pisitools.dosym("/%s" % headersDirectoryName, "/lib/modules/%s/build" % suffix)
|
pisitools.dosym("/%s" % headersDirectoryName, "/lib/modules/%s/build" % suffix)
|
||||||
|
pisitools.dosym("build", "/lib/modules/%s/source" % suffix)
|
||||||
|
|
||||||
|
|
||||||
def installLibcHeaders(excludes=None):
|
def installLibcHeaders(excludes=None):
|
||||||
@@ -280,12 +281,3 @@ def installLibcHeaders(excludes=None):
|
|||||||
|
|
||||||
# Remove tmp directory
|
# Remove tmp directory
|
||||||
shelltools.system("rm -rf %s" % headers_tmp)
|
shelltools.system("rm -rf %s" % headers_tmp)
|
||||||
|
|
||||||
|
|
||||||
def cleanModuleFiles():
|
|
||||||
""" Cleans module.* files generated by depmod """
|
|
||||||
# Remove modules.* files, they will be autogenerated during pakhandler.
|
|
||||||
# Don't remove modules.order generated by kbuild for ordering the modules
|
|
||||||
# according to the link order.
|
|
||||||
shelltools.system("find %s/lib/modules/%s -name 'modules.*' \
|
|
||||||
-not -name 'modules.order' -exec rm -f '{}' \;" % (get.installDIR(), __getSuffix()))
|
|
||||||
|
|||||||
Reference in New Issue
Block a user