diff options
author | Denys Fedoryshchenko <denys.f@collabora.com> | 2024-04-02 00:16:33 +0300 |
---|---|---|
committer | Denys Fedoryshchenko <denys.f@collabora.com> | 2024-04-02 03:15:30 +0300 |
commit | 6de7ff916bca3ef97eefca9e36cd8db45c2a0c7e (patch) | |
tree | fec8f523f76aace6339df53b58951265ad7ffac6 /drivers/ipoe | |
parent | 6afbc5075a3cf88a47f01c9051dd0a7fdcb06299 (diff) | |
download | accel-ppp-6de7ff916bca3ef97eefca9e36cd8db45c2a0c7e.tar.gz accel-ppp-6de7ff916bca3ef97eefca9e36cd8db45c2a0c7e.zip |
ipoe/vlan_mon: Add proper accel_ppp_version to vlan_mon and ipoe
Signed-off-by: Denys Fedoryshchenko <denys.f@collabora.com>
Diffstat (limited to 'drivers/ipoe')
-rw-r--r-- | drivers/ipoe/CMakeLists.txt | 2 | ||||
-rw-r--r-- | drivers/ipoe/ipoe.c | 3 |
2 files changed, 4 insertions, 1 deletions
diff --git a/drivers/ipoe/CMakeLists.txt b/drivers/ipoe/CMakeLists.txt index 6f4f043a..e221a7ec 100644 --- a/drivers/ipoe/CMakeLists.txt +++ b/drivers/ipoe/CMakeLists.txt @@ -1,3 +1,4 @@ + if (NOT DEFINED KDIR) set(KDIR "/usr/src/linux") endif (NOT DEFINED KDIR) @@ -6,6 +7,7 @@ ADD_CUSTOM_COMMAND(OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/driver/ipoe.ko COMMAND rm -rf ${CMAKE_CURRENT_BINARY_DIR}/driver COMMAND mkdir ${CMAKE_CURRENT_BINARY_DIR}/driver COMMAND ln -sf ${CMAKE_CURRENT_SOURCE_DIR}/* ${CMAKE_CURRENT_BINARY_DIR}/driver + COMMAND ln -sf ${CMAKE_BINARY_DIR}/version.h ${CMAKE_CURRENT_BINARY_DIR}/driver COMMAND make -C ${KDIR} M=${CMAKE_CURRENT_BINARY_DIR}/driver modules DEPENDS ipoe.c ipoe.h ) diff --git a/drivers/ipoe/ipoe.c b/drivers/ipoe/ipoe.c index 2008e08b..fa7dec3f 100644 --- a/drivers/ipoe/ipoe.c +++ b/drivers/ipoe/ipoe.c @@ -33,6 +33,7 @@ #include <net/ip6_route.h> #include "ipoe.h" +#include "version.h" #define BEGIN_UPDATE 1 #define UPDATE 2 @@ -1909,7 +1910,7 @@ static int __init ipoe_init(void) { int err, i; - printk("IPoE session driver v1.11\n"); + printk("IPoE session driver v%s\n", ACCEL_PPP_VERSION); /*err = register_pernet_device(&ipoe_net_ops); if (err < 0) |