Exemple #1
0
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()))
    
    #mkinitcpio default config
    pisitools.dodir("/etc/mkinitcpio.d")
    shelltools.touch("linux.preset")
    

    shelltools.echo("linux.preset", "# mkinitcpio preset file for the 'linux' package\n" +
                    
                    'ALL_config="/etc/mkinitcpio.conf"\n'+
                    
                    'ALL_kver="/boot/kernel-%s"\n\n'% get.srcVERSION() +
                    "PRESETS=('default' 'fallback') \n\n" +
                    '#default_config="/etc/mkinitcpio.conf"\n' +
                    'default_image="/boot/initramfs-%s.img"\n'% get.srcVERSION() +
                    
                    '#default_options=""\n\n' +
                    '#fallback_config="/etc/mkinitcpio.conf"\n'+
                    'fallback_image="/boot/initramfs-%s-fallback.img"\n'% get.srcVERSION() +
                    'fallback_options="-S autodetect"\n')
    
    pisitools.insinto("/etc/mkinitcpio.d", "linux.preset")
Exemple #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"])

    # 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())
Exemple #3
0
def install():
    kerneltools.install()

    # Install kernel headers needed for out-of-tree module compilation
    kerneltools.installHeaders()

    kerneltools.installLibcHeaders()

    # Install cpupowertools stuff
    autotools.install(
        "-C tools/power/cpupower DESTDIR=%s libdir=/usr/lib mandir=/%s CPUFREQ_BENCH=false"
        % (get.installDIR(), get.manDIR()))

    pisitools.dobin("tools/power/cpupower/debug/%s/centrino-decode" %
                    cpupower_arch)
    pisitools.dobin("tools/power/cpupower/debug/%s/powernow-k8-decode" %
                    cpupower_arch)

    # Generate some module lists to use within mkinitramfs
    shelltools.system("./generate-module-list %s/lib/modules/%s" %
                      (get.installDIR(), kerneltools.__getSuffix()))

    # Build and install the new 'perf' tool
    pisitools.insinto("/usr/bin", "tools/perf/perf",
                      "perf.%s-%s" % (get.srcNAME(), get.srcVERSION()))
Exemple #4
0
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()))
    
    
    
    #mkinitcpio default config
    pisitools.dodir("/etc/mkinitcpio.d")
    shelltools.touch("linux.preset")
    

    shelltools.echo("linux.preset", 'ALL_config="/etc/mkinitcpio.conf"\n'+
                    
                    'ALL_kver="/boot/kernel-%s"\n'% get.srcVERSION() +

                    'default_image="/boot/initramfs-%s.img"\n'% get.srcVERSION() +
                    
                    'default_options="-S autodetect"\n')
    
    pisitools.insinto("/etc/mkinitcpio.d", "linux.preset")
Exemple #5
0
def install():
    kerneltools.install()
    
    # add objtool for external module building and enabled VALIDATION_STACK option
    pisitools.insinto("/usr/src/linux-headers-%s/tools/objtool" % get.srcVERSION(), "%s/tools/objtool/objtool" % get.curDIR())

    # 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()))
    
    #mkinitcpio default config
    pisitools.dodir("/etc/mkinitcpio.d")
    shelltools.touch("linux.preset")
        
    shelltools.echo("linux.preset", "# mkinitcpio preset file for the 'linux' package\n" +
                    
                    'ALL_config="/etc/mkinitcpio.conf"\n'+
                    
                    'ALL_kver="/boot/kernel-%s"\n\n'% get.srcVERSION() +
                    "PRESETS=('default' 'fallback') \n\n" +
                    '#default_config="/etc/mkinitcpio.conf"\n' +
                    'default_image="/boot/initramfs-%s.img"\n'% get.srcVERSION() +
                    
                    '#default_options=""\n\n' +
                    '#fallback_config="/etc/mkinitcpio.conf"\n'+
                    'fallback_image="/boot/initramfs-%s-fallback.img"\n'% get.srcVERSION() +
                    'fallback_options="-S autodetect"\n')
    
    pisitools.insinto("/etc/mkinitcpio.d", "linux.preset")
Exemple #6
0
def install():
    kerneltools.install()

    # Install kernel headers needed for out-of-tree module compilation
    kerneltools.installHeaders()

    # Generate some module lists to use within mkinitramfs
    shelltools.system("./generate-module-list %s/lib/modules/%s" % (get.installDIR(), kerneltools.__getSuffix()))
