Пример #1
0
def build():
    crosstools.make('-C src/util \
                     CC="%(HOSTCC)s" \
                     CC_FOR_BUILD="%(CC)s" \
                     CFLAGS= ' % crosstools.environment)

    crosstools.make()
Пример #2
0
def build():
    crosstools.make('CC="%(CC)s" \
                     CFLAGS="%(CFLAGS)s" \
                     LDFLAGS="%(LDFLAGS)s" \
                     CURSES=-lncurses \
                     lib64=lib \
                     m64=' % crosstools.environment)
Пример #3
0
def build():
    for package in shelltools.ls("."):
        if package in SkipFiles:
            continue
        shelltools.cd(package)
        crosstools.make()
        shelltools.cd("../")
Пример #4
0
def setup():
    crosstools.prepare()

    # Build binutils with LD_SYMBOLIC_FUNCTIONS=1 and reduce PLT relocations in libfd.so by 84%.
    shelltools.export("LD_SYMBOLIC_FUNCTIONS", "1")

    shelltools.system('AR=ar AS=as ./configure \
                       --prefix=/%(defaultprefixDIR)s \
                       --mandir=/%(manDIR)s \
                       --infodir=/%(infoDIR)s \
                       --datadir=/%(dataDIR)s \
                       --sysconfdir=/%(sysconfDIR)s \
                       --localstatedir=/%(localstateDIR)s \
                       --libexecdir=/%(libexecDIR)s \
                       --build=%(build)s \
                       --host=%(host)s \
                       --target=%(target)s \
                       --disable-nls \
                       --disable-werror \
                       --enable-shared \
                       --with-pkgversion="Pardus Linux for ARM" \
                       --with-bugurl=http://bugs.pardus.org.tr/' %
                      crosstools.environment)

    crosstools.make("configure-host")
Пример #5
0
def build():
    #needed by mozilla patch, swig must be run again
    shelltools.cd("python")
    shelltools.system("./swig_lcms")
    shelltools.cd("..")

    crosstools.make()
Пример #6
0
def build():
    crosstools.make('CC="%(CC)s" \
                     CFLAGS="%(CFLAGS)s" \
                     LDFLAGS="%(LDFLAGS)s" \
                     CURSES=-lncurses \
                     lib64=lib \
                     m64=' % crosstools.environment)
Пример #7
0
def build():
    #needed by mozilla patch, swig must be run again
    shelltools.cd("python")
    shelltools.system("./swig_lcms")
    shelltools.cd("..")

    crosstools.make()
Пример #8
0
def build():
    undef_variables()

    crosstools.environment["CFLAGS"] = cflags

    shelltools.cd("build")
    crosstools.make()
Пример #9
0
def build():
    extra_config = ["CONFIG_DEBUG_SECTION_MISMATCH=y", "CONFIG_DEBUG_INFO=y"]

    crosstools.make("%s ARCH=arm CROSS_COMPILE=%s-" % (" ".join(extra_config), crosstools.environment["target"]), cleanFlags=True)

    shelltools.system("%(OBJCOPY)s -O binary -R .note -R .comment -S arch/arm/boot/compressed/vmlinux linux.bin" % crosstools.environment)
    shelltools.system('mkimage \
                       -A arm \
                       -O linux \
                       -T kernel \
                       -C none \
                       -a 0x80008000 -e 0x80008000 \
                       -n "Pardus-ARM Kernel for OMAP3530" \
                       -d linux.bin arch/arm/boot/uImage')

    """
    ·   mkimage -A arm -O linux -T kernel -C gzip \
    ·   ·   -a 0 -e 0 -n "Linux Kernel Image" \
    ·   ·   -d linux.bin.gz uImage

    ·   tools/mkimage -A arch -O os -T type -C comp -a addr -e ep \
    ·   ·         -n name -d data_file image
    ·     -A ==> set architecture to 'arch'
    ·     -O ==> set operating system to 'os'
    ·     -T ==> set image type to 'type'
    ·     -C ==> set compression type 'comp'
    ·     -a ==> set load address to 'addr' (hex)
    ·     -e ==> set entry point to 'ep' (hex)
    ·     -n ==> set image name to 'name'
    ·     -d ==> use image data from 'datafile'
    """

    """
Пример #10
0
def build():
    undef_variables()

    crosstools.environment["CFLAGS"] = cflags

    shelltools.cd("build")
    crosstools.make()
Пример #11
0
def build():
    extra_config = ["CONFIG_DEBUG_SECTION_MISMATCH=y", "CONFIG_DEBUG_INFO=y"]

    crosstools.make("%s ARCH=arm CROSS_COMPILE=%s-" %
                    (" ".join(extra_config), crosstools.environment["target"]),
                    cleanFlags=True)

    shelltools.system(
        "%(OBJCOPY)s -O binary -R .note -R .comment -S arch/arm/boot/compressed/vmlinux linux.bin"
        % crosstools.environment)
    shelltools.system('mkimage \
                       -A arm \
                       -O linux \
                       -T kernel \
                       -C none \
                       -a 0x80008000 -e 0x80008000 \
                       -n "Pardus-ARM Kernel for OMAP3530" \
                       -d linux.bin arch/arm/boot/uImage')
    """
    ·   mkimage -A arm -O linux -T kernel -C gzip \
    ·   ·   -a 0 -e 0 -n "Linux Kernel Image" \
    ·   ·   -d linux.bin.gz uImage

    ·   tools/mkimage -A arch -O os -T type -C comp -a addr -e ep \
    ·   ·         -n name -d data_file image
    ·     -A ==> set architecture to 'arch'
    ·     -O ==> set operating system to 'os'
    ·     -T ==> set image type to 'type'
    ·     -C ==> set compression type 'comp'
    ·     -a ==> set load address to 'addr' (hex)
    ·     -e ==> set entry point to 'ep' (hex)
    ·     -n ==> set image name to 'name'
    ·     -d ==> use image data from 'datafile'
    """
    """
