예제 #1
0
def setup():
    undef_variables()

    crosstools.environment["CFLAGS"] = cflags
    crosstools.prepare()

    shelltools.makedirs("build")
    shelltools.cd("build")
    shelltools.system("../configure \
                       --with-tls \
                       --build=%(build)s \
                       --host=%(host)s \
                       --target=%(target)s \
                       --with-__thread \
                       --enable-add-ons=ports,nptl,libidn \
                       --enable-bind-now \
                       --enable-kernel=2.6.25 \
                       --without-cvs \
                       --without-gd \
                       --disable-debug \
                       --without-selinux \
                       --disable-profile \
                       --prefix=/usr \
                       --mandir=/usr/share/man \
                       --infodir=/usr/share/info \
                       --with-headers=%(SysRoot)s/usr/include \
                       --libexecdir=/usr/lib/misc" % \
                       crosstools.environment)
예제 #2
0
def setup():
    undef_variables()

    crosstools.environment["CFLAGS"] = cflags
    crosstools.prepare()

    shelltools.makedirs("build")
    shelltools.cd("build")
    shelltools.system("../configure \
                       --with-tls \
                       --build=%(build)s \
                       --host=%(host)s \
                       --target=%(target)s \
                       --with-__thread \
                       --enable-add-ons=ports,nptl,libidn \
                       --enable-bind-now \
                       --enable-kernel=2.6.25 \
                       --without-cvs \
                       --without-gd \
                       --disable-debug \
                       --without-selinux \
                       --disable-profile \
                       --prefix=/usr \
                       --mandir=/usr/share/man \
                       --infodir=/usr/share/info \
                       --with-headers=%(SysRoot)s/usr/include \
                       --libexecdir=/usr/lib/misc"                                                   % \
                       crosstools.environment)
예제 #3
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")
예제 #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():
    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)
예제 #6
0
def setup():
    shelltools.export("LC_ALL", "C")
    crosstools.prepare()

    shelltools.chmod("configure", 0755)
    shelltools.chmod("cnf/*", 0755)
    shelltools.chmod("Makefile*", 0755)
    shelltools.system('./configure \
                       --target=arm \
                       --sysroot=%(RootDir)s \
                       --prefix=/usr' % crosstools.environment)
예제 #7
0
def setup():
    crosstools.prepare()

    pisitools.dosed("Makefile*", "ldconfig \|\| ", "")

    # because of configure script is not built by autotools,
    # parameters of crosstools.configure method are not suitable
    shelltools.system("./configure \
                       --shared \
                       --prefix=/usr \
                       --libdir=/lib")
예제 #8
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)
예제 #9
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)
예제 #10
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)
예제 #11
0
def setup():
    shelltools.makedirs("build")
    shelltools.cd("build")

    crosstools.environment[
        "LDFLAGS"] = "-Wl,-rpath,%(ToolchainDir)s/%(target)s/lib \
                                           -I%(RootDir)s/usr/include \
                                           -L%(RootDir)s/usr/lib \
                                           -L%(RootDir)s/lib" % crosstools.environment
    crosstools.prepare()

    shelltools.system('../configure \
                       --build=%(build)s --host=%(host)s --target=%(target)s \
                       --prefix=/usr \
                       --bindir=/usr/bin \
                       --libdir=/usr/lib \
                       --libexecdir=/usr/lib \
                       --includedir=/usr/include \
                       --mandir=/usr/share/man \
                       --infodir=/usr/share/info \
                       --with-gxx-include-dir=/usr/include/c++ \
                       --disable-libgcj \
                       --disable-multilib \
                       --disable-nls \
                       --disable-mudflap \
                       --disable-libmudflap \
                       --enable-checking=release \
                       --enable-clocale=gnu \
                       --enable-__cxa_atexit \
                       --enable-languages=c,c++ \
                       --enable-libstdcxx-allocator=new \
                       --disable-libstdcxx-pch \
                       --enable-shared \
                       --enable-ssp \
                       --enable-libssp \
                       --disable-bootstrap \
                       --disable-libgomp \
                       --disable-libmudflap \
                       --enable-threads=posix \
                       --without-included-gettext \
                       --without-system-libunwind \
                       --with-system-zlib \
                       --with-pkgversion="Pardus Linux for ARM" \
                       --with-bugurl=http://bugs.pardus.org.tr' %
                      crosstools.environment)

    shelltools.system("cp Makefile{,.orig}; \
                       sed \"/^HOST_\(GMP\|PPL\|CLOOG\)\(LIBS\|INC\)/s:-[IL]/\(lib\|include\)::\" \
                       Makefile.orig > Makefile")
