upstream: https://github.com/mirage/mirage-crypto
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Solo5 support

massaged by Hannes Mehnert, hamsters, and providence

authored by

Martin Lucina and committed by
pqwy
9fe499f9 2695a3a7

+42 -4
+1 -1
Makefile
··· 36 36 $(SETUP) -configure $(CONFIGUREFLAGS) 37 37 38 38 setup.ml: _oasis 39 - @mkdir -p xen 39 + @mkdir -p xen solo5 40 40 oasis setup 41 41 @if [ -e _tags.extra ]; then cat _tags.extra >> _tags; fi 42 42 @if [ -e _tags.local ]; then cat _tags.local >> _tags; fi
+30 -1
_oasis
··· 19 19 Description: Build Xen support 20 20 Default: false 21 21 22 + Flag solo5 23 + Description: Build Solo5 support 24 + Default: false 25 + 22 26 Flag lwt 23 27 Description: Build Lwt/Unix support 24 28 Default: true ··· 97 101 Path: mirage/ 98 102 Findlibparent: nocrypto 99 103 Findlibname: mirage 100 - Build$: flag(xen) 104 + Build$: flag(xen) || flag(solo5) 101 105 Modules: Nocrypto_entropy_mirage 102 106 BuildDepends: nocrypto, lwt, mirage-entropy-xen 103 107 ··· 123 127 native/des/generic.c, 124 128 native/des/generic.h 125 129 CCOpt: --std=c99 -Wall -Wextra -Werror -O3 -DNDEBUG $XEN_CFLAGS 130 + if flag(modernity) && architecture(amd64) 131 + CCOpt+: -DACCELERATE -msse2 -maes 132 + 133 + Library nocrypto_solo5 134 + Path: solo5/ 135 + Findlibparent: nocrypto 136 + Findlibname: solo5 137 + Build$: flag(solo5) 138 + CSources: native/nocrypto.h, 139 + native/misc.c, 140 + native/hash/stubs.c, 141 + native/hash/bitfn.h, 142 + native/hash/md5.c, 143 + native/hash/md5.h, 144 + native/hash/sha1.c, 145 + native/hash/sha1.h, 146 + native/hash/sha256.c, 147 + native/hash/sha256.h, 148 + native/hash/sha512.c, 149 + native/hash/sha512.h, 150 + native/aes/generic.c, 151 + native/aes/aesni.c, 152 + native/des/generic.c, 153 + native/des/generic.h 154 + CCOpt: --std=c99 -Wall -Wextra -Werror -O3 -DNDEBUG $FREESTANDING_CFLAGS 126 155 if flag(modernity) && architecture(amd64) 127 156 CCOpt+: -DACCELERATE -msse2 -maes 128 157
+4 -1
myocamlbuild.ml.local
··· 5 5 | After_rules -> 6 6 copy_rule "xen_cstubs: copy generated source to xen directory" 7 7 "src/native/%" 8 - "xen/native/%" 8 + "xen/native/%"; 9 + copy_rule "solo5_cstubs: copy generated source to solo5 directory" 10 + "src/native/%" 11 + "solo5/native/%" 9 12 | _ -> () 10 13 end; 11 14 dispatch_default
+3 -1
opam
··· 9 9 build: [ 10 10 [ "./configure" "--prefix" prefix 11 11 "--%{lwt:enable}%-lwt" 12 - "--%{mirage-xen+mirage-entropy-xen:enable}%-xen" ] 12 + "--%{mirage-xen+mirage-entropy-xen:enable}%-xen" 13 + "--%{mirage-solo5+mirage-entropy-solo5:enable}%-solo5" ] 13 14 [ make ] 14 15 ] 15 16 install: [ make "install" ] ··· 24 25 "zarith" 25 26 "sexplib" 26 27 ("mirage-no-xen" | ("mirage-xen" & "mirage-entropy-xen" & "zarith-xen")) 28 + ("mirage-no-solo5" | ("mirage-solo5" & "mirage-entropy-solo5" & "zarith-freestanding")) 27 29 "ounit" {test} 28 30 ] 29 31
+4
postconf
··· 8 8 grep -q '^xen="true"' setup.data && XEN_CFLAGS="$(pkg-config --static mirage-xen --cflags)" 9 9 echo "XEN_CFLAGS=\"${XEN_CFLAGS}\"" >> setup.data 10 10 11 + FREESTANDING_CFLAGS="disabled" 12 + grep -q '^solo5="true"' setup.data && FREESTANDING_CFLAGS="$(pkg-config ocaml-freestanding --cflags)" 13 + echo "FREESTANDING_CFLAGS=\"${FREESTANDING_CFLAGS}\"" >> setup.data 14 + 11 15 # Kill CPU acceleration if requested in ./configure, but: 12 16 # * unsupported by the current host CPU; 13 17 # * unsupported by the current toolchain; or