Пример #12
0
def build():
    crosstools.make('-C src/util \
                     CC="%(HOSTCC)s" \
                     CC_FOR_BUILD="%(CC)s" \
                     CFLAGS= ' % crosstools.environment)

    crosstools.make()
Пример #13
0
def setup():
    crosstools.prepare()

    # Build binutils with LD_SYMBOLIC_FUNCTIONS=1 and reduce PLT relocations in libfd.so by 84%.
    shelltools.export("LD_SYMBOLIC_FUNCTIONS", "1")

    shelltools.system('AR=ar AS=as ./configure \
                       --prefix=/%(defaultprefixDIR)s \
                       --mandir=/%(manDIR)s \
                       --infodir=/%(infoDIR)s \
                       --datadir=/%(dataDIR)s \
                       --sysconfdir=/%(sysconfDIR)s \
                       --localstatedir=/%(localstateDIR)s \
                       --libexecdir=/%(libexecDIR)s \
                       --build=%(build)s \
                       --host=%(host)s \
                       --target=%(target)s \
                       --disable-nls \
                       --disable-werror \
                       --enable-shared \
                       --with-pkgversion="Pardus Linux for ARM" \
                       --with-bugurl=http://bugs.pardus.org.tr/' %
                       crosstools.environment)

    crosstools.make("configure-host")
Пример #14
0
def setup():
    autotools.configure("--disable-static")

    # preparing host-side utils
    autotools.make('-C util \
                    CC_FOR_BUILD="%(HOSTCC)s" \
                    CFLAGS="%(HOSTCFLAGS)s"' % autotools.environment)
    shelltools.system("mv util/{,host}makestrs; make -C util clean")
Пример #15
0
def setup():
    autotools.configure("--disable-static")

    # preparing host-side utils
    autotools.make('-C util \
                    CC_FOR_BUILD="%(HOSTCC)s" \
                    CFLAGS="%(HOSTCFLAGS)s"' % autotools.environment)
    shelltools.system("mv util/{,host}makestrs; make -C util clean")
Пример #16
0
def build():
    crosstools.make("-j1")

    # fix pkg-config file prefix.
    pisitools.dosed("libck-connector/ck-connector.pc", "(^exec_prefix=).*$",
                    "\\1${prefix}")
    pisitools.dosed("libck-connector/ck-connector.pc", "(^includedir=).*$",
                    "\\1${prefix}/include")
Пример #17
0
def build():
    for package in shelltools.ls("."):
        if package.startswith(Skip):
            continue

        shelltools.cd(package)
        autotools.make()
        shelltools.cd("../")
