summaryrefslogtreecommitdiff
path: root/execs/odp-mdev.yaml
diff options
context:
space:
mode:
Diffstat (limited to 'execs/odp-mdev.yaml')
-rw-r--r--execs/odp-mdev.yaml50
1 files changed, 50 insertions, 0 deletions
diff --git a/execs/odp-mdev.yaml b/execs/odp-mdev.yaml
new file mode 100644
index 0000000..6366ee3
--- /dev/null
+++ b/execs/odp-mdev.yaml
@@ -0,0 +1,50 @@
+metadata:
+ name: ODP mdev
+ format: "Lava-Test-Shell Test Definition 1.0"
+ description: "Setup ODP with mediated devices support"
+ version: 1.0
+
+params:
+ PUB_KEY: None
+ IRC_SERVER: irc.freenode.net
+ ODP_BRANCH: ddf
+ BUILD_DIR: /root
+ ODP_JOBS: 32
+
+install:
+ deps:
+ - autotools-dev
+ - autoconf
+ - libtool
+ - autogen
+ - gcc
+ - g++
+ - make
+ - libssl-dev
+ - libcunit1
+ - libcunit1-dev
+ - libconfig-dev
+ - m4
+ - pkg-config
+ - uuid
+ - uuid-runtime
+ - locales-all
+
+run:
+ steps:
+ - echo "Build ODP kernel drivers"
+ - git clone https://github.com/apalos/odp-linux-mdev.git
+ - cd odp-linux-mdev && make -j32 && cd ..
+ - mkdir -p /usr/include/uapi
+ - cp odp-linux-mdev/include/uapi/linux/* /usr/include/uapi
+ - echo "Build ODP"
+ # add missing kernel headers
+ - git clone https://github.com/apalos/odp.git
+ - cd odp
+ - git checkout $ODP_BRANCH
+ - ./bootstrap
+ - autoreconf -i
+ - ./configure --enable-debug --enable-debug-print --enable-mdev
+ - make -j $ODP_JOBS
+ - make install
+ - cp mdev/odp.conf /root