diff options
Diffstat (limited to 'meta-egvirt/recipes-kernel/kernel-module-virtio-can/files/Kbuild')
-rw-r--r-- | meta-egvirt/recipes-kernel/kernel-module-virtio-can/files/Kbuild | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/meta-egvirt/recipes-kernel/kernel-module-virtio-can/files/Kbuild b/meta-egvirt/recipes-kernel/kernel-module-virtio-can/files/Kbuild new file mode 100644 index 00000000..6d9712b8 --- /dev/null +++ b/meta-egvirt/recipes-kernel/kernel-module-virtio-can/files/Kbuild @@ -0,0 +1,7 @@ +# --dirty to mark version with uncommitted changes as dirty +GIT_VERSION = $(shell git -C "$(MODULE_GIT_REPOSITORY_DIR)" describe --tags --dirty | sed 's/^v//') +ccflags-y += -DDRIVER_VERSION=\"$(GIT_VERSION)\" + +ccflags-y += -Werror + +obj-m := virtio_can.o |