Пример #18
0
def build():
    # FIXME: optimization flags
    crosstools.environment["CFLAGS"] = "-O3 -march=armv7-a -mtune=cortex-a8 -mfpu=neon -mfpu=vfp -mfloat-abi=softfp \
                                        -I%(SysRoot)s/usr/include" % crosstools.environment
    crosstools.make('CC="%(CC)s" \
                     RPM_OPT_FLAGS="%(CFLAGS)s" \
                     LD="%(LD)s" \
                     LDFLAGS="%(LDFLAGS)s"' % crosstools.environment)
Пример #19
0
def install():
    crosstools.make("DIST_ROOT=%s install install-lib install-dev" % get.installDIR())

    pisitools.remove("/lib/*.a")

    shelltools.chmod("%s/lib/libacl.so.*.*.*" % get.installDIR(), 0755)

    pisitools.dodoc("README")
Пример #20
0
def build():
    for package in shelltools.ls("."):
        if package.startswith(Skip):
            continue

        shelltools.cd(package)
        autotools.make()
        shelltools.cd("../")
Пример #21
0
def setup():
    #shelltools.export("CXXFLAGS", get.CXXFLAGS().replace("-D_FORTIFY_SOURCE=2", ""))
    #shelltools.export("CFLAGS", get.CFLAGS().replace("-D_FORTIFY_SOURCE=2", ""))
    pisitools.dosed("runtime/tools/mve.awk", "#!/usr/bin/nawk -f", "#!/usr/bin/awk -f")

    shelltools.echo("src/feature.h", "#define SYS_VIMRC_FILE \"/etc/vim/vimrc\"")

    pisitools.dosed("runtime/doc/syntax.txt", "(ctags(\"| [-*.]|\\s+/))", "exuberant-\\1")
    pisitools.dosed("runtime/doc/tagsrch.txt", "(ctags(\"| [-*.]|\\s+/))", "exuberant-\\1")
    pisitools.dosed("runtime/doc/usr_29.txt", "(ctags(\"| [-*.]|\\s+/))", "exuberant-\\1")
    pisitools.dosed("runtime/menu.vim", "(ctags(\"| [-*.]|\\s+/))", "exuberant-\\1")
    pisitools.dosed("src/configure.in", "(ctags(\"| [-*.]|\\s+/))", "exuberant-\\1")

    pisitools.dosed("src/configure.in", " libc\.h ", " ")
    pisitools.dosed("src/Makefile", " auto.config.mk:", ":")

    autotools.make("-C src autoconf")

    #fix sun-jdk sandbox error
    shelltools.export("MANPATH", "/usr/share/man")

    cache = [ "ac_cv_sizeof_wchar_t=4",
              "vim_cv_getcwd_broken=no",
              "vim_cv_memmove_handles_overlap=yes",
              "vim_cv_stat_ignores_slash=no",
              "vim_cv_terminfo=yes",
              "vim_cv_tgent=zero",
              "vim_cv_toupper_broken=no",
              "vim_cv_tty_group=world",
              "ac_cv_sizeof_int=4", 
              "ac_cv_small_wchar_t=no" \
              "vim_cv_getcwd_broken=no" \
              "vim_cv_memmove_handles_overlap=yes" \
              "vim_cv_stat_ignores_slash=no" \
              "vim_cv_terminfo=yes" \
              "vim_cv_tgent=non-zero" \
              "vim_cv_toupper_broken=no" \
              "vim_cv_tty_group=world", ]
    configure_args="--with-features=huge \
                    --enable-multibyte \
                    --enable-perlinterp \
                    --enable-pythoninterp \
                    --with-tlib=ncurses \
                    --disable-acl \
                    --with-compiledby=http://bugs.pardus.org.tr \
                    --with-modified-by=http://bugs.pardus.org.tr"

    shelltools.copytree("%s/vim72" % get.workDIR(),"build-gui")

    autotools.configure("%s\
                         --enable-gui=no" % configure_args, cache=cache, cacheFile="src/auto/config.cache")

    # Build gui
    shelltools.cd("build-gui")
    autotools.configure("%s\
                         --with-vim-name=vim-gtk \
                         --enable-gui=yes \
                         --with-x" % configure_args, cache=cache, cacheFile="src/auto/config.cache")
