Handle packages which are not kernel modules, install symlink in the kernel-source package.
This commit is contained in:
@@ -56,8 +56,13 @@ def __getFlavour():
|
|||||||
|
|
||||||
def __getModuleFlavour():
|
def __getModuleFlavour():
|
||||||
for fl in [_f for _f in __getAllSupportedFlavours() if "-" in _f]:
|
for fl in [_f for _f in __getAllSupportedFlavours() if "-" in _f]:
|
||||||
|
try:
|
||||||
if fl.split("-")[1] == get.srcNAME().split("-")[1]:
|
if fl.split("-")[1] == get.srcNAME().split("-")[1]:
|
||||||
return fl
|
return fl
|
||||||
|
except IndexError:
|
||||||
|
# the package is not a module, may be a userspace application
|
||||||
|
# needing the kernel sources/headers for only reference.
|
||||||
|
pass
|
||||||
|
|
||||||
return "kernel"
|
return "kernel"
|
||||||
|
|
||||||
@@ -269,6 +274,9 @@ def installSource():
|
|||||||
autotools.make("modules_prepare")
|
autotools.make("modules_prepare")
|
||||||
shelltools.system("find . -path './.*' | xargs rm -rf")
|
shelltools.system("find . -path './.*' | xargs rm -rf")
|
||||||
|
|
||||||
|
# Create the symlink
|
||||||
|
pisitools.dosym("/%s" % destination, "/lib/modules/%s/source" % suffix)
|
||||||
|
|
||||||
def cleanModuleFiles():
|
def cleanModuleFiles():
|
||||||
""" Cleans module.* files generated by depmod """
|
""" Cleans module.* files generated by depmod """
|
||||||
# Remove modules.* files, they will be autogenerated during pakhandler.
|
# Remove modules.* files, they will be autogenerated during pakhandler.
|
||||||
|
|||||||
Reference in New Issue
Block a user