From c5a6ddfe41e6aa4e4bf6734ef14a008d87114a5e Mon Sep 17 00:00:00 2001 From: dslm4515 Date: Fri, 2 Nov 2018 21:37:18 -0500 Subject: [PATCH] Upload last of the instructions for the 64-bit toolchain --- .../013-Tool_Chain-Binutils_Pass2 | 26 +++++++ .../x86_64-chunks/014-Tool_Chain-GCC_Pass2 | 74 +++++++++++++++++++ plain-text/x86_64-chunks/015-Tool_Chain-TCL | 23 ++++++ .../x86_64-chunks/016-Tool_Chain-Expect | 26 +++++++ .../x86_64-chunks/017-Tool_Chain-DejaGNU | 16 ++++ plain-text/x86_64-chunks/018-Tool_Chain-M4 | 16 ++++ .../x86_64-chunks/019-Tool_Chain-Ncurses | 23 ++++++ plain-text/x86_64-chunks/020-Tool_Chain-Bash | 33 +++++++++ plain-text/x86_64-chunks/021-Tool_Chain-Bison | 16 ++++ plain-text/x86_64-chunks/022-Tool_Chain-Bzip2 | 21 ++++++ .../x86_64-chunks/023-Tool_Chain-Coreutils | 33 +++++++++ .../x86_64-chunks/024-Tool_Chain-Diffutils | 16 ++++ plain-text/x86_64-chunks/025-Tool_Chain-File | 19 +++++ .../x86_64-chunks/026-Tool_Chain-Findutils | 16 ++++ plain-text/x86_64-chunks/027-Tool_Chain-Gawk | 16 ++++ .../x86_64-chunks/028-Tool_Chain-Gettext | 26 +++++++ plain-text/x86_64-chunks/029-Tool_Chain-Grep | 16 ++++ plain-text/x86_64-chunks/030-Tool_Chain-Gzip | 16 ++++ plain-text/x86_64-chunks/031-Tool_Chain-Make | 17 +++++ plain-text/x86_64-chunks/032-Tool_Chain-Patch | 16 ++++ plain-text/x86_64-chunks/033-Tool_Chain-Perl | 25 +++++++ plain-text/x86_64-chunks/034-Tool_Chain-Sed | 16 ++++ plain-text/x86_64-chunks/035-Tool_Chain-Tar | 16 ++++ .../x86_64-chunks/036-Tool_Chain-Texinfo | 16 ++++ .../x86_64-chunks/037-Tool_Chain-Util-linux | 21 ++++++ .../x86_64-chunks/038-Tool_Chain-Util-Xz | 16 ++++ .../x86_64-chunks/039-Tool_Chain-Util-Porg | 29 ++++++++ 27 files changed, 604 insertions(+) create mode 100755 plain-text/x86_64-chunks/013-Tool_Chain-Binutils_Pass2 create mode 100755 plain-text/x86_64-chunks/014-Tool_Chain-GCC_Pass2 create mode 100755 plain-text/x86_64-chunks/015-Tool_Chain-TCL create mode 100755 plain-text/x86_64-chunks/016-Tool_Chain-Expect create mode 100755 plain-text/x86_64-chunks/017-Tool_Chain-DejaGNU create mode 100755 plain-text/x86_64-chunks/018-Tool_Chain-M4 create mode 100755 plain-text/x86_64-chunks/019-Tool_Chain-Ncurses create mode 100755 plain-text/x86_64-chunks/020-Tool_Chain-Bash create mode 100755 plain-text/x86_64-chunks/021-Tool_Chain-Bison create mode 100755 plain-text/x86_64-chunks/022-Tool_Chain-Bzip2 create mode 100755 plain-text/x86_64-chunks/023-Tool_Chain-Coreutils create mode 100755 plain-text/x86_64-chunks/024-Tool_Chain-Diffutils create mode 100755 plain-text/x86_64-chunks/025-Tool_Chain-File create mode 100755 plain-text/x86_64-chunks/026-Tool_Chain-Findutils create mode 100755 plain-text/x86_64-chunks/027-Tool_Chain-Gawk create mode 100755 plain-text/x86_64-chunks/028-Tool_Chain-Gettext create mode 100755 plain-text/x86_64-chunks/029-Tool_Chain-Grep create mode 100755 plain-text/x86_64-chunks/030-Tool_Chain-Gzip create mode 100755 plain-text/x86_64-chunks/031-Tool_Chain-Make create mode 100755 plain-text/x86_64-chunks/032-Tool_Chain-Patch create mode 100755 plain-text/x86_64-chunks/033-Tool_Chain-Perl create mode 100755 plain-text/x86_64-chunks/034-Tool_Chain-Sed create mode 100755 plain-text/x86_64-chunks/035-Tool_Chain-Tar create mode 100755 plain-text/x86_64-chunks/036-Tool_Chain-Texinfo create mode 100755 plain-text/x86_64-chunks/037-Tool_Chain-Util-linux create mode 100755 plain-text/x86_64-chunks/038-Tool_Chain-Util-Xz create mode 100755 plain-text/x86_64-chunks/039-Tool_Chain-Util-Porg diff --git a/plain-text/x86_64-chunks/013-Tool_Chain-Binutils_Pass2 b/plain-text/x86_64-chunks/013-Tool_Chain-Binutils_Pass2 new file mode 100755 index 0000000..3b6c486 --- /dev/null +++ b/plain-text/x86_64-chunks/013-Tool_Chain-Binutils_Pass2 @@ -0,0 +1,26 @@ +# Tool Chain: Binutils PASS 2 of 2 +# Build and install as mlfs + +export CC="${MLFS_TARGET}-gcc" +export CXX="${MLFS_TARGET}-g++" +export AR="${MLFS_TARGET}-ar" +export AS="${MLFS_TARGET}-as" +export RANLIB="${MLFS_TARGET}-ranlib" +export LD="${MLFS_TARGET}-ld" +export STRIP="${MLFS_TARGET}-strip" +mkdir -v build && cd build +../configure \ + --target=${MLFS_TARGET} \ + --build=${MLFS_HOST} \ + --host=${MLFS_TARGET} \ + --prefix=/tools \ + --disable-nls \ + --disable-werror \ + --with-lib-path=/tools/lib \ + --with-sysroot + +PATH=/bin:/usr/bin:/cross-tools/bin:/tools/bin make +make install +make -C ld clean +make -C ld LIB_PATH=/usr/lib:/lib +cp -v ld/ld-new /tools/bin diff --git a/plain-text/x86_64-chunks/014-Tool_Chain-GCC_Pass2 b/plain-text/x86_64-chunks/014-Tool_Chain-GCC_Pass2 new file mode 100755 index 0000000..cd199e8 --- /dev/null +++ b/plain-text/x86_64-chunks/014-Tool_Chain-GCC_Pass2 @@ -0,0 +1,74 @@ +# Tool Chain: GCC-8.2.0 PASS 2 of 2 +# Build and install as mlfs + +export CC="${MLFS_TARGET}-gcc" +export CXX="${MLFS_TARGET}-g++" +export AR="${MLFS_TARGET}-ar" +export AS="${MLFS_TARGET}-as" +export RANLIB="${MLFS_TARGET}-ranlib" +export LD="${MLFS_TARGET}-ld" +export STRIP="${MLFS_TARGET}-strip" + +tar -xf ../mpfr-4.0.1.tar.xz +mv -v mpfr-4.0.1 mpfr +tar -xf ../gmp-6.1.2.tar.xz +mv -v gmp-6.1.2 gmp +tar -xf ../mpc-1.1.0.tar.gz +mv -v mpc-1.1.0 mpc + +# Apply patches from Void-Linux +patch -Np0 -i ../gcc-8.2.0-void-0016-invalid_tls_model.diff +patch -Np0 -i ../gcc-8.2.0-void-fix-cxxflags-passing.patch +patch -Np0 -i ../gcc-8.2.0-void-fix-musl-execinfo.patch +patch -Np0 -i ../gcc-8.2.0-void-no-stack_chk_fail_local.patch + +cat gcc/limitx.h gcc/glimits.h gcc/limity.h > \ + `dirname $($MLFS_TARGET-gcc -print-libgcc-file-name)`/include-fixed/limits.h +for file in gcc/config/{linux,i386/linux{,64}}.h +do + cp -uv $file{,.orig} + sed -e 's@/lib\(64\)\?\(32\)\?/ld@/tools&@g' \ + -e 's@/usr@/tools@g' $file.orig > $file + echo ' +#undef STANDARD_STARTFILE_PREFIX_1 +#undef STANDARD_STARTFILE_PREFIX_2 +#define STANDARD_STARTFILE_PREFIX_1 "/tools/lib/" +#define STANDARD_STARTFILE_PREFIX_2 ""' >> $file + touch $file.orig +done + +case $(uname -m) in + x86_64) + sed -e '/m64=/s/lib64/lib/' \ + -i.orig gcc/config/i386/t-linux64 + ;; +esac + +mkdir -v build && cd build +../configure \ + --target=${MLFS_TARGET} \ + --build=${MLFS_HOST} \ + --host=${MLFS_TARGET} \ + --prefix=/tools \ + --with-local-prefix=/tools \ + --with-native-system-header-dir=/tools/include \ + --enable-languages=c,c++ \ + --disable-libstdcxx-pch \ + --disable-multilib \ + --disable-bootstrap \ + --disable-libgomp \ + --disable-libmpx \ + --disable-libquadmath \ + --disable-libssp \ + --disable-libvtv \ + --disable-symvers \ + --disable-libitm \ + --disable-gnu-indirect-function \ + --disable-libmudflap \ + --disable-libsanitizer \ + --disable-libcilkrts + +PATH=/bin:/usr/bin:/cross-tools/bin:/tools/bin make + +make install +ln -sv gcc /tools/bin/cc diff --git a/plain-text/x86_64-chunks/015-Tool_Chain-TCL b/plain-text/x86_64-chunks/015-Tool_Chain-TCL new file mode 100755 index 0000000..43b8ef6 --- /dev/null +++ b/plain-text/x86_64-chunks/015-Tool_Chain-TCL @@ -0,0 +1,23 @@ +# Tool Chain: TCL +# Build and install as mlfs + +export CC="${MLFS_TARGET}-gcc" +export CXX="${MLFS_TARGET}-g++" +export AR="${MLFS_TARGET}-ar" +export AS="${MLFS_TARGET}-as" +export RANLIB="${MLFS_TARGET}-ranlib" +export LD="${MLFS_TARGET}-ld" +export STRIP="${MLFS_TARGET}-strip" + +cd unix +ac_cv_func_strtod=yes \ +tcl_cv_strtod_buggy=1 \ +./configure --build=${MLFS_HOST} \ + --host=${MLFS_TARGET} \ + --prefix=/tools + +make && make install + +chmod -v u+w /tools/lib/libtcl8.6.so +make install-private-headers +ln -sv tclsh8.6 /tools/bin/tcls diff --git a/plain-text/x86_64-chunks/016-Tool_Chain-Expect b/plain-text/x86_64-chunks/016-Tool_Chain-Expect new file mode 100755 index 0000000..9aa83d9 --- /dev/null +++ b/plain-text/x86_64-chunks/016-Tool_Chain-Expect @@ -0,0 +1,26 @@ +# Build and install as mlfs + +export CC="${MLFS_TARGET}-gcc" +export CXX="${MLFS_TARGET}-g++" +export AR="${MLFS_TARGET}-ar" +export AS="${MLFS_TARGET}-as" +export RANLIB="${MLFS_TARGET}-ranlib" +export LD="${MLFS_TARGET}-ld" +export STRIP="${MLFS_TARGET}-strip" + +patch -Np1 -i ../expect-5.45.3-dont-put-toolchain-in-libpath.patch +patch -Np1 -i ../expect-5.45.3-dont-configure-testsuites.patch +patch -Np1 -i ../expect-5.45.3-allow-cross-compile.patch + +cp -v ../config.guess-musl tclconfig/config.guess +cp -v ../config.sub-musl tclconfig/config.sub +cp -v configure{,.orig} +sed 's:/usr/local/bin:/bin:' configure.orig > configure + +./configure --build=${MLFS_HOST} \ + --host=${MLFS_TARGET} \ + --prefix=/tools \ + --with-tcl=/tools/lib \ + --with-tclinclude=/tools/include + +make && make SCRIPTS="" install diff --git a/plain-text/x86_64-chunks/017-Tool_Chain-DejaGNU b/plain-text/x86_64-chunks/017-Tool_Chain-DejaGNU new file mode 100755 index 0000000..4363622 --- /dev/null +++ b/plain-text/x86_64-chunks/017-Tool_Chain-DejaGNU @@ -0,0 +1,16 @@ +# Toolchain: DejaGNU +# Build and install as mlfs + +export CC="${MLFS_TARGET}-gcc" +export CXX="${MLFS_TARGET}-g++" +export AR="${MLFS_TARGET}-ar" +export AS="${MLFS_TARGET}-as" +export RANLIB="${MLFS_TARGET}-ranlib" +export LD="${MLFS_TARGET}-ld" +export STRIP="${MLFS_TARGET}-strip" + +./configure --build=${MLFS_HOST} \ + --host=${MLFS_TARGET} \ + --prefix=/tools + +make && make install diff --git a/plain-text/x86_64-chunks/018-Tool_Chain-M4 b/plain-text/x86_64-chunks/018-Tool_Chain-M4 new file mode 100755 index 0000000..fb069fe --- /dev/null +++ b/plain-text/x86_64-chunks/018-Tool_Chain-M4 @@ -0,0 +1,16 @@ +# Toolchain: M4 +# Build and install as mlfs + +export CC="${MLFS_TARGET}-gcc" +export CXX="${MLFS_TARGET}-g++" +export AR="${MLFS_TARGET}-ar" +export AS="${MLFS_TARGET}-as" +export RANLIB="${MLFS_TARGET}-ranlib" +export LD="${MLFS_TARGET}-ld" +export STRIP="${MLFS_TARGET}-strip" + +./configure --prefix=/tools \ + --build=${MLFS_HOST} \ + --host=${MLFS_TARGET} + +make && make install diff --git a/plain-text/x86_64-chunks/019-Tool_Chain-Ncurses b/plain-text/x86_64-chunks/019-Tool_Chain-Ncurses new file mode 100755 index 0000000..ef0843f --- /dev/null +++ b/plain-text/x86_64-chunks/019-Tool_Chain-Ncurses @@ -0,0 +1,23 @@ +# Toolchain: Ncurses +# Build and install as mlfs + +export CC="${MLFS_TARGET}-gcc" +export CXX="${MLFS_TARGET}-g++" +export AR="${MLFS_TARGET}-ar" +export AS="${MLFS_TARGET}-as" +export RANLIB="${MLFS_TARGET}-ranlib" +export LD="${MLFS_TARGET}-ld" +export STRIP="${MLFS_TARGET}-strip" + +sed -i '/LIBTOOL_INSTALL/d' c++/Makefile.in +./configure --prefix=/tools \ + --build=${MLFS_HOST} \ + --host=${MLFS_TARGET} \ + --with-shared \ + --without-debug \ + --without-ada \ + --enable-widec \ + --enable-overwrite \ + --with-build-cc="gcc -D_GNU_SOURCE" + +make && make install diff --git a/plain-text/x86_64-chunks/020-Tool_Chain-Bash b/plain-text/x86_64-chunks/020-Tool_Chain-Bash new file mode 100755 index 0000000..21c38fc --- /dev/null +++ b/plain-text/x86_64-chunks/020-Tool_Chain-Bash @@ -0,0 +1,33 @@ +# Toolchain: Bash +# Build and install as mlfs + +export CC="${MLFS_TARGET}-gcc" +export CXX="${MLFS_TARGET}-g++" +export AR="${MLFS_TARGET}-ar" +export AS="${MLFS_TARGET}-as" +export RANLIB="${MLFS_TARGET}-ranlib" +export LD="${MLFS_TARGET}-ld" +export STRIP="${MLFS_TARGET}-strip" + +cat > config.cache << "EOF" +ac_cv_func_mmap_fixed_mapped=yes +ac_cv_func_strcoll_works=yes +ac_cv_func_working_mktime=yes +bash_cv_func_sigsetjmp=present +bash_cv_getcwd_malloc=yes +bash_cv_job_control_missing=present +bash_cv_printf_a_format=yes +bash_cv_sys_named_pipes=present +bash_cv_ulimit_maxfds=yes +bash_cv_under_sys_siglist=yes +bash_cv_unusable_rtsigs=no +gt_cv_int_divbyzero_sigfpe=yes +EOF + +./configure --prefix=/tools \ + --without-bash-malloc \ + --build=${MLFS_HOST} \ + --host=${MLFS_TARGET} \ + --cache-file=config.cache + +make && make install diff --git a/plain-text/x86_64-chunks/021-Tool_Chain-Bison b/plain-text/x86_64-chunks/021-Tool_Chain-Bison new file mode 100755 index 0000000..bacaa81 --- /dev/null +++ b/plain-text/x86_64-chunks/021-Tool_Chain-Bison @@ -0,0 +1,16 @@ +# Toolchain: Bison +# Build and install as mlfs + +export CC="${MLFS_TARGET}-gcc" +export CXX="${MLFS_TARGET}-g++" +export AR="${MLFS_TARGET}-ar" +export AS="${MLFS_TARGET}-as" +export RANLIB="${MLFS_TARGET}-ranlib" +export LD="${MLFS_TARGET}-ld" +export STRIP="${MLFS_TARGET}-strip" + +./configure --build=${MLFS_HOST} \ + --host=${MLFS_TARGET} \ + --prefix=/tools + +make && make install diff --git a/plain-text/x86_64-chunks/022-Tool_Chain-Bzip2 b/plain-text/x86_64-chunks/022-Tool_Chain-Bzip2 new file mode 100755 index 0000000..74bce2e --- /dev/null +++ b/plain-text/x86_64-chunks/022-Tool_Chain-Bzip2 @@ -0,0 +1,21 @@ +# ToolChain: Bzip2 +# Build and install as mlfs + +export CC="${MLFS_TARGET}-gcc" +export CXX="${MLFS_TARGET}-g++" +export AR="${MLFS_TARGET}-ar" +export AS="${MLFS_TARGET}-as" +export RANLIB="${MLFS_TARGET}-ranlib" +export LD="${MLFS_TARGET}-ld" +export STRIP="${MLFS_TARGET}-strip" + +cp Makefile{,.orig} +sed -e "/^all:/s/ test//" Makefile.orig > Makefile +sed -i 's@\(ln -s -f \)$(PREFIX)/bin/@\1@' Makefile +sed -i "s@(PREFIX)/man@(PREFIX)/share/man@g" Makefile + +make -f Makefile-libbz2_so CC="${CC}" AR="${AR}" RANLIB="${RANLIB}" +make clean +make CC="${CC}" AR="${AR}" RANLIB="${RANLIB}" + +make PREFIX=/tools install diff --git a/plain-text/x86_64-chunks/023-Tool_Chain-Coreutils b/plain-text/x86_64-chunks/023-Tool_Chain-Coreutils new file mode 100755 index 0000000..145a363 --- /dev/null +++ b/plain-text/x86_64-chunks/023-Tool_Chain-Coreutils @@ -0,0 +1,33 @@ +# Toolchain: Coreutils +# Build and install as mlfs + +export CC="${MLFS_TARGET}-gcc" +export CXX="${MLFS_TARGET}-g++" +export AR="${MLFS_TARGET}-ar" +export AS="${MLFS_TARGET}-as" +export RANLIB="${MLFS_TARGET}-ranlib" +export LD="${MLFS_TARGET}-ld" +export STRIP="${MLFS_TARGET}-strip" + +autoreconf -vif + +cat > config.cache << EOF +fu_cv_sys_stat_statfs2_bsize=yes +gl_cv_func_rename_trailing_slash_bug=no +gl_cv_func_mbrtowc_incomplete_state=yes +gl_cv_func_mbrtowc_nul_retval=yes +gl_cv_func_mbrtowc_null_arg=yes +gl_cv_func_mbrtowc_retval=yes +gl_cv_func_btowc_eof=yes +gl_cv_func_wcrtomb_retval=yes +gl_cv_func_wctob_works=yes +EOF + +sed -i '/test.lock/s/^/#/' gnulib-tests/gnulib.mk + +./configure --build=${MLFS_HOST} \ + --host=${MLFS_TARGET} \ + --prefix=/tools \ + --cache-file=config.cache + +make && make install diff --git a/plain-text/x86_64-chunks/024-Tool_Chain-Diffutils b/plain-text/x86_64-chunks/024-Tool_Chain-Diffutils new file mode 100755 index 0000000..63b8711 --- /dev/null +++ b/plain-text/x86_64-chunks/024-Tool_Chain-Diffutils @@ -0,0 +1,16 @@ +# Toolchain Diffutils +# Build and install as mlfs + +export CC="${MLFS_TARGET}-gcc" +export CXX="${MLFS_TARGET}-g++" +export AR="${MLFS_TARGET}-ar" +export AS="${MLFS_TARGET}-as" +export RANLIB="${MLFS_TARGET}-ranlib" +export LD="${MLFS_TARGET}-ld" +export STRIP="${MLFS_TARGET}-strip" + +./configure --build=${MLFS_HOST} \ + --host=${MLFS_TARGET} \ + --prefix=/tools + +make && make install diff --git a/plain-text/x86_64-chunks/025-Tool_Chain-File b/plain-text/x86_64-chunks/025-Tool_Chain-File new file mode 100755 index 0000000..a76900a --- /dev/null +++ b/plain-text/x86_64-chunks/025-Tool_Chain-File @@ -0,0 +1,19 @@ +# Toolchain: File +# Build and install as mlfs +# Must use same version for cross-tools, tools, +# and final system. + +export CC="${MLFS_TARGET}-gcc" +export CXX="${MLFS_TARGET}-g++" +export AR="${MLFS_TARGET}-ar" +export AS="${MLFS_TARGET}-as" +export RANLIB="${MLFS_TARGET}-ranlib" +export LD="${MLFS_TARGET}-ld" +export STRIP="${MLFS_TARGET}-strip" + +./configure --build=${MLFS_HOST} \ + --host=${MLFS_TARGET} \ + --prefix=/tools + +make && make install + diff --git a/plain-text/x86_64-chunks/026-Tool_Chain-Findutils b/plain-text/x86_64-chunks/026-Tool_Chain-Findutils new file mode 100755 index 0000000..b8e7674 --- /dev/null +++ b/plain-text/x86_64-chunks/026-Tool_Chain-Findutils @@ -0,0 +1,16 @@ +# Toolchain: Findutils +# Build and install as mlfs + +export CC="${MLFS_TARGET}-gcc" +export CXX="${MLFS_TARGET}-g++" +export AR="${MLFS_TARGET}-ar" +export AS="${MLFS_TARGET}-as" +export RANLIB="${MLFS_TARGET}-ranlib" +export LD="${MLFS_TARGET}-ld" +export STRIP="${MLFS_TARGET}-strip" + +./configure --build=${MLFS_HOST} \ + --host=${MLFS_TARGET} \ + --prefix=/tools + +make && make install diff --git a/plain-text/x86_64-chunks/027-Tool_Chain-Gawk b/plain-text/x86_64-chunks/027-Tool_Chain-Gawk new file mode 100755 index 0000000..58c5603 --- /dev/null +++ b/plain-text/x86_64-chunks/027-Tool_Chain-Gawk @@ -0,0 +1,16 @@ +# Toolchain: Gawk +# Build and install as mlfs + +export CC="${MLFS_TARGET}-gcc" +export CXX="${MLFS_TARGET}-g++" +export AR="${MLFS_TARGET}-ar" +export AS="${MLFS_TARGET}-as" +export RANLIB="${MLFS_TARGET}-ranlib" +export LD="${MLFS_TARGET}-ld" +export STRIP="${MLFS_TARGET}-strip" + +./configure --build=${MLFS_HOST} \ + --host=${MLFS_TARGET} \ + --prefix=/tools + +make && make install diff --git a/plain-text/x86_64-chunks/028-Tool_Chain-Gettext b/plain-text/x86_64-chunks/028-Tool_Chain-Gettext new file mode 100755 index 0000000..7f40d51 --- /dev/null +++ b/plain-text/x86_64-chunks/028-Tool_Chain-Gettext @@ -0,0 +1,26 @@ +# Toolchain: Gettext +# Build and install as mlfs + +export CC="${MLFS_TARGET}-gcc" +export CXX="${MLFS_TARGET}-g++" +export AR="${MLFS_TARGET}-ar" +export AS="${MLFS_TARGET}-as" +export RANLIB="${MLFS_TARGET}-ranlib" +export LD="${MLFS_TARGET}-ld" +export STRIP="${MLFS_TARGET}-strip" + +cd gettext-tools +EMACS="no" \ +./configure --build=${MLFS_HOST} \ + --host=${MLFS_TARGET} \ + --prefix=/tools \ + --disable-shared + +make -C gnulib-lib +make -C intl pluralx.c +make -C src msgfmt +make -C src msgmerge +make -C src xgettext + +cp -v src/{msgfmt,msgmerge,xgettext} /tools/bin + diff --git a/plain-text/x86_64-chunks/029-Tool_Chain-Grep b/plain-text/x86_64-chunks/029-Tool_Chain-Grep new file mode 100755 index 0000000..18012cb --- /dev/null +++ b/plain-text/x86_64-chunks/029-Tool_Chain-Grep @@ -0,0 +1,16 @@ +# Toolchain: Grep +# Build and install as mlfs + +export CC="${MLFS_TARGET}-gcc" +export CXX="${MLFS_TARGET}-g++" +export AR="${MLFS_TARGET}-ar" +export AS="${MLFS_TARGET}-as" +export RANLIB="${MLFS_TARGET}-ranlib" +export LD="${MLFS_TARGET}-ld" +export STRIP="${MLFS_TARGET}-strip" + +./configure --build=${MLFS_HOST} \ + --host=${MLFS_TARGET} \ + --prefix=/tools + +make && make install diff --git a/plain-text/x86_64-chunks/030-Tool_Chain-Gzip b/plain-text/x86_64-chunks/030-Tool_Chain-Gzip new file mode 100755 index 0000000..827006a --- /dev/null +++ b/plain-text/x86_64-chunks/030-Tool_Chain-Gzip @@ -0,0 +1,16 @@ +# Toolchain: Gzip +# Build and install as mlfs + +export CC="${MLFS_TARGET}-gcc" +export CXX="${MLFS_TARGET}-g++" +export AR="${MLFS_TARGET}-ar" +export AS="${MLFS_TARGET}-as" +export RANLIB="${MLFS_TARGET}-ranlib" +export LD="${MLFS_TARGET}-ld" +export STRIP="${MLFS_TARGET}-strip" + +./configure --build=${MLFS_HOST} \ + --host=${MLFS_TARGET} \ + --prefix=/tools + +make && make install diff --git a/plain-text/x86_64-chunks/031-Tool_Chain-Make b/plain-text/x86_64-chunks/031-Tool_Chain-Make new file mode 100755 index 0000000..fd21044 --- /dev/null +++ b/plain-text/x86_64-chunks/031-Tool_Chain-Make @@ -0,0 +1,17 @@ +# Toolchain: Make +# Build and install as mlfs + +export CC="${MLFS_TARGET}-gcc" +export CXX="${MLFS_TARGET}-g++" +export AR="${MLFS_TARGET}-ar" +export AS="${MLFS_TARGET}-as" +export RANLIB="${MLFS_TARGET}-ranlib" +export LD="${MLFS_TARGET}-ld" +export STRIP="${MLFS_TARGET}-strip" + +./configure --build=${MLFS_HOST} \ + --host=${MLFS_TARGET} \ + --prefix=/tools \ + --without-guile + +make && make install diff --git a/plain-text/x86_64-chunks/032-Tool_Chain-Patch b/plain-text/x86_64-chunks/032-Tool_Chain-Patch new file mode 100755 index 0000000..dced0f6 --- /dev/null +++ b/plain-text/x86_64-chunks/032-Tool_Chain-Patch @@ -0,0 +1,16 @@ +# Toolchain: Patch +# Build and install as mlfs + +export CC="${MLFS_TARGET}-gcc" +export CXX="${MLFS_TARGET}-g++" +export AR="${MLFS_TARGET}-ar" +export AS="${MLFS_TARGET}-as" +export RANLIB="${MLFS_TARGET}-ranlib" +export LD="${MLFS_TARGET}-ld" +export STRIP="${MLFS_TARGET}-strip" + +./configure --build=${MLFS_HOST} \ + --host=${MLFS_TARGET} \ + --prefix=/tools + +make && make install diff --git a/plain-text/x86_64-chunks/033-Tool_Chain-Perl b/plain-text/x86_64-chunks/033-Tool_Chain-Perl new file mode 100755 index 0000000..c50c4b0 --- /dev/null +++ b/plain-text/x86_64-chunks/033-Tool_Chain-Perl @@ -0,0 +1,25 @@ +# Toolchain: Perl-5.28.0 +# Build and install as mlfs + +export CC="${MLFS_TARGET}-gcc" +export CXX="${MLFS_TARGET}-g++" +export AR="${MLFS_TARGET}-ar" +export AS="${MLFS_TARGET}-as" +export RANLIB="${MLFS_TARGET}-ranlib" +export LD="${MLFS_TARGET}-ld" +export STRIP="${MLFS_TARGET}-strip" + +# Use perl-cross, by copying over perl source +# ignore warnings by mv +tar xf ../perl-cross-1.2.tar.gz +mv perl-cross-1.2/* ./ +mv perl-cross-1.2/utils/* utils/ + +./configure --prefix=/tools \ + --target=${MLFS_TARGET} + +make + +cp -v perl cpan/podlators/scripts/pod2man /tools/bin +mkdir -pv /tools/lib/perl5/5.28.0 +cp -Rv lib/* /tools/lib/perl5/5.28.0 diff --git a/plain-text/x86_64-chunks/034-Tool_Chain-Sed b/plain-text/x86_64-chunks/034-Tool_Chain-Sed new file mode 100755 index 0000000..387e286 --- /dev/null +++ b/plain-text/x86_64-chunks/034-Tool_Chain-Sed @@ -0,0 +1,16 @@ +# Toolchain: Sed +# Build and install as mlfs + +export CC="${MLFS_TARGET}-gcc" +export CXX="${MLFS_TARGET}-g++" +export AR="${MLFS_TARGET}-ar" +export AS="${MLFS_TARGET}-as" +export RANLIB="${MLFS_TARGET}-ranlib" +export LD="${MLFS_TARGET}-ld" +export STRIP="${MLFS_TARGET}-strip" + +./configure --build=${MLFS_HOST} \ + --host=${MLFS_TARGET} \ + --prefix=/tools + +make && make install diff --git a/plain-text/x86_64-chunks/035-Tool_Chain-Tar b/plain-text/x86_64-chunks/035-Tool_Chain-Tar new file mode 100755 index 0000000..e91e40b --- /dev/null +++ b/plain-text/x86_64-chunks/035-Tool_Chain-Tar @@ -0,0 +1,16 @@ +# Toolchain: Tar +# Build and install as mlfs + +export CC="${MLFS_TARGET}-gcc" +export CXX="${MLFS_TARGET}-g++" +export AR="${MLFS_TARGET}-ar" +export AS="${MLFS_TARGET}-as" +export RANLIB="${MLFS_TARGET}-ranlib" +export LD="${MLFS_TARGET}-ld" +export STRIP="${MLFS_TARGET}-strip" + +./configure --build=${MLFS_HOST} \ + --host=${MLFS_TARGET} \ + --prefix=/tools + +make && make install diff --git a/plain-text/x86_64-chunks/036-Tool_Chain-Texinfo b/plain-text/x86_64-chunks/036-Tool_Chain-Texinfo new file mode 100755 index 0000000..23e90a4 --- /dev/null +++ b/plain-text/x86_64-chunks/036-Tool_Chain-Texinfo @@ -0,0 +1,16 @@ +# Toolchain: Texinfo +# Build and install as mlfs + +export CC="${MLFS_TARGET}-gcc" +export CXX="${MLFS_TARGET}-g++" +export AR="${MLFS_TARGET}-ar" +export AS="${MLFS_TARGET}-as" +export RANLIB="${MLFS_TARGET}-ranlib" +export LD="${MLFS_TARGET}-ld" +export STRIP="${MLFS_TARGET}-strip" + +./configure --build=${MLFS_HOST} \ + --host=${MLFS_TARGET} \ + --prefix=/tools + +make && make install diff --git a/plain-text/x86_64-chunks/037-Tool_Chain-Util-linux b/plain-text/x86_64-chunks/037-Tool_Chain-Util-linux new file mode 100755 index 0000000..2292449 --- /dev/null +++ b/plain-text/x86_64-chunks/037-Tool_Chain-Util-linux @@ -0,0 +1,21 @@ +# Toolchain: Util-Linux +# Build and install as mlfs + +export CC="${MLFS_TARGET}-gcc" +export CXX="${MLFS_TARGET}-g++" +export AR="${MLFS_TARGET}-ar" +export AS="${MLFS_TARGET}-as" +export RANLIB="${MLFS_TARGET}-ranlib" +export LD="${MLFS_TARGET}-ld" +export STRIP="${MLFS_TARGET}-strip" + +./configure --build=${MLFS_HOST} \ + --host=${MLFS_TARGET} \ + --prefix=/tools \ + --without-python \ + --disable-makeinstall-chown \ + --without-systemdsystemunitdir \ + --without-ncurses \ + PKG_CONFIG="" + +make && make install diff --git a/plain-text/x86_64-chunks/038-Tool_Chain-Util-Xz b/plain-text/x86_64-chunks/038-Tool_Chain-Util-Xz new file mode 100755 index 0000000..675262a --- /dev/null +++ b/plain-text/x86_64-chunks/038-Tool_Chain-Util-Xz @@ -0,0 +1,16 @@ +# Toolchain: Xz +# Build and install as mlfs + +export CC="${MLFS_TARGET}-gcc" +export CXX="${MLFS_TARGET}-g++" +export AR="${MLFS_TARGET}-ar" +export AS="${MLFS_TARGET}-as" +export RANLIB="${MLFS_TARGET}-ranlib" +export LD="${MLFS_TARGET}-ld" +export STRIP="${MLFS_TARGET}-strip" + +./configure --build=${MLFS_HOST} \ + --host=${MLFS_TARGET} \ + --prefix=/tools + +make && make install diff --git a/plain-text/x86_64-chunks/039-Tool_Chain-Util-Porg b/plain-text/x86_64-chunks/039-Tool_Chain-Util-Porg new file mode 100755 index 0000000..4923660 --- /dev/null +++ b/plain-text/x86_64-chunks/039-Tool_Chain-Util-Porg @@ -0,0 +1,29 @@ +# Toolchain: Porg-0.10 +# Build and install as mlfs +# Optional for package management + +export CC="${MLFS_TARGET}-gcc" +export CXX="${MLFS_TARGET}-g++" +export AR="${MLFS_TARGET}-ar" +export AS="${MLFS_TARGET}-as" +export RANLIB="${MLFS_TARGET}-ranlib" +export LD="${MLFS_TARGET}-ld" +export STRIP="${MLFS_TARGET}-strip" + +patch -Np0 -i ../porg-0.10-musl-fix-64.patch +cat > config.cache << "EOF" +ac_cv_func_creat64=no +ac_cv_func_fopen64=no +ac_cv_func_freopen64=no +ac_cv_func_open64=no +ac_cv_func_openat64=no +EOF + +./configure --build=${MLFS_HOST} \ + --host=${MLFS_TARGET} \ + --prefix=/tools \ + --sysconfdir=/tools/etc \ + --disable-grop \ + --cache-file=config.cache + +make && make install