Exemple #7
0
def install():
    kerneltools.install()

    # Install kernel headers needed for out-of-tree module compilation
    kerneltools.installHeaders()

    # Generate some module lists to use within mkinitramfs
    shelltools.system("./generate-module-list %s/lib/modules/%s" %
                      (get.installDIR(), kerneltools.__getSuffix()))
Exemple #8
0
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()))

    # Build and install the new 'perf' tool
    pisitools.insinto("/usr/bin", "tools/perf/perf", "perf.%s-%s" % (get.srcNAME(), get.srcVERSION()))
Exemple #9
0
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()))

    # Build and install the new 'perf' tool
    pisitools.insinto("/usr/bin", "tools/perf/perf", "perf.%s-%s" % (get.srcNAME(), get.srcVERSION()))
Exemple #10
0
def install():
    # pisi needs patching to check if the links exist, before it removes them
    pisitools.dodir("/lib/modules/%s" % KVERSION)
    shelltools.echo("%s/lib/modules/%s/source" % (get.installDIR(), KVERSION), "mustFix")
    shelltools.echo("%s/lib/modules/%s/build" % (get.installDIR(), KVERSION), "mustFix")

    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()))
Exemple #11
0
def install():
    kerneltools.install()

    # Ugly hack to remove the firmwares
    pisitools.removeDir("/lib/firmware")

    # 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.cleanModuleFiles()
Exemple #12
0
def install():
    kerneltools.install()

    # Ugly hack to remove the firmwares
    pisitools.removeDir("/lib/firmware")

    # 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.cleanModuleFiles()
Exemple #13
0
def install():
    # pisi needs patching to check if the links exist, before it removes them
    pisitools.dodir("/lib/modules/%s" % KVERSION)
    shelltools.echo("%s/lib/modules/%s/source" % (get.installDIR(), KVERSION),
                    "mustFix")
    shelltools.echo("%s/lib/modules/%s/build" % (get.installDIR(), KVERSION),
                    "mustFix")

    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()))
Exemple #14
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()
def install():
    kerneltools.install()

    # Install kernel headers needed for out-of-tree module compilation
    kerneltools.installHeaders()

    kerneltools.installLibcHeaders()

    # Install cpupowertools stuff
    autotools.install("-C tools/power/cpupower DESTDIR=%s libdir=/usr/lib mandir=/%s CPUFREQ_BENCH=false" % (get.installDIR(), get.manDIR()))

    pisitools.dobin("tools/power/cpupower/debug/%s/centrino-decode" % cpupower_arch)
    pisitools.dobin("tools/power/cpupower/debug/%s/powernow-k8-decode" % cpupower_arch)

    # Generate some module lists to use within mkinitramfs
    shelltools.system("./generate-module-list %s/lib/modules/%s" % (get.installDIR(), kerneltools.__getSuffix()))

    # Build and install the new 'perf' tool
    pisitools.insinto("/usr/bin", "tools/perf/perf", "perf.%s-%s" % (get.srcNAME(), get.srcVERSION()))
Exemple #16
0
def install():
    kerneltools.install()

    # add objtool for external module building and enabled VALIDATION_STACK option
    pisitools.insinto(
        "/usr/src/linux-headers-%s/tools/objtool" % get.srcVERSION(),
        "%s/tools/objtool/objtool" % get.curDIR())

    # 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()))

    #mkinitcpio default config
    pisitools.dodir("/etc/mkinitcpio.d")
    shelltools.touch("linux.preset")

    shelltools.echo(
        "linux.preset", "# mkinitcpio preset file for the 'linux' package\n" +
        'ALL_config="/etc/mkinitcpio.conf"\n' +
        'ALL_kver="/boot/kernel-%s"\n\n' % get.srcVERSION() +
        "PRESETS=('default' 'fallback') \n\n" +
        '#default_config="/etc/mkinitcpio.conf"\n' +
        'default_image="/boot/initramfs-%s.img"\n' % get.srcVERSION() +
        '#default_options=""\n\n' +
        '#fallback_config="/etc/mkinitcpio.conf"\n' +
        'fallback_image="/boot/initramfs-%s-fallback.img"\n' %
        get.srcVERSION() + 'fallback_options="-S autodetect"\n')

    pisitools.insinto("/etc/mkinitcpio.d", "linux.preset")

    shelltools.cd("%s/usr/src/linux-headers-%s" %
                  (get.installDIR(), get.srcVERSION()))
    autotools.make("scripts")