예제 #12
0
def setup():
    shelltools.makedirs("build")
    shelltools.cd("build")

    crosstools.environment["LDFLAGS"] = "-Wl,-rpath,%(ToolchainDir)s/%(target)s/lib \
                                           -I%(RootDir)s/usr/include \
                                           -L%(RootDir)s/usr/lib \
                                           -L%(RootDir)s/lib" % crosstools.environment
    crosstools.prepare()

    shelltools.system('../configure \
                       --build=%(build)s --host=%(host)s --target=%(target)s \
                       --prefix=/usr \
                       --bindir=/usr/bin \
                       --libdir=/usr/lib \
                       --libexecdir=/usr/lib \
                       --includedir=/usr/include \
                       --mandir=/usr/share/man \
                       --infodir=/usr/share/info \
                       --with-gxx-include-dir=/usr/include/c++ \
                       --disable-libgcj \
                       --disable-multilib \
                       --disable-nls \
                       --disable-mudflap \
                       --disable-libmudflap \
                       --enable-checking=release \
                       --enable-clocale=gnu \
                       --enable-__cxa_atexit \
                       --enable-languages=c,c++ \
                       --enable-libstdcxx-allocator=new \
                       --disable-libstdcxx-pch \
                       --enable-shared \
                       --enable-ssp \
                       --enable-libssp \
                       --disable-bootstrap \
                       --disable-libgomp \
                       --disable-libmudflap \
                       --enable-threads=posix \
                       --without-included-gettext \
                       --without-system-libunwind \
                       --with-system-zlib \
                       --with-pkgversion="Pardus Linux for ARM" \
                       --with-bugurl=http://bugs.pardus.org.tr' %
                       crosstools.environment)

    shelltools.system("cp Makefile{,.orig}; \
                       sed \"/^HOST_\(GMP\|PPL\|CLOOG\)\(LIBS\|INC\)/s:-[IL]/\(lib\|include\)::\" \
                       Makefile.orig > Makefile")
예제 #13
0
def setup():
    crosstools.prepare()
    prepare()

    shelltools.cd("util")
    shelltools.system("perl perlpath.pl /bin")
    shelltools.cd("..")
    shelltools.system("ln -sf apps/openssl.pod crypto/crypto.pod ssl/ssl.pod doc/")

    shelltools.system("./Configure linux-elf-arm \
                       --prefix=/usr \
                       --openssldir=/etc/ssl \
                       zlib enable-camellia enable-seed enable-tlsext enable-rfc3779 \
                       threads shared -Wa,--noexecstack")

    pisitools.dosed("Makefile", "(^DIRS\s*=.*)test(.*$)", "\\1 \\2" % crosstools.environment)
    pisitools.dosed("Makefile", "(^SHARED_LDFLAGS=).*", "\\1 %(LDFLAGS)s" % crosstools.environment)
    pisitools.dosed("Makefile", "(^CFLAG=.*)", "\\1 %(CFLAGS)s" % crosstools.environment)
    pisitools.dosed("apps/Makefile", r"^(LIBSSL\s*=.*)", "\\1 -L%(SysRoot)s/usr/lib -lz" % crosstools.environment)
예제 #14
0
def build():
    crosstools.prepare()

    links = ""
    for pc in ["gio-2.0", "gobject-2.0", "gmodule-2.0", "gthread-2.0", "glib-2.0"]:
        p = os.popen("pkg-config --libs %s" % pc)
        links += " %s" % p.readline().strip()

    crosstools.environment["CFLAGS"] = "%(CFLAGS)s \
                                        -I%(RootDir)s/usr/include/python2.6 \
                                        -I%(RootDir)s/usr/include/polkit-1 \
                                        -I%(RootDir)s/usr/include/glib-2.0 \
                                        -I%(RootDir)s/usr/lib/glib-2.0/include \
                                        -g3 -ggdb -fPIC" % crosstools.environment

    crosstools.environment["source"] = 'pypolkit'
    crosstools.environment["links"] = links

    shelltools.system("%(CC)s %(CFLAGS)s -c %(source)s.c -o %(source)s.o" % crosstools.environment)
    shelltools.system("%(CC)s -shared %(CFLAGS)s %(LDFLAGS)s %(source)s.o \
                       -lpython2.6 %(links)s -o _polkit.so" % crosstools.environment)
예제 #15
0
def setup():
    crosstools.prepare()
    autotools.rawConfigure("-confdir=/etc +fhs +fsstnd +traditional +lang all")

    shelltools.system("%(HOSTCC)s src/makemsg.c -o src/makemsg" %
                      crosstools.environment)
예제 #16
0
def setup():
    crosstools.prepare()
    autotools.rawConfigure("-confdir=/etc +fhs +fsstnd +traditional +lang all")

    shelltools.system("%(HOSTCC)s src/makemsg.c -o src/makemsg" % crosstools.environment)
예제 #17
0
def build():
    shelltools.export("LC_ALL", "C")
    crosstools.prepare()

    shelltools.system("make")