...
 
Commits (20)
...@@ -23,7 +23,7 @@ PDF=$(addprefix pdf/, $(SRC:.md=.pdf)) ...@@ -23,7 +23,7 @@ PDF=$(addprefix pdf/, $(SRC:.md=.pdf))
TEX=$(SRC:.md=.tex) TEX=$(SRC:.md=.tex)
## Pandoc arguments ## Pandoc arguments
OPTIONS=-s --from markdown+yaml_metadata_block --toc --number-sections --smart OPTIONS?=-s --from markdown+yaml_metadata_block --toc --number-sections --smart
TEMPLATE=pandoc.latex TEMPLATE=pandoc.latex
...@@ -42,6 +42,9 @@ DATE = $(shell date +"%d %b. %Y") ...@@ -42,6 +42,9 @@ DATE = $(shell date +"%d %b. %Y")
all: $(PDF) all: $(PDF)
tex: $(TEX) tex: $(TEX)
pdf: $(PDF) pdf: $(PDF)
verbose:
make OPTIONS="-s --from markdown+yaml_metadata_block --toc --number-sections --smart --verbose" -C . pdf
## Special targets to create directory ## Special targets to create directory
DIR_%: DIR_%:
......
...@@ -90,6 +90,8 @@ $if(listings)$ ...@@ -90,6 +90,8 @@ $if(listings)$
\lstset{% \lstset{%
basicstyle=\small\ttfamily, basicstyle=\small\ttfamily,
breaklines=true, breaklines=true,
keepspaces=true,
showstringspaces=false,
fancyvrb=true, fancyvrb=true,
tabsize=2, tabsize=2,
columns=fullflexible, columns=fullflexible,
......
This diff is collapsed.
...@@ -11,6 +11,10 @@ RUN \ ...@@ -11,6 +11,10 @@ RUN \
apt-get upgrade -y &&\ apt-get upgrade -y &&\
apt-get install -y git \ apt-get install -y git \
build-essential \ build-essential \
python-minimal \
wget \
libreadline-dev \
kmod \
linux-headers-4.4.0-21-generic \ linux-headers-4.4.0-21-generic \
linux-headers-4.8.0-34-generic \ linux-headers-4.8.0-34-generic \
linux-headers-4.10.0-14-generic \ linux-headers-4.10.0-14-generic \
...@@ -19,25 +23,19 @@ RUN \ ...@@ -19,25 +23,19 @@ RUN \
# Clone repository and detach HEAD # Clone repository and detach HEAD
RUN \ RUN \
git clone https://ohwr.org/project/spec-sw.git &&\ git clone https://ohwr.org/project/wr-starting-kit.git &&\
cd spec-sw &&\ cd wr-starting-kit &&\
git checkout 36f70fe4 # TODO: preliminary commit for wr-starting-kit-v3.0
git checkout 50f368abff0d4aed8223858f552b3184249695d2
#set enviroment variable for kernel version 4.4.0-21-generic # The kernel version 4.4.0-21-generic does not work
ENV LINUX /lib/modules/4.4.0-21-generic/build
#construction spec-sw for kernel version 4.4.0-21-generic
RUN \
cd spec-sw &&\
make &&\
make install
#set enviroment variable for kernel version 4.8.0-34-generic #set enviroment variable for kernel version 4.8.0-34-generic
ENV LINUX /lib/modules/4.8.0-34-generic/build ENV LINUX /lib/modules/4.8.0-34-generic/build
#construction spec-sw for kernel version 4.8.0-34-generic #construction spec-sw for kernel version 4.8.0-34-generic
RUN \ RUN \
cd spec-sw &&\ cd wr-starting-kit &&\
make clean &&\ make clean &&\
make &&\ make &&\
make install make install
...@@ -47,7 +45,7 @@ ENV LINUX /lib/modules/4.10.0-14-generic/build ...@@ -47,7 +45,7 @@ ENV LINUX /lib/modules/4.10.0-14-generic/build
#construction spec-sw for kernel version 4.10.0-14-generic #construction spec-sw for kernel version 4.10.0-14-generic
RUN \ RUN \
cd spec-sw &&\ cd wr-starting-kit &&\
make clean &&\ make clean &&\
make &&\ make &&\
make install make install
...@@ -57,7 +55,7 @@ ENV LINUX /lib/modules/4.13.0-16-generic/build ...@@ -57,7 +55,7 @@ ENV LINUX /lib/modules/4.13.0-16-generic/build
#construction spec-sw for kernel version 4.13.0-16-generic #construction spec-sw for kernel version 4.13.0-16-generic
RUN \ RUN \
cd spec-sw &&\ cd wr-starting-kit &&\
make clean &&\ make clean &&\
make &&\ make &&\
make install make install
...@@ -67,10 +65,16 @@ ENV LINUX /lib/modules/4.15.0-13-generic/build ...@@ -67,10 +65,16 @@ ENV LINUX /lib/modules/4.15.0-13-generic/build
#construction spec-sw for kernel version 4.15.0-13-generic #construction spec-sw for kernel version 4.15.0-13-generic
RUN \ RUN \
cd spec-sw &&\ cd wr-starting-kit &&\
make clean &&\ make clean &&\
make &&\ make &&\
make install make install
#create file FRU
RUN \
cd /wr-starting-kit/spec-sw/fmc-bus/tools &&\
FRU_VENDOR="CERN" FRU_NAME="FmcDio5cha" FRU_PART="EDA-02408-V2-0" \
./fru-generator -s 7S-WR-FMCDIO5ch-2.0-Sx.yyy > example.bin
# Define default command. # Define default command.
CMD ["bash"] CMD ["bash"]
...@@ -12,21 +12,26 @@ RUN \ ...@@ -12,21 +12,26 @@ RUN \
apt-get upgrade -y &&\ apt-get upgrade -y &&\
apt-get install -y git \ apt-get install -y git \
build-essential \ build-essential \
python-minimal \
wget \
libreadline-dev \
kmod \
linux-headers-4.15.0-47-generic \ linux-headers-4.15.0-47-generic \
linux-headers-4.18.0-17-generic linux-headers-4.18.0-17-generic
# Clone repository and detach HEAD # Clone repository and detach HEAD
RUN \ RUN \
git clone https://ohwr.org/project/spec-sw.git &&\ git clone https://ohwr.org/project/wr-starting-kit.git &&\
cd spec-sw &&\ cd wr-starting-kit &&\
git checkout 36f70fe4 # TODO: preliminary commit for wr-starting-kit-v3.0
git checkout 50f368abff0d4aed8223858f552b3184249695d2
#set enviroment variable for kernel version 4.15.0-47-generic #set enviroment variable for kernel version 4.15.0-47-generic
ENV LINUX /lib/modules/4.15.0-47-generic/build ENV LINUX /lib/modules/4.15.0-47-generic/build
#construction spec-sw for kerner version 4.15.0-47-generic #construction spec-sw for kerner version 4.15.0-47-generic
RUN \ RUN \
cd spec-sw &&\ cd wr-starting-kit &&\
make &&\ make &&\
make install make install
...@@ -35,10 +40,16 @@ ENV LINUX /lib/modules/4.18.0-17-generic/build ...@@ -35,10 +40,16 @@ ENV LINUX /lib/modules/4.18.0-17-generic/build
#construction spec-sw for kernel version 4.18.0-17-generic #construction spec-sw for kernel version 4.18.0-17-generic
RUN \ RUN \
cd spec-sw &&\ cd wr-starting-kit &&\
make clean &&\ make clean &&\
make &&\ make &&\
make install make install
#create file FRU
RUN \
cd /wr-starting-kit/spec-sw/fmc-bus/tools &&\
FRU_VENDOR="CERN" FRU_NAME="FmcDio5cha" FRU_PART="EDA-02408-V2-0" \
./fru-generator -s 7S-WR-FMCDIO5ch-2.0-Sx.yyy > example.bin
# Define default command. # Define default command.
CMD ["bash"] CMD ["bash"]