Пример #22
0
def build():
    # FIXME: optimization flags
    crosstools.environment[
        "CFLAGS"] = "-O3 -march=armv7-a -mtune=cortex-a8 -mfpu=neon -mfpu=vfp -mfloat-abi=softfp \
                                        -I%(SysRoot)s/usr/include" % crosstools.environment
    crosstools.make('CC="%(CC)s" \
                     RPM_OPT_FLAGS="%(CFLAGS)s" \
                     LD="%(LD)s" \
                     LDFLAGS="%(LDFLAGS)s"' % crosstools.environment)
Пример #23
0
def build():
    crosstools.make('CC="%(CC)s -fPIC" \
                     OPT="%(CFLAGS)s" \
                     STRIP="" \
                     SHARED="yes" \
                     PREFIX="/usr" \
                     IDSDIR="/usr/share/misc" \
                     MANDIR="/usr/share/man" \
                     all' % crosstools.environment)
Пример #24
0
def install():
    crosstools.make("DIST_ROOT=%s install install-lib install-dev" %
                    get.installDIR())

    pisitools.remove("/lib/*.a")

    shelltools.chmod("%s/lib/libacl.so.*.*.*" % get.installDIR(), 0755)

    pisitools.dodoc("README")
Пример #25
0
def build():
    shelltools.export("LC_ALL", "C")
    prepare_environment()
    crosstools.prepare()

    crosstools.make('CC="%(CC)s" \
                     KERNEL_INCLUDE="%(SysRoot)s/usr/include" \
                     RPM_OPT_FLAGS="%(CFLAGS)s" \
                     SUBDIRS="lib tc ip" \
                     CFLAGS="%(CFLAGS)s" \
                     LDFLAGS="%(LDFLAGS)s"' % crosstools.environment)
Пример #26
0
def build():
    shelltools.export("LC_ALL", "C")
    prepare_environment()
    crosstools.prepare()

    crosstools.make('CC="%(CC)s" \
                     KERNEL_INCLUDE="%(SysRoot)s/usr/include" \
                     RPM_OPT_FLAGS="%(CFLAGS)s" \
                     SUBDIRS="lib tc ip" \
                     CFLAGS="%(CFLAGS)s" \
                     LDFLAGS="%(LDFLAGS)s"' % crosstools.environment)
Пример #27
0
def build():
    pisitools.dosed("src/glut/glx/Makefile", r"(^include\s*\$\(TOP\)/configs/).*", "\\1linux-fbdev")

    shelltools.cd("src/glut/glx")
    autotools.make(
        'CC="%(CC)s" \
                    CFLAGS="%(CFLAGS)s -std=c99 -ffast-math -fexceptions -Wall -O3 -g -fPIC" \
                    LDFLAGS="%(LDFLAGS)s" \
                    X11_INCLUDES="-I%(RootDir)s/usr/include/X11" \
                    EXTRA_LIB_PATH="-L"%(RootDir)s/usr/lib'
        % autotools.environment
    )
Пример #28
0
def build():
    for dir in ["fc-case", "fc-lang", "fc-glyphname", "fc-arch"]:
        autotools.environment["dir"] = dir
        autotools.make(
            'CC="%(HOSTCC)s" \
                        LDCC="%(HOSTCC)s" \
                        CFLAGS="%(HOSTCFLAGS)s" \
                        LDFLAGS="%(HOSTLDFLAGS)s" \
                        -C %(dir)s'
            % autotools.environment
        )
    autotools.make('CC="%(CC)s"' % autotools.environment)
Пример #29
0
def build():
    crosstools.make()

    shelltools.cd("python")
    crosstools.environment["file"] = "py_magic"
    crosstools.environment["CFLAGS"] = "%(CFLAGS)s \
                                        -I%(RootDir)s/usr/include/python2.6 \
                                        -I../src -g3 -ggdb -fPIC" % crosstools.environment
    shelltools.system("%(CC)s %(CFLAGS)s -c %(file)s.c -o %(file)s.o" % crosstools.environment)

    shelltools.system("%(CC)s -shared %(CFLAGS)s %(LDFLAGS)s %(file)s.o \
                       -lpython2.6 -L../src/.libs -lmagic -o magic.so" % crosstools.environment)
    shelltools.cd("..")
Пример #30
0
def build():
    shelltools.export("CC", get.CC())

    crosstools.make("libdir")
    crosstools.make()
    crosstools.make("ether-wake")
    crosstools.make("i18ndir")
