X-Git-Url: http://git.megacz.com/?p=nestedvm.git;a=blobdiff_plain;f=upstream%2FMakefile;h=32a90e2a07ab685c8a158217b378cb664850413c;hp=bade84677a6f6af42c459c8d29827beb456f37b2;hb=e3813c6d457e973859f55b9f7014abc328bb86f4;hpb=21f77776e6abfcb7bb7e33ab10ffeda3d76b0539 diff --git a/upstream/Makefile b/upstream/Makefile index bade846..32a90e2 100644 --- a/upstream/Makefile +++ b/upstream/Makefile @@ -9,6 +9,11 @@ patches_gcc = gcc-fixes.patch gcc-fdata-sections-bss.patch configure_gcc = --target=mips-unknown-elf --disable-threads --with-gnu-ld --with-gnu-as --with-newlib=yes --enable-sjlj-exceptions --enable-languages="c" configure_gcc_step2 = $(configure_gcc) --enable-languages="c,c++" +version_gpc = 20030830 +url_gpc = http://www.gnu-pascal.de/alpha/gpc-$(version_gpc).tar.gz +patches_gpc = $(patches_gcc) gpc-with-3.3.3.patch gpc-noutils.patch +configure_gpc = $(configure_gcc) --enable-languages="pascal" + version_binutils = 2.14 url_binutils = ftp://ftp.gnu.org/gnu/binutils/binutils-$(version_binutils).tar.gz patches_binutils = binutils-no64.patch binutils-nocompilein.patch @@ -191,6 +196,30 @@ tasks/build_gcc_step2: tasks/patch_gcc tasks/build_libc $(MAKE) install touch $@ +tasks/extract_gpc: tasks/download_gcc tasks/download_gpc + mkdir -p build/gpc.extract + cd build/gpc.extract && \ + gzip -dc ../../download/gcc-core-$(version_gcc).tar.gz | tar xf - && \ + gzip -dc ../../download/gpc-$(version_gpc).tar.gz | tar xf - && \ + test ! -e gcc-$(version_gcc)/gcc/p && \ + mv gpc-$(version_gpc)/p gcc-$(version_gcc)/gcc/p + mv build/gpc.extract/gcc-$(version_gcc) build/gpc-$(version_gpc) + rm -rf build/gpc.extract + touch $@ + +tasks/build_gpc: tasks/patch_gpc tasks/build_libc + mkdir -p $(usr) + # We need to preapply this patch because gpc's configury doesn't like 3.3.3 + cd build/gpc-$(version_gpc) && cat gcc/version.c | grep -q GPC || $(PATCH) -p0 < gcc/p/diffs/gcc-3.3.diff + + # echo | is to dismiss the gcc version warning + mkdir -p build/gpc-obj && cd build/gpc-obj && \ + echo | ../gpc-$(version_gpc)/configure --prefix=$(usr) $(configure_gpc) && \ + $(MAKE) TARGET_CFLAGS="$(MIPS_CFLAGS)" && \ + cd gcc && $(MAKE) pascal.install + + touch $@ + tasks/build_openbsdglob: tasks/download_openbsdglob tasks/build_newlib @mkdir -p $(usr)/mips-unknown-elf/{include,lib} cd build && gzip -dc ../download/openbsdglob.tar.gz | tar xf -