diff options
author | jdp <jdp@FreeBSD.org> | 1998-03-01 23:41:17 +0000 |
---|---|---|
committer | jdp <jdp@FreeBSD.org> | 1998-03-01 23:41:17 +0000 |
commit | 8222bc81a24ad204d76d22477847c9e34a4bbac2 (patch) | |
tree | 8e555b486be69941abe80170ece6786d775cecae /gnu/usr.bin/binutils/update.sh | |
parent | e83b4a256a4fbf16c7d0826da378236eb4c51061 (diff) | |
download | FreeBSD-src-8222bc81a24ad204d76d22477847c9e34a4bbac2.zip FreeBSD-src-8222bc81a24ad204d76d22477847c9e34a4bbac2.tar.gz |
Add bmakefiles for building binutils from the contrib tree.
This finishes up the binutils import. But I am leaving it disabled
in "src/gnu/usr.bin/Makefile" for now. It is not used by anything
yet, so I'll take this opportunity to run one more round of tests
before enabling it.
Diffstat (limited to 'gnu/usr.bin/binutils/update.sh')
-rwxr-xr-x | gnu/usr.bin/binutils/update.sh | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/gnu/usr.bin/binutils/update.sh b/gnu/usr.bin/binutils/update.sh new file mode 100755 index 0000000..aaa8117 --- /dev/null +++ b/gnu/usr.bin/binutils/update.sh @@ -0,0 +1,49 @@ +#! /bin/sh +# +# This script installs the main files generated by the binutils +# "configure" scripts and makefiles. It can be used for upgrading to +# a new version of binutils. +# +# Don't forget to change the VERSION definition in the top level +# "Makefile.inc0". + +gnudir=$(pwd) +contribdir="${gnudir}/../../../contrib/binutils" + +rm -rf build +mkdir -p build/i386-aout +(cd build/i386-aout + ${contribdir}/configure i386-unknown-freebsd || exit + (cd gas + echo "Updating i386-aout/as" + make config.h || exit + cp config.h ${gnudir}/i386-aout/as/config.h || exit + ) + ) + +mkdir -p build/i386-elf +(cd build/i386-elf + ${contribdir}/configure i386-unknown-freebsdelf || exit + (cd gas + echo "Updating i386-elf/as" + make config.h || exit + cp config.h ${gnudir}/i386-elf/as/config.h || exit + ) + (cd ld + echo "Updating i386-elf/ld" + make config.h ldemul-list.h || exit + cp config.h ldemul-list.h ${gnudir}/i386-elf/ld || exit + ) + (cd bfd + echo "Updating libbfd" + make bfd.h config.h || exit + cp bfd.h config.h ${gnudir}/libbfd || exit + ) + (cd binutils + echo "Updating libbinutils" + make config.h || exit + cp config.h ${gnudir}/libbinutils/config.h || exit + ) + ) + +rm -rf build |