Пример #31
0
def install():
    crosstools.rawInstall("DESTDIR=%s tooldir=/usr" % get.installDIR())

    # Rebuild libbfd.a and libiberty.a with -fPIC
    pisitools.remove("/usr/lib/libbfd.a")
    pisitools.remove("/usr/lib/libiberty.a")
    #pisitools.remove("/usr/include/libiberty.h")

    crosstools.make("-C libiberty clean")
    crosstools.make('CFLAGS="-fPIC %s" -C libiberty' % get.CFLAGS())

    crosstools.make("-C bfd clean")
    crosstools.make('CFLAGS="-fPIC %s" -C bfd' % get.CFLAGS())

    pisitools.insinto("/usr/lib", "bfd/libbfd.a")
    pisitools.insinto("/usr/lib", "libiberty/libiberty.a")
    pisitools.insinto("/usr/include", "include/libiberty.h")

    # Prevent programs to link against libbfd and libopcodes dynamically,
    # they are changing far too often
    pisitools.remove("/usr/lib/libopcodes.so")
    pisitools.remove("/usr/lib/libbfd.so")

    # Remove libtool files, which reference the .so libs
    pisitools.remove("/usr/lib/libopcodes.la")
    pisitools.remove("/usr/lib/libbfd.la")
Пример #32
0
def install():
    crosstools.rawInstall("DESTDIR=%s tooldir=/usr" % get.installDIR())

    # Rebuild libbfd.a and libiberty.a with -fPIC
    pisitools.remove("/usr/lib/libbfd.a")
    pisitools.remove("/usr/lib/libiberty.a")
    #pisitools.remove("/usr/include/libiberty.h")

    crosstools.make("-C libiberty clean")
    crosstools.make('CFLAGS="-fPIC %s" -C libiberty' % get.CFLAGS())

    crosstools.make("-C bfd clean")
    crosstools.make('CFLAGS="-fPIC %s" -C bfd' % get.CFLAGS())

    pisitools.insinto("/usr/lib", "bfd/libbfd.a")
    pisitools.insinto("/usr/lib", "libiberty/libiberty.a")
    pisitools.insinto("/usr/include", "include/libiberty.h")

    # Prevent programs to link against libbfd and libopcodes dynamically,
    # they are changing far too often
    pisitools.remove("/usr/lib/libopcodes.so")
    pisitools.remove("/usr/lib/libbfd.so")

    # Remove libtool files, which reference the .so libs
    pisitools.remove("/usr/lib/libopcodes.la")
    pisitools.remove("/usr/lib/libbfd.la")
Пример #33
0
def build():
    shelltools.export("CC", get.CC())

    crosstools.make("libdir")
    crosstools.make()
    crosstools.make("ether-wake")
    crosstools.make("i18ndir")
Пример #34
0
def build():
    # Host-side preparations
    for q in [ "qgen q.dump", "all" ]:
        crosstools.environment["q"] = q
        crosstools.make('-C src/qgen \
                        AR="%(HOSTAR)s" \
                        CPP="%(HOSTCPP)s" \
                        CC="%(HOSTCC)s" \
                        CXX="%(HOSTCXX)s" \
                        LD="%(HOSTLD)s" \
                        CFLAGS="%(HOSTCFLAGS)s" \
                        CXXFLAGS="%(HOSTCXXFLAGS)s" \
                        DEFS="-Isrc -I. -I../.. -DHAVE_CONFIG_H" \
                        %(q)s' % crosstools.environment)

    crosstools.make()
Пример #35
0
def build():
    # Host-side preparations
    for q in ["qgen q.dump", "all"]:
        crosstools.environment["q"] = q
        crosstools.make('-C src/qgen \
                        AR="%(HOSTAR)s" \
                        CPP="%(HOSTCPP)s" \
                        CC="%(HOSTCC)s" \
                        CXX="%(HOSTCXX)s" \
                        LD="%(HOSTLD)s" \
                        CFLAGS="%(HOSTCFLAGS)s" \
                        CXXFLAGS="%(HOSTCXXFLAGS)s" \
                        DEFS="-Isrc -I. -I../.. -DHAVE_CONFIG_H" \
                        %(q)s' % crosstools.environment)

    crosstools.make()
