From 7d6ce37e54bf890b6fb3cb3f9f26c31820565737 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bastian=20M=C3=A4user?= Date: Sun, 25 Feb 2018 23:21:40 +0100 Subject: [PATCH] Added Option to Build Batman DKMS Modules from Upstream Code --- roles/batman/defaults/main.yml | 2 ++ roles/batman/templates/dkms.conf.j2 | 10 ++++++++++ 2 files changed, 12 insertions(+) create mode 100644 roles/batman/defaults/main.yml create mode 100644 roles/batman/templates/dkms.conf.j2 diff --git a/roles/batman/defaults/main.yml b/roles/batman/defaults/main.yml new file mode 100644 index 0000000..bc452f1 --- /dev/null +++ b/roles/batman/defaults/main.yml @@ -0,0 +1,2 @@ +batman-adv_version: 2017.3 +batman-adv_tar_sha256_hash: 830edd297ff11b91623e9612172db3e2b2c1524e2f9b2ca1cb243e2e3f0ba4d4 diff --git a/roles/batman/templates/dkms.conf.j2 b/roles/batman/templates/dkms.conf.j2 new file mode 100644 index 0000000..8b35fc8 --- /dev/null +++ b/roles/batman/templates/dkms.conf.j2 @@ -0,0 +1,10 @@ +PACKAGE_NAME='batman-adv' +PACKAGE_VERSION="{{ batman-adv_version }}" + +BUILT_MODULE_NAME[0]="batman-adv" +BUILT_MODULE_LOCATION[0]="build/net/batman-adv/" +DEST_MODULE_LOCATION[0]="/kernel/net/batman-adv/" +AUTOINSTALL=yes + +MAKE[0]="make KERNELPATH=${kernel_source_dir} CONFIG_BATMAN_ADV_BATMAN_V=y" +CLEAN="make KERNELPATH=${kernel_source_dir} clean"