37 lines
1.0 KiB
Python
37 lines
1.0 KiB
Python
#!/usr/bin/python
|
|
# -*- coding: utf-8 -*-
|
|
#
|
|
# Licensed under the GNU General Public License, version 3.
|
|
# See the file http://www.gnu.org/licenses/gpl.txt
|
|
|
|
from pisi.actionsapi import kerneltools
|
|
from pisi.actionsapi import shelltools
|
|
from pisi.actionsapi import autotools
|
|
from pisi.actionsapi import pisitools
|
|
from pisi.actionsapi import get
|
|
|
|
NoStrip = ["/lib", "/boot"]
|
|
|
|
shelltools.export("KBUILD_BUILD_USER", "pisilinux")
|
|
shelltools.export("KBUILD_BUILD_HOST", "buildfarm")
|
|
shelltools.export("PYTHONDONTWRITEBYTECODE", "1")
|
|
|
|
#cpupower_arch = get.ARCH().replace("i686", "i386")
|
|
|
|
def setup():
|
|
kerneltools.configure()
|
|
|
|
def build():
|
|
kerneltools.build(debugSymbols=False)
|
|
|
|
def install():
|
|
kerneltools.install()
|
|
|
|
# Install kernel headers needed for out-of-tree module compilation
|
|
kerneltools.installHeaders()
|
|
|
|
kerneltools.installLibcHeaders()
|
|
|
|
# Generate some module lists to use within mkinitramfs
|
|
shelltools.system("./generate-module-list %s/lib/modules/%s" % (get.installDIR(), kerneltools.__getSuffix()))
|