Lines Matching +full:- +full:duser_nn_bit_len
2 # * Copyright (C) 2017 - This file is part of libecc project
7 # * Jean-Pierre FLORI <jean-pierre.flori@ssi.gouv.fr>
21 if [ -e $1 ]
58 mkdir -p $ROOT_DIR
60 cp -r $SRC_DIR/src/ $ROOT_DIR/
61 cp -r $SRC_DIR/include/ $ROOT_DIR/
64 mkdir -p $ROOT_DIR/build
65 mkdir -p $CROSSBUILD_OUTPUT/compilation_log
66 mkdir -p $CROSSBUILD_OUTPUT/error_log
69 …64 bit triplets, multiarch/crossbuild docker's gcc 4.9 has a bug handling loop unrolling in -O3 and
72 # Also, add the "-Wno-pedantic-ms-format" for specific quikrs of mingw with "%lld" (...)
73 if [ "$triplet" = "x86_64-w64-mingw32" ] || [ "$triplet" = "aarch64-linux-gnu" ]; then
74 extra_lib_cflags="-O2"
76 if [ "$triplet" = "x86_64-w64-mingw32" ] && [ "$wordsize" = "64" ]; then
77 extra_lib_cflags=$extra_lib_cflags" -Wno-pedantic-ms-format"
80 # Also, add the "-Wno-pedantic-ms-format" for specific quikrs of mingw with "%lld" (...)
81 elif [ "$triplet" = "i686-w64-mingw32" ]; then
82 extra_lib_cflags="-Wno-maybe-uninitialized"
85 extra_lib_cflags=$extra_lib_cflags" -Wno-pedantic-ms-format"
89 …elif [ "$triplet" = "i386-apple-darwin" ] || [ "$triplet" = "x86_64-apple-darwin" ] || [ "$triplet…
90 extra_lib_cflags="-Wno-error"
91 extra_bin_cflags="-Wno-error"
97 echo "======== COMPILING RELEASE FOR $triplet / $wordsize" 2>&1 | tee -a $COMPILATION_LOG_FILE
99 …-e VERBOSE=1 -e ASSERT_PRINT="1" -e COMPLETE="$COMPLETE" -e BLINDING="$BLINDING" -e LADDER="$LADDE…
100 mkdir -p $CROSSBUILD_OUTPUT/"$triplet"/word"$wordsize"
104 …-e VERBOSE=1 -e ASSERT_PRINT="1" -e COMPLETE="$COMPLETE" -e BLINDING="$BLINDING" -e LADDER="$LADDE…
107 …-e VERBOSE=1 -e ASSERT_PRINT="1" -e COMPLETE="$COMPLETE" -e BLINDING="$BLINDING" -e LADDER="$LADDE…
108 …-e VERBOSE=1 -e ASSERT_PRINT="1" -e COMPLETE="$COMPLETE" -e BLINDING="$BLINDING" -e LADDER="$LADDE…
110 echo "======== COMPILING DEBUG FOR $triplet / $wordsize" 2>&1 | tee -a $COMPILATION_LOG_FILE
113 …-e VERBOSE=1 -e ASSERT_PRINT="1" -e COMPLETE="$COMPLETE" -e BLINDING="$BLINDING" -e LADDER="$LADDE…
114 mkdir -p $CROSSBUILD_OUTPUT/"$triplet"/word"$wordsize"
118 …-e VERBOSE=1 -e ASSERT_PRINT="1" -e COMPLETE="$COMPLETE" -e BLINDING="$BLINDING" -e LADDER="$LADDE…
121 …-e VERBOSE=1 -e ASSERT_PRINT="1" -e COMPLETE="$COMPLETE" -e BLINDING="$BLINDING" -e LADDER="$LADDE…
122 …-e VERBOSE=1 -e ASSERT_PRINT="1" -e COMPLETE="$COMPLETE" -e BLINDING="$BLINDING" -e LADDER="$LADDE…
123 echo "===========================================" 2>&1 | tee -a $COMPILATION_LOG_FILE
124 # Compile static binaries for everyone except Mac OS (gcc on it does not support -static)
125 …if [ "$triplet" != "i386-apple-darwin" ] && [ "$triplet" != "x86_64-apple-darwin" ] && [ "$triplet…
127 …echo "======== COMPILING STATIC RELEASE FOR $triplet / $wordsize" 2>&1 | tee -a $COMPILATION_LOG_F…
129 …-e VERBOSE=1 -e ASSERT_PRINT="1" -e COMPLETE="$COMPLETE" -e BLINDING="$BLINDING" -e LADDER="$LADDE…
130 mkdir -p $CROSSBUILD_OUTPUT/"$triplet"/word"$wordsize"
134 …-e VERBOSE=1 -e ASSERT_PRINT="1" -e COMPLETE="$COMPLETE" -e BLINDING="$BLINDING" -e LADDER="$LADDE…
137 …-e VERBOSE=1 -e ASSERT_PRINT="1" -e COMPLETE="$COMPLETE" -e BLINDING="$BLINDING" -e LADDER="$LADDE…
138 …-e VERBOSE=1 -e ASSERT_PRINT="1" -e COMPLETE="$COMPLETE" -e BLINDING="$BLINDING" -e LADDER="$LADDE…
142 …-e VERBOSE=1 -e ASSERT_PRINT="1" -e COMPLETE="$COMPLETE" -e BLINDING="$BLINDING" -e LADDER="$LADDE…
143 …-e VERBOSE=1 -e ASSERT_PRINT="1" -e COMPLETE="$COMPLETE" -e BLINDING="$BLINDING" -e LADDER="$LADDE…
145 …-e VERBOSE=1 -e ASSERT_PRINT="1" -e COMPLETE="$COMPLETE" -e BLINDING="$BLINDING" -e LADDER="$LADDE…
146 mkdir -p $CROSSBUILD_OUTPUT/"$triplet"/word"$wordsize"
150 …-e VERBOSE=1 -e ASSERT_PRINT="1" -e COMPLETE="$COMPLETE" -e BLINDING="$BLINDING" -e LADDER="$LADDE…
153 …-e VERBOSE=1 -e ASSERT_PRINT="1" -e COMPLETE="$COMPLETE" -e BLINDING="$BLINDING" -e LADDER="$LADDE…
154 …-e VERBOSE=1 -e ASSERT_PRINT="1" -e COMPLETE="$COMPLETE" -e BLINDING="$BLINDING" -e LADDER="$LADDE…
157 …echo "======== COMPILING STATIC DEBUG FOR $triplet / $wordsize" 2>&1 | tee -a $COMPILATION_LOG_FILE
160 …-e VERBOSE=1 -e ASSERT_PRINT="1" -e COMPLETE="$COMPLETE" -e BLINDING="$BLINDING" -e LADDER="$LADDE…
161 mkdir -p $CROSSBUILD_OUTPUT/"$triplet"/word"$wordsize"
165 …-e VERBOSE=1 -e ASSERT_PRINT="1" -e COMPLETE="$COMPLETE" -e BLINDING="$BLINDING" -e LADDER="$LADDE…
168 …-e VERBOSE=1 -e ASSERT_PRINT="1" -e COMPLETE="$COMPLETE" -e BLINDING="$BLINDING" -e LADDER="$LADDE…
169 …-e VERBOSE=1 -e ASSERT_PRINT="1" -e COMPLETE="$COMPLETE" -e BLINDING="$BLINDING" -e LADDER="$LADDE…
173 …-e VERBOSE=1 -e ASSERT_PRINT="1" -e COMPLETE="$COMPLETE" -e BLINDING="$BLINDING" -e LADDER="$LADDE…
174 …-e VERBOSE=1 -e ASSERT_PRINT="1" -e COMPLETE="$COMPLETE" -e BLINDING="$BLINDING" -e LADDER="$LADDE…
176 …-e VERBOSE=1 -e ASSERT_PRINT="1" -e COMPLETE="$COMPLETE" -e BLINDING="$BLINDING" -e LADDER="$LADDE…
177 mkdir -p $CROSSBUILD_OUTPUT/"$triplet"/word"$wordsize"
181 …-e VERBOSE=1 -e ASSERT_PRINT="1" -e COMPLETE="$COMPLETE" -e BLINDING="$BLINDING" -e LADDER="$LADDE…
184 …-e VERBOSE=1 -e ASSERT_PRINT="1" -e COMPLETE="$COMPLETE" -e BLINDING="$BLINDING" -e LADDER="$LADDE…
185 …-e VERBOSE=1 -e ASSERT_PRINT="1" -e COMPLETE="$COMPLETE" -e BLINDING="$BLINDING" -e LADDER="$LADDE…
187 echo "===========================================" 2>&1 | tee -a $COMPILATION_LOG_FILE
190 rm -rf $ROOT_DIR
199 echo "arm-linux-gnueabi / arm-linux-gnueabihf / powerpc64le-linux-gnu / aarch64-linux-gnu /"
200 …echo "mipsel-linux-gnu / i386-apple-darwin / x86_64-apple-darwin / i686-w64-mingw32 / x86_64-w64-m…
203 echo " -h: print this help"
204 echo " -triplet: execute the crossbuild only for a given triplet:"
205 echo " $ sh $0 -triplet arm-linux-gnueabi"
206 echo " => This will execute cross-compilation for arm-linux-gnueabi for all the word sizes."
207 echo " $ sh $0 -triplet arm-linux-gnueabi 64"
208 …echo " => This will execute cross-compilation for arm-linux-gnueabi only for 64-bit word size…
209 …echo " -cpu: will specify the number of tasks used for parallel compilation. The default behaviou…
211 …echo " tasks with this toggle. Warning: this toggle is not compatible with the -triplet tog…
219 SRC_DIR=`dirname "$(readlink -f "$0")"`/..
223 CHECK_DOCKER=$(docker -v)
224 if [ $? -ne 0 ]; then
230 if [ -z $(docker images -q multiarch/crossbuild) ]
238 if [ "$1" = "-h" ]
245 if [ "$1" = "-triplet" ]
248 if ! [ "$4" = "-automate" ]
251 rm -rf $CROSSBUILD_OUTPUT/*
252 …-e VERBOSE=1 -e ASSERT_PRINT="1" -e COMPLETE="$COMPLETE" -e BLINDING="$BLINDING" -e LADDER="$LADDE…
253 …-e VERBOSE=1 -e ASSERT_PRINT="1" -e COMPLETE="$COMPLETE" -e BLINDING="$BLINDING" -e LADDER="$LADDE…
254 …-e VERBOSE=1 -e ASSERT_PRINT="1" -e COMPLETE="$COMPLETE" -e BLINDING="$BLINDING" -e LADDER="$LADDE…
271 rm -rf $CROSSBUILD_OUTPUT/*
272 …-e VERBOSE=1 -e ASSERT_PRINT="1" -e COMPLETE="$COMPLETE" -e BLINDING="$BLINDING" -e LADDER="$LADDE…
273 …-e VERBOSE=1 -e ASSERT_PRINT="1" -e COMPLETE="$COMPLETE" -e BLINDING="$BLINDING" -e LADDER="$LADDE…
274 …-e VERBOSE=1 -e ASSERT_PRINT="1" -e COMPLETE="$COMPLETE" -e BLINDING="$BLINDING" -e LADDER="$LADDE…
279 …-linux-gnueabi arm-linux-gnueabihf powerpc64le-linux-gnu aarch64-linux-gnu mipsel-linux-gnu i386-a…
281 ALL_CHECKS="$ALL_CHECKS\n-triplet $triplet $wordsize -automate"
285 if [ "$1" = "-cpu" ]
287 if [ "$3" = "-triplet" ]
289 echo "-cpu and -triplet are not compatible ..."
301 echo $ALL_CHECKS | xargs -n 4 -P $NCPU sh `readlink -f "$0"`
306 …-linux-gnueabi arm-linux-gnueabihf powerpc64le-linux-gnu aarch64-linux-gnu mipsel-linux-gnu i386-a…
309 if [ -f "$ERROR_LOG_FILE" ]; then