예제 #1
0
def install():
    kerneltools.install()

    # Dump kernel version into /etc/kernel/
    kerneltools.dumpVersion()

    # Install kernel headers needed for out-of-tree module compilation
    # You can provide a list of extra directories from which to grab *.h files.
    kerneltools.installHeaders(extra=["drivers/media/dvb/dvb-core",
                                      "drivers/media/dvb/frontends",
                                      "drivers/media/video"])

    # Drop /usr/include/scsi directory as it's shipped within glibc
    kerneltools.installLibcHeaders(excludes=["scsi"])

    # Install kernel source
    kerneltools.installSource()

    # Clean module-init-tools related stuff
    kerneltools.cleanModuleFiles()

    # Build and install the new 'perf' tool
    autotools.make("V=1 -C tools/perf perf")
    pisitools.insinto("/usr/bin", "tools/perf/perf", "perf.%s-%s" % (get.srcNAME(), get.srcVERSION()))
    autotools.install("-C tools/perf/Documentation install-man mandir=%s/usr/share/man" % get.installDIR())
예제 #2
0
def install():
    kerneltools.install()

    # Dump kernel version into /etc/kernel/
    kerneltools.dumpVersion()

    # Install kernel headers needed for out-of-tree module compilation
    # You can provide a list of extra directories from which to grab *.h files.
    kerneltools.installHeaders(extra=["drivers/media/dvb/dvb-core",
                                      "drivers/media/dvb/frontends",
                                      "drivers/media/video"])

    kerneltools.installLibcHeaders()
    kerneltools.installSource()

    # This will now be created in postInstall
    # kerneltools.mkinitramfs()
    kerneltools.cleanModuleFiles()