Skip to content

Instantly share code, notes, and snippets.

@dillera
Last active January 2, 2020 17:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dillera/e4d48463bd4c20666619701acd83d32c to your computer and use it in GitHub Desktop.
Save dillera/e4d48463bd4c20666619701acd83d32c to your computer and use it in GitHub Desktop.
Building didbs 9
Building 0.1.9 - on Challenge/6.5.20
Full build path - assumes you do not have dids installed. Wget needs to be done by another system
$ su
# mkdir -p /usr/didbs
# chown myusername /usr/didbs
# exit
$ cd
$ wget https://github.com/danielhams/didbs/releases/download/0.1.9/usr-didbs-0.1.9-n32m3gcc.tar.gz
$ /usr/sbin/gunzip usr-didbs-0.1.9-n32m3gcc.tar.gz
$ cd /usr/didbs
$ tar xvf ~/usr-didbs-0.1.9-n32m3gcc.tar.gz
$ rm current
$ ln -s 0_1_9_n32_mips3_gcc current
# do you NOT need to do this unless you are NOT using 6.5.30
$ cd /usr/didbs/current/libexec/gcc/mips-sgi-irix6.5/9.2.0/install-tools
$ ./mkheaders
# You do NOT need to do this unless you want to build your own
# local didbs using dibs....
## this assumes you have pulled down the didbs repo
## i.e. git clone https://github.com/danielhams/didbs didbs.git
$ cd /usr/didbs/didbs.git
## this assumes you really forked didbs, cloned your fork here
## did:
## git remote add upstream https://github.com/danielhams/didbs.git
## to setup upsteam, and now you want to merge some new stuff from Thinly
$ git fetch upstream && git merge upstream/master
## Ok, now, remove any existing .conf file- if this is first time
## it won't exist...
$ rm /usr/didbs/didbs.git/bootstrap.conf
## now run the bootstrap for the first time and setup all the destinations
## somewhere that makes sense to you. For me 'didbs9gcc' makes sense...
./bootstrap.pl --packagedir /usr/didbs/didbs9gcc/packages \
--builddir /usr/didbs/didbs9gcc/sources \
--installdir /usr/didbs/didbs9gcc \
--compiler gcc \
--isa mips4 \
--elfwidth n32
## once that is completed, follow the directions from Thinly and run bootstrap again:
./bootstrap.pl
## enjoy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment