sb0 changed the topic of #m-labs to: ARTIQ, Migen, MiSoC, Mixxeo & other M-Labs projects :: fka #milkymist :: Logs http://irclog.whitequark.org/m-labs
sb0 has joined #m-labs
_whitelogger has joined #m-labs
_whitelogger has joined #m-labs
_whitelogger has joined #m-labs
_whitelogger has joined #m-labs
sb0 has quit [Quit: Leaving]
_whitelogger has joined #m-labs
rohitksingh has joined #m-labs
mumptai has joined #m-labs
sb0 has joined #m-labs
aziz has joined #m-labs
<aziz> hi
<aziz> i dont know if that could help
<aziz> this Makefile to install milkymist toolchain
<aziz> # # Written 2011 by Xiangfu Liu <xiangfu@sharism.cc> # this file try to manager build RTMS toolchain # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, version 3 of the License. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of #
<aziz> dont know how to upload it
<aziz> lol
<aziz> its a modification of Xiangfu Liu Makefile
<aziz> that donst work
<aziz> i you wish i can give it for you
<aziz> it work fine
<aziz> if*
rohitksingh has quit [Quit: Leaving.]
kilae has joined #m-labs
snakeas has joined #m-labs
<snakeas> hi
aziz has quit [Quit: Page closed]
<snakeas> #
<snakeas> # This program is free software: you can redistribute it and/or modify
<snakeas> #
<snakeas> # this file try to manager build RTMS toolchain
<snakeas> # Written 2011 by Xiangfu Liu <xiangfu@sharism.cc>
<snakeas> # it under the terms of the GNU General Public License as published by
<snakeas> # the Free Software Foundation, version 3 of the License.
<snakeas> #
<snakeas> # This program is distributed in the hope that it will be useful,
<snakeas> # but WITHOUT ANY WARRANTY; without even the implied warranty of
<snakeas> # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
<snakeas> # GNU General Public License for more details.
<snakeas> #
<snakeas> # You should have received a copy of the GNU General Public License
<snakeas>
<snakeas> #make sure you have wrtie access
<snakeas> RTEMS_PREFIX=/opt/rtems-$(RTEMS_VERSION)
<snakeas> RTEMS_VERSION=4.11
<snakeas> export CFLAGS=-Wno-error
<snakeas> RTEMS_SOURCES_URL=https://ftp.rtems.org/pub/rtems/archive/SOURCES/$(RTEMS_VERSION)
<snakeas> # For Mac OS X use curl.
<snakeas> WGET=wget -c -O
<snakeas> # WGET=curl -o
<snakeas> BINUTILS_VERSION=2.23.90
<snakeas> GCC_CORE_VERSION=4.5.4
<snakeas> NEWLIB_VERSION=1.20.0
<snakeas> GDB_VERSION=7.5.1
<snakeas> GMP_VERSION=4.3.2
<snakeas> MPC_VERSION=1.0.1
<snakeas> MPFR_VERSION=2.4.2
<snakeas> BINUTILS=binutils-$(BINUTILS_VERSION).tar.bz2
<snakeas> GCC_CORE=gcc-core-$(GCC_CORE_VERSION).tar.bz2
<snakeas> NEWLIB=newlib-$(NEWLIB_VERSION).tar.gz
<snakeas> GDB=gdb-$(GDB_VERSION).tar.bz2
<snakeas> GMP=gmp-$(GMP_VERSION).tar.bz2
<snakeas> MPC=mpc-$(MPC_VERSION).tar.gz
<snakeas> MPFR=mpfr-$(MPFR_VERSION).tar.bz2
<snakeas> GCC_CORE_PATCH=gcc-core-$(GCC_CORE_VERSION)-rtems$(RTEMS_VERSION)-20120703.diff
<snakeas> NEWLIB_PATCH=newlib-$(NEWLIB_VERSION)-rtems$(RTEMS_VERSION)-20130325.diff
<snakeas> GDB_PATCH=gdb-$(GDB_VERSION)-rtems$(RTEMS_VERSION)-20140506.diff
<snakeas> DL=$(if $(wildcard ../dl/.),../dl,dl)
<snakeas> RTEMS_PATCHES_DIR=rtems-patches
<snakeas> MM1_PATCHES_DIR=milkymist-one-patches
<snakeas> # make sure this rule stays at top
<snakeas> all: .install.gcc2.ok #.install.gdb.ok #no debugge for the moment
<snakeas> .PHONY: all clean
<snakeas> #first gcc compiler used to compile newlib, called stripped gcc
<snakeas> .install.gcc1.ok: .compile.gcc1.ok
<snakeas> $(MAKE) -C b-gcc install-gcc
<snakeas> touch $@
<snakeas> .compile.gcc1.ok: .install.binutils.ok .patch.ok
<snakeas> export PATH=$(RTEMS_PREFIX)/bin:$(PATH)
<snakeas> mkdir -p b-gcc
<snakeas> cd b-gcc/ && \
<snakeas> ../gcc-$(GCC_CORE_VERSION)/configure --target=lm32-rtems4.11 \
<snakeas> --with-gnu-as --with-gnu-ld --with-newlib --without-headers \
<snakeas> --enable-threads --enable-languages=c --disable-shared \
<snakeas> --prefix=$(RTEMS_PREFIX) --disable-multilib --disable-libssp
<snakeas> $(MAKE) -C b-gcc all-gcc
<snakeas> $(MAKE) -C b-gcc info-gcc
<snakeas> touch $@
<snakeas>
<snakeas> #final gcc compiler
<snakeas> .install.gcc2.ok: .compile.gcc2.ok
<snakeas> $(MAKE) -C b-gcc install
<snakeas> touch $@
<snakeas> .compile.gcc2.ok: .install.newlib.ok
<snakeas> export PATH=$(RTEMS_PREFIX)/bin:$(PATH)
<snakeas> mkdir -p b-gcc
<snakeas> cd b-gcc/ && rm -rf * && \
<snakeas> ../gcc-$(GCC_CORE_VERSION)/configure --target=lm32-rtems4.11 \
<snakeas> --with-gnu-as --with-gnu-ld --with-newlib \
<snakeas> --enable-threads --enable-languages=c \
<snakeas> --prefix=$(RTEMS_PREFIX) --disable-multilib --disable-libssp
<snakeas> $(MAKE) -C b-gcc all
<snakeas> $(MAKE) -C b-gcc info
<snakeas> touch $@
<snakeas>
<snakeas> .install.gdb.ok: .compile.gdb.ok
<snakeas> $(MAKE) -C b-gdb install
<snakeas> touch $@
<snakeas> .compile.gdb.ok: .install.binutils.ok .patch.ok
<snakeas> export PATH=$(RTEMS_PREFIX)/bin:$(PATH)
<snakeas> mkdir -p b-gdb
<snakeas> cd b-gdb/ && ../gdb-$(GDB_VERSION)/configure --target=lm32-rtems4.11 \
<snakeas> --prefix=$(RTEMS_PREFIX) --with-gnu-as --with-gnu-ld --with-newlib \
<snakeas> --enable-threads --disable-multilib --disable-libss --host=$(MACHTYPE)\
<snakeas> --build=$(MACHTYPE)
<snakeas> $(MAKE) -C b-gdb all
<snakeas> touch $@
<snakeas>
<snakeas> .install.binutils.ok: .compile.binutils.ok
<snakeas> mkdir -p $(RTEMS_PREFIX)
<snakeas> $(MAKE) -C b-binutils install
<snakeas> touch $@
<snakeas> .compile.binutils.ok: .patch.ok
<snakeas> mkdir -p b-binutils
<snakeas> cd b-binutils && \
<snakeas> ../binutils-$(BINUTILS_VERSION)/configure --target=lm32-rtems4.11 \
<snakeas> --prefix=$(RTEMS_PREFIX) --disable-multilib
<snakeas> $(MAKE) -C b-binutils all
<snakeas> $(MAKE) -C b-binutils info
<snakeas> touch $@
<snakeas>
<snakeas> .install.newlib.ok: .compile.newlib.ok
<snakeas> mkdir -p $(RTEMS_PREFIX)
<snakeas> $(MAKE) -C b-newlib install
<snakeas> touch $@
<snakeas>
<snakeas> .compile.newlib.ok: .install.gcc1.ok .patch.ok
<snakeas> mkdir -p b-newlib
<snakeas> cd b-newlib && \
<snakeas> ../newlib-$(NEWLIB_VERSION)/configure --target=lm32-rtems4.11 \
<snakeas> --with-gnu-as --with-gnu-ld --with-newlib \
<snakeas> --enable-threads \
<snakeas> --prefix=$(RTEMS_PREFIX) --disable-multilib --disable-libssp
<snakeas> $(MAKE) -C b-newlib all
<snakeas> $(MAKE) -C b-newlib info
<snakeas> touch $@
<snakeas>
<snakeas> .patch.ok: .unzip.ok $(RTEMS_PATCHES_DIR)/.ok
<snakeas> cd gcc-$(GCC_CORE_VERSION) && \
<snakeas> patch -p1 < ../$(RTEMS_PATCHES_DIR)/$(GCC_CORE_PATCH) && \
<snakeas> patch -p1 < ../$(MM1_PATCHES_DIR)/gcc-core-4.5.4-fix-errors-in-doc-generation-on-texinfo5.patch
<snakeas>
<snakeas> cd newlib-$(NEWLIB_VERSION) && \
<snakeas> patch -p1 < ../$(RTEMS_PATCHES_DIR)/$(NEWLIB_PATCH)
<snakeas>
<snakeas> cd gdb-$(GDB_VERSION) && \
<snakeas> patch -p1 < ../$(RTEMS_PATCHES_DIR)/$(GDB_PATCH) && patch -p1 < ../$(MM1_PATCHES_DIR)/gdb-fix-errors-in-bfd-header.patch
<snakeas>
<snakeas> cd binutils-$(BINUTILS_VERSION) && patch -p1 < ../$(MM1_PATCHES_DIR)/binutils-fix-errors-in-bfd-header.patch
<snakeas>
<snakeas> touch $@
<snakeas> .unzip.ok: $(DL)/$(BINUTILS).ok $(DL)/$(GCC_CORE).ok $(DL)/$(NEWLIB).ok $(DL)/$(GDB).ok $(DL)/$(MPFR).ok $(DL)/$(MPC).ok $(DL)/$(GMP).ok
<snakeas> tar xf $(DL)/$(BINUTILS)
<snakeas> tar xf $(DL)/$(GCC_CORE)
<snakeas> tar xf $(DL)/$(NEWLIB)
<snakeas> tar xf $(DL)/$(GDB)
<snakeas> tar xf $(DL)/$(GMP)
<snakeas> tar xf $(DL)/$(MPC)
<snakeas> tar xf $(DL)/$(MPFR)
<snakeas> rm -rf gcc-$(GCC_CORE_VERSION)/gmp gcc-$(GCC_CORE_VERSION)/mpc \
<snakeas> gcc-$(GCC_CORE_VERSION)/mpfr
<snakeas> ln -s ../gmp-$(GMP_VERSION) gcc-$(GCC_CORE_VERSION)/gmp
<snakeas> ln -s ../mpc-$(MPC_VERSION) gcc-$(GCC_CORE_VERSION)/mpc
<snakeas> ln -s ../mpfr-$(MPFR_VERSION) gcc-$(GCC_CORE_VERSION)/mpfr
<snakeas> touch $@
<snakeas> $(RTEMS_PATCHES_DIR)/.ok:
<snakeas> mkdir -p $(RTEMS_PATCHES_DIR)
<snakeas> $(WGET) $(RTEMS_PATCHES_DIR)/$(GCC_CORE_PATCH) \
<snakeas> $(RTEMS_SOURCES_URL)/$(GCC_CORE_PATCH)
<snakeas> $(WGET) $(RTEMS_PATCHES_DIR)/$(NEWLIB_PATCH) \
<snakeas> $(RTEMS_SOURCES_URL)/$(NEWLIB_PATCH)
<snakeas> $(WGET) $(RTEMS_PATCHES_DIR)/$(GDB_PATCH) \
<snakeas> $(RTEMS_SOURCES_URL)/$(GDB_PATCH)
<snakeas> touch $@
<snakeas> $(DL)/$(BINUTILS).ok:
<snakeas> mkdir -p $(DL)
<snakeas> $(WGET) $(DL)/$(BINUTILS) $(RTEMS_SOURCES_URL)/$(BINUTILS)
<snakeas> touch $@
<snakeas> $(DL)/$(GCC_CORE).ok:
<snakeas> mkdir -p $(DL)
<snakeas> $(WGET) $(DL)/$(GCC_CORE) $(RTEMS_SOURCES_URL)/$(GCC_CORE)
<snakeas> touch $@
<snakeas> $(DL)/$(NEWLIB).ok:
<snakeas> mkdir -p $(DL)
<snakeas> $(WGET) $(DL)/$(NEWLIB) $(RTEMS_SOURCES_URL)/$(NEWLIB)
<snakeas> touch $@
<snakeas>
<snakeas> $(DL)/$(GDB).ok:
<snakeas> mkdir -p $(DL)
<snakeas> $(WGET) $(DL)/$(GDB) $(RTEMS_SOURCES_URL)/$(GDB)
<snakeas> touch $@
<snakeas> $(DL)/$(GMP).ok:
<snakeas> mkdir -p $(DL)
<snakeas> $(WGET) $(DL)/$(GMP) $(RTEMS_SOURCES_URL)/$(GMP)
<snakeas> touch $@
<snakeas> $(DL)/$(MPC).ok:
<snakeas> mkdir -p $(DL)
<snakeas> $(WGET) $(DL)/$(MPC) $(RTEMS_SOURCES_URL)/$(MPC)
<snakeas> touch $@
<snakeas> $(DL)/$(MPFR).ok:
<snakeas> mkdir -p $(DL)
<snakeas> $(WGET) $(DL)/$(MPFR) $(RTEMS_SOURCES_URL)/$(MPFR)
<snakeas> touch $@
<snakeas> clean:
<snakeas> rm -rf b-binutils
<snakeas> rm -rf b-gcc
<snakeas> rm -rf b-gdb
<snakeas> rm -rf b-newlib
<snakeas> rm -rf binutils-$(BINUTILS_VERSION)
<snakeas> rm -rf gcc-$(GCC_CORE_VERSION)
<snakeas> rm -rf newlib-$(NEWLIB_VERSION)
<snakeas> rm -rf gdb-$(GDB_VERSION)
<snakeas> rm -rf $(RTEMS_PATCHES_DIR)
<snakeas> rm -rf gmp-$(GMP_VERSION)
<snakeas> rm -rf mpc-$(MPC_VERSION)
<snakeas> rm -rf mpfr-$(MPFR_VERSION)
<snakeas> rm -f .*.ok
<snakeas> rm -f .ok
<snakeas> # disable parallel execution of targets in this top-level Makefile. Makefiles
<snakeas> # invoked via $(MAKE) still run parallel if -j was passed to the top-level
<snakeas> # Makefile.
<snakeas> .NOTPARALLEL:
<snakeas>
<snakeas>
<snakeas>
<snakeas>
<snakeas>
<snakeas> ok , sorry for the spam, this is the makefile for creating a toolchain for milkymist on new ubuntu distributions, it was orginaly under github git://github.com/milkymist/scripts.git
<snakeas> by the way iam aziz
<snakeas> the makefile is in scripts/compile-lm32-rtems/Makefile
aziz has joined #m-labs
<aziz> !logs
<sb0> snakeas, please use some paste website like hastebin.com
<sb0> and what is your question/problem?
<sb0> rjo, can pdq2_client be deleted?
<snakeas> its not a question, its an update of an old not working script to install the toolchain. do what ever you want with.
<sb0> snakeas, okay, for this sort of thing i'd recommend you fork/PR the original repository on github
snakeas has quit [Ping timeout: 246 seconds]
aziz has quit [Ping timeout: 260 seconds]
<bb-m-labs> build #1503 of artiq is complete: Failure [failed python_unittest] Build details are at http://buildbot.m-labs.hk/builders/artiq/builds/1503 blamelist: Sebastien Bourdeauducq <sb@m-labs.hk>
aziz has joined #m-labs
aziz has quit [Quit: Page closed]
snakeas has joined #m-labs
<snakeas> ok thx
snakeas has quit [Quit: Page closed]
kilae has quit [Quit: ChatZilla 0.9.93 [Firefox 53.0.2/20170504105526]]
rohitksingh has joined #m-labs
rohitksingh has quit [Quit: Leaving.]