From bfd5d7daf8296bb834f9c6d3b4c5eb20c33a991a Mon Sep 17 00:00:00 2001 From: Julian Rubisch Date: Tue, 3 Oct 2023 08:58:04 +0200 Subject: [PATCH] chore: Draft Dockerfile --- Dockerfile | 14 ++++++++++++++ Makefile | 2 +- 2 files changed, 15 insertions(+), 1 deletion(-) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..0c413ec --- /dev/null +++ b/Dockerfile @@ -0,0 +1,14 @@ +FROM ubuntu:jammy + +ENV KVERSION=5.15.0-84-generic + +# dependencies +RUN apt-get update && apt-get install build-essential git linux-virtual -yy + +# build +COPY . /linux-avb-driver +RUN cd linux-avb-driver && make KVERSION=$KVERSION && make install KVERSION=$KVERSION + +# load +RUN modprobe -S $KVERSION snd-avb + diff --git a/Makefile b/Makefile index 29c55ac..4f85c51 100755 --- a/Makefile +++ b/Makefile @@ -23,6 +23,6 @@ clean: install: mkdir -p $(MODINSTALL) cp snd-avb.ko $(MODINSTALL) - depmod -a + depmod -a $(KVERSION) endif