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