03:23
sb0 has joined #m-labs
05:39
_whitelogger has joined #m-labs
05:54
_whitelogger has joined #m-labs
06:00
_whitelogger has joined #m-labs
06:21
_whitelogger has joined #m-labs
07:02
sb0 has quit [Quit: Leaving]
07:57
_whitelogger has joined #m-labs
10:14
rohitksingh has joined #m-labs
13:25
mumptai has joined #m-labs
14:18
sb0 has joined #m-labs
14:24
aziz has joined #m-labs
14:24
<
aziz >
i dont know if that could help
14:25
<
aziz >
this Makefile to install milkymist toolchain
14:26
<
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 #
14:27
<
aziz >
dont know how to upload it
14:28
<
aziz >
its a modification of Xiangfu Liu Makefile
14:29
<
aziz >
that donst work
14:30
<
aziz >
i you wish i can give it for you
14:30
<
aziz >
it work fine
14:31
rohitksingh has quit [Quit: Leaving.]
14:34
kilae has joined #m-labs
14:55
snakeas has joined #m-labs
14:56
aziz has quit [Quit: Page closed]
15:01
<
snakeas >
# This program is free software: you can redistribute it and/or modify
15:01
<
snakeas >
# this file try to manager build RTMS toolchain
15:01
<
snakeas >
# Written 2011 by Xiangfu Liu <xiangfu@sharism.cc>
15:01
<
snakeas >
# it under the terms of the GNU General Public License as published by
15:02
<
snakeas >
# the Free Software Foundation, version 3 of the License.
15:02
<
snakeas >
# This program is distributed in the hope that it will be useful,
15:02
<
snakeas >
# but WITHOUT ANY WARRANTY; without even the implied warranty of
15:02
<
snakeas >
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15:02
<
snakeas >
# GNU General Public License for more details.
15:02
<
snakeas >
# You should have received a copy of the GNU General Public License
15:02
<
snakeas >
#make sure you have wrtie access
15:02
<
snakeas >
RTEMS_PREFIX=/opt/rtems-$(RTEMS_VERSION)
15:02
<
snakeas >
RTEMS_VERSION=4.11
15:02
<
snakeas >
export CFLAGS=-Wno-error
15:02
<
snakeas >
RTEMS_SOURCES_URL=https://ftp.rtems.org/pub/rtems/archive/SOURCES/$(RTEMS_VERSION)
15:02
<
snakeas >
# For Mac OS X use curl.
15:02
<
snakeas >
WGET=wget -c -O
15:02
<
snakeas >
# WGET=curl -o
15:02
<
snakeas >
BINUTILS_VERSION=2.23.90
15:02
<
snakeas >
GCC_CORE_VERSION=4.5.4
15:02
<
snakeas >
NEWLIB_VERSION=1.20.0
15:02
<
snakeas >
GDB_VERSION=7.5.1
15:03
<
snakeas >
GMP_VERSION=4.3.2
15:03
<
snakeas >
MPC_VERSION=1.0.1
15:03
<
snakeas >
MPFR_VERSION=2.4.2
15:03
<
snakeas >
BINUTILS=binutils-$(BINUTILS_VERSION).tar.bz2
15:03
<
snakeas >
GCC_CORE=gcc-core-$(GCC_CORE_VERSION).tar.bz2
15:03
<
snakeas >
NEWLIB=newlib-$(NEWLIB_VERSION).tar.gz
15:03
<
snakeas >
GDB=gdb-$(GDB_VERSION).tar.bz2
15:03
<
snakeas >
GMP=gmp-$(GMP_VERSION).tar.bz2
15:03
<
snakeas >
MPC=mpc-$(MPC_VERSION).tar.gz
15:03
<
snakeas >
MPFR=mpfr-$(MPFR_VERSION).tar.bz2
15:03
<
snakeas >
GCC_CORE_PATCH=gcc-core-$(GCC_CORE_VERSION)-rtems$(RTEMS_VERSION)-20120703.diff
15:03
<
snakeas >
NEWLIB_PATCH=newlib-$(NEWLIB_VERSION)-rtems$(RTEMS_VERSION)-20130325.diff
15:03
<
snakeas >
GDB_PATCH=gdb-$(GDB_VERSION)-rtems$(RTEMS_VERSION)-20140506.diff
15:03
<
snakeas >
DL=$(if $(wildcard ../dl/.),../dl,dl)
15:03
<
snakeas >
RTEMS_PATCHES_DIR=rtems-patches
15:03
<
snakeas >
MM1_PATCHES_DIR=milkymist-one-patches
15:03
<
snakeas >
# make sure this rule stays at top
15:03
<
snakeas >
all: .install.gcc2.ok #.install.gdb.ok #no debugge for the moment
15:03
<
snakeas >
.PHONY: all clean
15:03
<
snakeas >
#first gcc compiler used to compile newlib, called stripped gcc
15:03
<
snakeas >
.install.gcc1.ok: .compile.gcc1.ok
15:03
<
snakeas >
$(MAKE) -C b-gcc install-gcc
15:03
<
snakeas >
.compile.gcc1.ok: .install.binutils.ok .patch.ok
15:04
<
snakeas >
export PATH=$(RTEMS_PREFIX)/bin:$(PATH)
15:04
<
snakeas >
mkdir -p b-gcc
15:04
<
snakeas >
cd b-gcc/ && \
15:04
<
snakeas >
../gcc-$(GCC_CORE_VERSION)/configure --target=lm32-rtems4.11 \
15:04
<
snakeas >
--with-gnu-as --with-gnu-ld --with-newlib --without-headers \
15:04
<
snakeas >
--enable-threads --enable-languages=c --disable-shared \
15:04
<
snakeas >
--prefix=$(RTEMS_PREFIX) --disable-multilib --disable-libssp
15:04
<
snakeas >
$(MAKE) -C b-gcc all-gcc
15:04
<
snakeas >
$(MAKE) -C b-gcc info-gcc
15:04
<
snakeas >
#final gcc compiler
15:04
<
snakeas >
.install.gcc2.ok: .compile.gcc2.ok
15:04
<
snakeas >
$(MAKE) -C b-gcc install
15:04
<
snakeas >
.compile.gcc2.ok: .install.newlib.ok
15:04
<
snakeas >
export PATH=$(RTEMS_PREFIX)/bin:$(PATH)
15:04
<
snakeas >
mkdir -p b-gcc
15:04
<
snakeas >
cd b-gcc/ && rm -rf * && \
15:04
<
snakeas >
../gcc-$(GCC_CORE_VERSION)/configure --target=lm32-rtems4.11 \
15:04
<
snakeas >
--with-gnu-as --with-gnu-ld --with-newlib \
15:04
<
snakeas >
--enable-threads --enable-languages=c \
15:04
<
snakeas >
--prefix=$(RTEMS_PREFIX) --disable-multilib --disable-libssp
15:04
<
snakeas >
$(MAKE) -C b-gcc all
15:05
<
snakeas >
$(MAKE) -C b-gcc info
15:05
<
snakeas >
.install.gdb.ok: .compile.gdb.ok
15:05
<
snakeas >
$(MAKE) -C b-gdb install
15:05
<
snakeas >
.compile.gdb.ok: .install.binutils.ok .patch.ok
15:05
<
snakeas >
export PATH=$(RTEMS_PREFIX)/bin:$(PATH)
15:05
<
snakeas >
mkdir -p b-gdb
15:05
<
snakeas >
cd b-gdb/ && ../gdb-$(GDB_VERSION)/configure --target=lm32-rtems4.11 \
15:05
<
snakeas >
--prefix=$(RTEMS_PREFIX) --with-gnu-as --with-gnu-ld --with-newlib \
15:05
<
snakeas >
--enable-threads --disable-multilib --disable-libss --host=$(MACHTYPE)\
15:05
<
snakeas >
--build=$(MACHTYPE)
15:05
<
snakeas >
$(MAKE) -C b-gdb all
15:05
<
snakeas >
.install.binutils.ok: .compile.binutils.ok
15:05
<
snakeas >
mkdir -p $(RTEMS_PREFIX)
15:05
<
snakeas >
$(MAKE) -C b-binutils install
15:05
<
snakeas >
.compile.binutils.ok: .patch.ok
15:05
<
snakeas >
mkdir -p b-binutils
15:05
<
snakeas >
cd b-binutils && \
15:05
<
snakeas >
../binutils-$(BINUTILS_VERSION)/configure --target=lm32-rtems4.11 \
15:06
<
snakeas >
--prefix=$(RTEMS_PREFIX) --disable-multilib
15:06
<
snakeas >
$(MAKE) -C b-binutils all
15:06
<
snakeas >
$(MAKE) -C b-binutils info
15:06
<
snakeas >
.install.newlib.ok: .compile.newlib.ok
15:06
<
snakeas >
mkdir -p $(RTEMS_PREFIX)
15:06
<
snakeas >
$(MAKE) -C b-newlib install
15:06
<
snakeas >
.compile.newlib.ok: .install.gcc1.ok .patch.ok
15:06
<
snakeas >
mkdir -p b-newlib
15:06
<
snakeas >
cd b-newlib && \
15:06
<
snakeas >
../newlib-$(NEWLIB_VERSION)/configure --target=lm32-rtems4.11 \
15:06
<
snakeas >
--with-gnu-as --with-gnu-ld --with-newlib \
15:06
<
snakeas >
--enable-threads \
15:06
<
snakeas >
--prefix=$(RTEMS_PREFIX) --disable-multilib --disable-libssp
15:06
<
snakeas >
$(MAKE) -C b-newlib all
15:06
<
snakeas >
$(MAKE) -C b-newlib info
15:06
<
snakeas >
.patch.ok: .unzip.ok $(RTEMS_PATCHES_DIR)/.ok
15:06
<
snakeas >
cd gcc-$(GCC_CORE_VERSION) && \
15:06
<
snakeas >
patch -p1 < ../$(RTEMS_PATCHES_DIR)/$(GCC_CORE_PATCH) && \
15:07
<
snakeas >
patch -p1 < ../$(MM1_PATCHES_DIR)/gcc-core-4.5.4-fix-errors-in-doc-generation-on-texinfo5.patch
15:07
<
snakeas >
cd newlib-$(NEWLIB_VERSION) && \
15:07
<
snakeas >
patch -p1 < ../$(RTEMS_PATCHES_DIR)/$(NEWLIB_PATCH)
15:07
<
snakeas >
cd gdb-$(GDB_VERSION) && \
15:07
<
snakeas >
patch -p1 < ../$(RTEMS_PATCHES_DIR)/$(GDB_PATCH) && patch -p1 < ../$(MM1_PATCHES_DIR)/gdb-fix-errors-in-bfd-header.patch
15:07
<
snakeas >
cd binutils-$(BINUTILS_VERSION) && patch -p1 < ../$(MM1_PATCHES_DIR)/binutils-fix-errors-in-bfd-header.patch
15:07
<
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
15:07
<
snakeas >
tar xf $(DL)/$(BINUTILS)
15:07
<
snakeas >
tar xf $(DL)/$(GCC_CORE)
15:07
<
snakeas >
tar xf $(DL)/$(NEWLIB)
15:07
<
snakeas >
tar xf $(DL)/$(GDB)
15:07
<
snakeas >
tar xf $(DL)/$(GMP)
15:07
<
snakeas >
tar xf $(DL)/$(MPC)
15:07
<
snakeas >
tar xf $(DL)/$(MPFR)
15:07
<
snakeas >
rm -rf gcc-$(GCC_CORE_VERSION)/gmp gcc-$(GCC_CORE_VERSION)/mpc \
15:07
<
snakeas >
gcc-$(GCC_CORE_VERSION)/mpfr
15:07
<
snakeas >
ln -s ../gmp-$(GMP_VERSION) gcc-$(GCC_CORE_VERSION)/gmp
15:07
<
snakeas >
ln -s ../mpc-$(MPC_VERSION) gcc-$(GCC_CORE_VERSION)/mpc
15:08
<
snakeas >
ln -s ../mpfr-$(MPFR_VERSION) gcc-$(GCC_CORE_VERSION)/mpfr
15:08
<
snakeas >
$(RTEMS_PATCHES_DIR)/.ok:
15:08
<
snakeas >
mkdir -p $(RTEMS_PATCHES_DIR)
15:08
<
snakeas >
$(WGET) $(RTEMS_PATCHES_DIR)/$(GCC_CORE_PATCH) \
15:08
<
snakeas >
$(RTEMS_SOURCES_URL)/$(GCC_CORE_PATCH)
15:08
<
snakeas >
$(WGET) $(RTEMS_PATCHES_DIR)/$(NEWLIB_PATCH) \
15:08
<
snakeas >
$(RTEMS_SOURCES_URL)/$(NEWLIB_PATCH)
15:08
<
snakeas >
$(WGET) $(RTEMS_PATCHES_DIR)/$(GDB_PATCH) \
15:08
<
snakeas >
$(RTEMS_SOURCES_URL)/$(GDB_PATCH)
15:08
<
snakeas >
$(DL)/$(BINUTILS).ok:
15:08
<
snakeas >
mkdir -p $(DL)
15:08
<
snakeas >
$(WGET) $(DL)/$(BINUTILS) $(RTEMS_SOURCES_URL)/$(BINUTILS)
15:08
<
snakeas >
$(DL)/$(GCC_CORE).ok:
15:08
<
snakeas >
mkdir -p $(DL)
15:08
<
snakeas >
$(WGET) $(DL)/$(GCC_CORE) $(RTEMS_SOURCES_URL)/$(GCC_CORE)
15:08
<
snakeas >
$(DL)/$(NEWLIB).ok:
15:08
<
snakeas >
mkdir -p $(DL)
15:08
<
snakeas >
$(WGET) $(DL)/$(NEWLIB) $(RTEMS_SOURCES_URL)/$(NEWLIB)
15:09
<
snakeas >
$(DL)/$(GDB).ok:
15:09
<
snakeas >
mkdir -p $(DL)
15:09
<
snakeas >
$(WGET) $(DL)/$(GDB) $(RTEMS_SOURCES_URL)/$(GDB)
15:09
<
snakeas >
$(DL)/$(GMP).ok:
15:09
<
snakeas >
mkdir -p $(DL)
15:09
<
snakeas >
$(WGET) $(DL)/$(GMP) $(RTEMS_SOURCES_URL)/$(GMP)
15:09
<
snakeas >
$(DL)/$(MPC).ok:
15:09
<
snakeas >
mkdir -p $(DL)
15:09
<
snakeas >
$(WGET) $(DL)/$(MPC) $(RTEMS_SOURCES_URL)/$(MPC)
15:09
<
snakeas >
$(DL)/$(MPFR).ok:
15:09
<
snakeas >
mkdir -p $(DL)
15:09
<
snakeas >
$(WGET) $(DL)/$(MPFR) $(RTEMS_SOURCES_URL)/$(MPFR)
15:09
<
snakeas >
rm -rf b-binutils
15:09
<
snakeas >
rm -rf b-gcc
15:09
<
snakeas >
rm -rf b-gdb
15:09
<
snakeas >
rm -rf b-newlib
15:09
<
snakeas >
rm -rf binutils-$(BINUTILS_VERSION)
15:09
<
snakeas >
rm -rf gcc-$(GCC_CORE_VERSION)
15:09
<
snakeas >
rm -rf newlib-$(NEWLIB_VERSION)
15:10
<
snakeas >
rm -rf gdb-$(GDB_VERSION)
15:10
<
snakeas >
rm -rf $(RTEMS_PATCHES_DIR)
15:10
<
snakeas >
rm -rf gmp-$(GMP_VERSION)
15:10
<
snakeas >
rm -rf mpc-$(MPC_VERSION)
15:10
<
snakeas >
rm -rf mpfr-$(MPFR_VERSION)
15:10
<
snakeas >
rm -f .*.ok
15:10
<
snakeas >
rm -f .ok
15:10
<
snakeas >
# disable parallel execution of targets in this top-level Makefile. Makefiles
15:10
<
snakeas >
# invoked via $(MAKE) still run parallel if -j was passed to the top-level
15:10
<
snakeas >
# Makefile.
15:10
<
snakeas >
.NOTPARALLEL:
15:10
<
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
15:10
<
snakeas >
by the way iam aziz
15:10
<
snakeas >
the makefile is in scripts/compile-lm32-rtems/Makefile
15:11
aziz has joined #m-labs
15:19
<
sb0 >
snakeas, please use some paste website like hastebin.com
15:21
<
sb0 >
and what is your question/problem?
15:53
<
sb0 >
rjo, can pdq2_client be deleted?
16:26
<
snakeas >
its not a question, its an update of an old not working script to install the toolchain. do what ever you want with.
16:26
<
sb0 >
snakeas, okay, for this sort of thing i'd recommend you fork/PR the original repository on github
16:30
snakeas has quit [Ping timeout: 246 seconds]
16:30
aziz has quit [Ping timeout: 260 seconds]
17:33
aziz has joined #m-labs
17:39
aziz has quit [Quit: Page closed]
17:39
snakeas has joined #m-labs
18:37
snakeas has quit [Quit: Page closed]
18:38
kilae has quit [Quit: ChatZilla 0.9.93 [Firefox 53.0.2/20170504105526]]
19:30
rohitksingh has joined #m-labs
19:46
rohitksingh has quit [Quit: Leaving.]