Пример #36
0
def build():
    MINOR = "7"
    REL = "6"

    shelltools.export("PARDUS_CFLAGS", "%(CFLAGS)s" % crosstools.environment)

    args = 'REAL_DAEMON_DIR=%s \
            PARDUS_OPT="-fPIC -DPIC -D_REENTRANT -DHAVE_STRERROR -DHAVE_WEAKSYMS -DINET6=1 -Dss_family=__ss_family -Dss_len=__ss_len" \
            MAJOR=0 MINOR=%s REL=%s' % (get.sbinDIR(), MINOR, REL)

    crosstools.environment["args"] = args
    crosstools.make('%(args)s config-check \
                     CC="%(CC)s" \
                     CXX="%(CXX)s" \
                     AR="%(AR)s" ' % crosstools.environment)
    crosstools.make('%(args)s LDFLAGS="-pie %(LDFLAGS)s" linux' %
                    crosstools.environment)
Пример #37
0
def build():
    crosstools.make('HOSTPYTHON=%(ToolchainDir)s/bin/hostpython \
                     HOSTPGEN=%(ToolchainDir)s/bin/hostpgen \
                     BLDSHARED="%(CC)s -shared" \
                     LDSHARED="%(CC)s -shared" \
                     CROSS_COMPILE=%(target)s- \
                     BUILD_SYS="%(build)s" HOST_SYS="%(host)s" \
                     CROSS_COMPILE_TARGET=yes \
                     OPT="%(CFLAGS)s -fPIC -D__SOFTFP__" \
                     libpython2.6.so' % crosstools.environment)

    crosstools.make('HOSTPYTHON=%(ToolchainDir)s/bin/hostpython \
                     HOSTPGEN=%(ToolchainDir)s/bin/hostpgen \
                     BLDSHARED="%(CC)s -shared" \
                     LDSHARED="%(CC)s -shared" \
                     CROSS_COMPILE=%(target)s- \
                     BUILD_SYS="%(build)s" HOST_SYS="%(host)s" \
                     CROSS_COMPILE_TARGET=yes \
                     OPT="%(CFLAGS)s -fPIC -D__SOFTFP__" \
                     ' % crosstools.environment)
Пример #38
0
def build():
    crosstools.make('HOSTPYTHON=%(ToolchainDir)s/bin/hostpython \
                     HOSTPGEN=%(ToolchainDir)s/bin/hostpgen \
                     BLDSHARED="%(CC)s -shared" \
                     LDSHARED="%(CC)s -shared" \
                     CROSS_COMPILE=%(target)s- \
                     BUILD_SYS="%(build)s" HOST_SYS="%(host)s" \
                     CROSS_COMPILE_TARGET=yes \
                     OPT="%(CFLAGS)s -fPIC -D__SOFTFP__" \
                     libpython2.6.so' % crosstools.environment)

    crosstools.make('HOSTPYTHON=%(ToolchainDir)s/bin/hostpython \
                     HOSTPGEN=%(ToolchainDir)s/bin/hostpgen \
                     BLDSHARED="%(CC)s -shared" \
                     LDSHARED="%(CC)s -shared" \
                     CROSS_COMPILE=%(target)s- \
                     BUILD_SYS="%(build)s" HOST_SYS="%(host)s" \
                     CROSS_COMPILE_TARGET=yes \
                     OPT="%(CFLAGS)s -fPIC -D__SOFTFP__" \
                     ' % crosstools.environment)
Пример #39
0
def build():
    MINOR = "7"
    REL = "6"

    shelltools.export("PARDUS_CFLAGS", "%(CFLAGS)s" % crosstools.environment)

    args = (
        'REAL_DAEMON_DIR=%s \
            PARDUS_OPT="-fPIC -DPIC -D_REENTRANT -DHAVE_STRERROR -DHAVE_WEAKSYMS -DINET6=1 -Dss_family=__ss_family -Dss_len=__ss_len" \
            MAJOR=0 MINOR=%s REL=%s'
        % (get.sbinDIR(), MINOR, REL)
    )

    crosstools.environment["args"] = args
    crosstools.make(
        '%(args)s config-check \
                     CC="%(CC)s" \
                     CXX="%(CXX)s" \
                     AR="%(AR)s" '
        % crosstools.environment
    )
    crosstools.make('%(args)s LDFLAGS="-pie %(LDFLAGS)s" linux' % crosstools.environment)
Пример #40
0
def build():
    autotools.make()

    shelltools.cd("../fftw-%s-double" % get.srcVERSION())
    autotools.make()

    shelltools.cd("../fftw-%s-long-double" % get.srcVERSION())
    autotools.make()
