diff options
author | Vasyl Vavrychuk <vasyl.vavrychuk@opensynergy.com> | 2022-11-01 22:04:36 +0100 |
---|---|---|
committer | Jan-Simon Moeller <jsmoeller@linuxfoundation.org> | 2022-11-10 11:46:22 +0000 |
commit | 2c05932416e5f6b421f79a3250d88ffe4ce495c2 (patch) | |
tree | 145524d0e6ef8c29149f3f98dca95803c70500fa /meta-egvirt/recipes-kernel/kernel-module-virtio-can/files/Kbuild | |
parent | f1bac3c6a060d68e31bef4cd21eeea7f97d9f58f (diff) |
virtualization: Add virtio-can driver as external module.
This driver should conform RFC spec draft v2 [1].
This driver is based on RFC version [2].
Imported from internal OpenSynergy's revision:
3918336a7caab95a72442c33945a193ca893d5e8
Supply build file `Kbuild` and do not supply makefile [3] since external
kernel module could be built without it. On the other hand, module
BitBake class relies on wrapper makefile presence, therefore
`MAKE_TARGETS` and `MODULES_INSTALL_TARGET` had to be set to specify
arguments per [3].
Add driver as an external module to avoid unnecessary kernel rebuild and
simplify future updates.
[1]: https://lists.oasis-open.org/archives/virtio-dev/202208/msg00159.html
[2]: https://lists.oasis-open.org/archives/virtio-dev/202208/msg00160.html
[3]: https://www.kernel.org/doc/html/v6.0/kbuild/modules.html
Change-Id: I9b654f58cc0c34983cd4103a5f7836263db79ec7
Bug-AGL: SPEC-4597
Signed-off-by: Vasyl Vavrychuk <vasyl.vavrychuk@opensynergy.com>
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 |