@@ -9,13 +9,14 @@ export PATH="$TEMP_INSTALL_DIR/bin:$PATH"
99
1010# Build options
1111export TARGET=i686-elf # Configure target
12- export num_jobs=${num_jobs:- " -j" } # Specify number of build jobs
12+ export num_jobs=${num_jobs:- " -j" } # Specify number of build jobs
1313
1414# Version numbers
15- export binutils_version=${binutils_version:- 2.26} # ftp://ftp.gnu.org/gnu/binutils
16- export newlib_version=${newlib_version:- 2.4.0} # ftp://sourceware.org/pub/newlib
17- export gcc_version=${gcc_version:- 6.2.0} # ftp://ftp.nluug.nl/mirror/languages/gcc/releases/
18- export clang_version=${clang_version:- 3.8} # http://releases.llvm.org/
15+ export binutils_version=${binutils_version:- 2.28} # ftp://ftp.gnu.org/gnu/binutils
16+ export newlib_version=${newlib_version:- 2.5.0.20170323} # ftp://sourceware.org/pub/newlib
17+ # export newlib_version=${newlib_version:-2.5.0} # ftp://sourceware.org/pub/newlib
18+ export gcc_version=${gcc_version:- 6.3.0} # ftp://ftp.nluug.nl/mirror/languages/gcc/releases/
19+ export clang_version=${clang_version:- 3.9} # http://releases.llvm.org/
1920export LLVM_TAG=${LLVM_TAG:- RELEASE_381/ final} # http://llvm.org/svn/llvm-project/llvm/tags
2021
2122# Options to skip steps
@@ -50,8 +51,11 @@ DEPS_BUILD="build-essential make nasm texinfo clang-$clang_version clang++-$clan
5051
5152echo -e " \n\n >>> Trying to install prerequisites for *building* IncludeOS"
5253echo -e " Packages: $DEPS_BUILD \n"
53- sudo apt-get update
54- sudo apt-get install -y $DEPS_BUILD
54+
55+ if [ ! -z $do_packages ]; then
56+ sudo apt-get update
57+ sudo apt-get install -y $DEPS_BUILD
58+ fi
5559
5660# Print currently set install options
5761printf " \n\n>>> Bundle will be created with the following options:\n\n"
@@ -113,10 +117,10 @@ filename_tag=`echo $tag | tr . -`
113117popd
114118
115119# Where to place the installation bundle
116- DIR_NAME=" IncludeOS_install "
117- export INSTALL_DIR =${INSTALL_DIR :- ~/ $DIR_NAME }
120+ DIR_NAME=" IncludeOS_dependencies "
121+ export BUNDLE_DIR =${BUNDLE_DIR :- ~/ $DIR_NAME }
118122
119- echo " >>> Creating Installation Bundle as $INSTALL_DIR "
123+ echo " >>> Creating Installation Bundle as $BUNDLE_DIR "
120124
121125OUTFILE=" ${DIR_NAME} _$filename_tag .tar.gz"
122126
@@ -128,6 +132,7 @@ libc=$newlib/libc.a
128132libm=$newlib /libm.a
129133libg=$newlib /libg.a
130134libcpp=$llvm /lib/libc++.a
135+ libcppabi=$llvm /lib/libc++abi.a
131136
132137GPP=$TEMP_INSTALL_DIR /bin/i686-elf-g++
133138GCC_VER=` $GPP -dumpversion`
@@ -138,26 +143,27 @@ include_newlib=$TEMP_INSTALL_DIR/i686-elf/include
138143include_libcxx=$llvm /include/c++/v1
139144
140145# Make directory-tree
141- mkdir -p $INSTALL_DIR
142- mkdir -p $INSTALL_DIR /newlib
143- mkdir -p $INSTALL_DIR /libcxx
144- mkdir -p $INSTALL_DIR /crt
145- mkdir -p $INSTALL_DIR /libgcc
146+ mkdir -p $BUNDLE_DIR
147+ mkdir -p $BUNDLE_DIR /newlib
148+ mkdir -p $BUNDLE_DIR /libcxx
149+ mkdir -p $BUNDLE_DIR /crt
150+ mkdir -p $BUNDLE_DIR /libgcc
146151
147152# Copy binaries
148- cp $libcpp $INSTALL_DIR /libcxx/
149- cp $libm $INSTALL_DIR /newlib/
150- cp $libc $INSTALL_DIR /newlib/
151- cp $libg $INSTALL_DIR /newlib/
152- cp $libgcc $INSTALL_DIR /libgcc/
153- cp $TEMP_INSTALL_DIR /lib/gcc/i686-elf/$GCC_VER /crt* .o $INSTALL_DIR /crt/
153+ cp $libcpp $BUNDLE_DIR /libcxx/
154+ cp $libcppabi $BUNDLE_DIR /libcxx/
155+ cp $libm $BUNDLE_DIR /newlib/
156+ cp $libc $BUNDLE_DIR /newlib/
157+ cp $libg $BUNDLE_DIR /newlib/
158+ cp $libgcc $BUNDLE_DIR /libgcc/
159+ cp $TEMP_INSTALL_DIR /lib/gcc/i686-elf/$GCC_VER /crt* .o $BUNDLE_DIR /crt/
154160
155161# Copy includes
156- cp -r $include_newlib $INSTALL_DIR /newlib/
157- cp -r $include_libcxx $INSTALL_DIR /libcxx/include
162+ cp -r $include_newlib $BUNDLE_DIR /newlib/
163+ cp -r $include_libcxx $BUNDLE_DIR /libcxx/include
158164
159165# Zip it
160- tar -czvf $OUTFILE --directory=$INSTALL_DIR /../ $DIR_NAME
166+ tar -czvf $OUTFILE --directory=$BUNDLE_DIR /../ $DIR_NAME
161167
162168echo " >>> IncludeOS Installation Bundle created as $INSTALL_DIR and gzipped into $OUTFILE "
163169
0 commit comments