Пример #41
0
def build():
    crosstools.prepare()

    crosstools.make('-f Makefile-libbz2_so \
                     CC=%(CC)s \
                     AR=%(AR)s \
                     RANLIB=%(RANLIB)s \
                     CFLAGS="%(CFLAGS)s -D_FILE_OFFSET_BITS=64 -fPIC"'                                                                       % \
                     crosstools.environment)
    crosstools.make('clean')
    crosstools.make('CC=%(CC)s \
                     AR=%(AR)s \
                     RANLIB=%(RANLIB)s' % crosstools.environment)
Пример #42
0
def build():
    crosstools.prepare()

    crosstools.make('-f Makefile-libbz2_so \
                     CC=%(CC)s \
                     AR=%(AR)s \
                     RANLIB=%(RANLIB)s \
                     CFLAGS="%(CFLAGS)s -D_FILE_OFFSET_BITS=64 -fPIC"' % \
                     crosstools.environment)
    crosstools.make('clean')
    crosstools.make('CC=%(CC)s \
                     AR=%(AR)s \
                     RANLIB=%(RANLIB)s' % crosstools.environment)
Пример #43
0
def build():
    # building host-side tool(s)
    if not shelltools.can_access_file("glsl-compile"):
        for q in [ "pp", "cl", "apps" ]:
            autotools.environment["q"] = q
            autotools.make('-C src/glsl/%(q)s -j1 \
                            CC="%(HOSTCC)s" \
                            APP_CC="%(HOSTCC)s" \
                            CFLAGS="%(HOSTCFLAGS)s" \
                            HOST_CC="%(HOSTCC)s" \
                            HOST_CFLAGS="%(HOSTCFLAGS)s"' % autotools.environment)
            if q == "apps":
                shelltools.system("mv {src/glsl/apps/,glsl-}compile")

        # cleaning host-side-compiled libs and apps in order to compile them for target
        for q in [ "pp", "cl", "apps" ]:
            autotools.environment["q"] = q
            autotools.make('-C src/glsl/%(q)s clean' % autotools.environment)

    autotools.make()

    # Build glxinfo/gears
    autotools.make('-C progs/xdemos glxinfo glxgears')
Пример #44
0
def build():
    # building host-side tool(s)
    if not shelltools.can_access_file("glsl-compile"):
        for q in ["pp", "cl", "apps"]:
            autotools.environment["q"] = q
            autotools.make('-C src/glsl/%(q)s -j1 \
                            CC="%(HOSTCC)s" \
                            APP_CC="%(HOSTCC)s" \
                            CFLAGS="%(HOSTCFLAGS)s" \
                            HOST_CC="%(HOSTCC)s" \
                            HOST_CFLAGS="%(HOSTCFLAGS)s"' %
                           autotools.environment)
            if q == "apps":
                shelltools.system("mv {src/glsl/apps/,glsl-}compile")

        # cleaning host-side-compiled libs and apps in order to compile them for target
        for q in ["pp", "cl", "apps"]:
            autotools.environment["q"] = q
            autotools.make('-C src/glsl/%(q)s clean' % autotools.environment)

    autotools.make()

    # Build glxinfo/gears
    autotools.make('-C progs/xdemos glxinfo glxgears')
Пример #45
0
def build():
    autotools.make()
Пример #46
0
def build():
    autotools.make('CC="%(CC)s" \
                    CFLAGS="%(CFLAGS)s -fomit-frame-pointer -DLINUX -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64" \
                    LDFLAGS="%(LDFLAGS)s"' % autotools.environment)
Пример #47
0
def build():
    autotools.make("-j1 ROOTDIR=%(SysRoot)s CC=%(CC)s LD=%(LD)s LIBTOOL='%(LIBTOOL)s --tag=CC'" % autotools.environment)
Пример #48
0
def build():
    autotools.make()
Пример #49
0
def build():
    crosstools.make()
Пример #50
0
def check():
    autotools.make("check")
Пример #51
0
def build():
    crosstools.make("-j1")
Пример #52
0
def build():
    crosstools.make("-j1 all")
    crosstools.make("-j1 info")
Пример #53
0
def build():
    crosstools.make('CC="%(CC)s" \
                     CFLAGS="%(CFLAGS)s" \
                     LDFLAGS="%(LDFLAGS)s"' % crosstools.environment)
Пример #54
0
def build():
    crosstools.make()
Пример #55
0
def build():
    autotools.make("-j1 V=1")