File tree Expand file tree Collapse file tree 3 files changed +41
-0
lines changed Expand file tree Collapse file tree 3 files changed +41
-0
lines changed Original file line number Diff line number Diff line change 1+ FROM ubuntu:16.04
2+
3+
4+ RUN apt-get update && apt-get --no-install-recommends -y install \
5+ build-essential gcc git make flex bison \
6+ software-properties-common libwww-perl python \
7+ bin86 gdb bcc liblzma-dev python-dev gettext iasl \
8+ uuid-dev libncurses5-dev libncursesw5-dev pkg-config \
9+ libgtk2.0-dev libyajl-dev sudo time
10+
11+
12+ ADD scripts/docker_compile_xen.sh docker_compile_xen.sh
13+ ADD . /tmp/cbmc
14+ RUN sudo ./docker_compile_xen.sh
15+ VOLUME /tmp/cbmc
16+ VOLUME /tmp/xen_compilation
Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+ docker rm xen_build_container
3+ docker build -t " xen_image" .
4+ docker run -i -t --name " xen_build_container" xen_image /bin/bash
Original file line number Diff line number Diff line change 1+ # /bin/bash
2+ cd /tmp/cbmc/src
3+ make minisat2-download
4+ make -j$( nproc)
5+ mkdir /tmp/xen_compilation
6+ cd /tmp/xen_compilation
7+ ln -s /tmp/cbmc/src/goto-cc/goto-cc goto-ld
8+ ln -s /tmp/cbmc/src/goto-cc/goto-cc goto-gcc
9+ ln -s /tmp/cbmc/src/goto-cc/goto-cc goto-diff
10+ git clone https://github.com/awslabs/one-line-scan.git
11+ git clone git://xenbits.xen.org/xen.git
12+ export PATH=$( pwd) /one-line-scan/configuration:$PATH
13+ export PATH=$( pwd) :$PATH
14+
15+ cd xen
16+ if one-line-scan --no-analysis --trunc-existing --extra-cflags -Wno-error -o CPROVER -j$(( $(nproc)/ 4 )) -- make xen -j$( nproc) ; then
17+ echo " SUCCESS: Compilation of Xen succeeded"
18+ else
19+ echo " FAILED: Compilation of Xen failed. The build log can be found in /tmp/xen_compilation/xen/CPROVER/build.log"
20+ fi
21+
You can’t perform that action at this time.
0 commit comments