Esempio n. 1
0
def install():
    kerneltools.install()

    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")
Esempio n. 2
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()))
Esempio n. 3
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()))
Esempio n. 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()))

    # Install the perf tool
    pisitools.insinto("/usr/bin", "tools/perf/perf",
                      "perf.%s-%s" % (get.srcNAME(), get.srcVERSION()))
Esempio n. 5
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()))
Esempio n. 6
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")
Esempio n. 7
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()))
Esempio n. 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()))
Esempio n. 9
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()))
Esempio n. 10
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")
Esempio n. 11
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()))
Esempio n. 12
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")