File tree 3 files changed +17
-3
lines changed
3 files changed +17
-3
lines changed Original file line number Diff line number Diff line change
1
+ this file is a dummy marker to notify the build-process
2
+ that we are building from a development version of v4l2loopback.
3
+ (that is: directly from a git-clone, rather than from a released tarball)
Original file line number Diff line number Diff line change
1
+ ifneq ($(wildcard .gitversion) ,)
2
+ # building a snapshot version
3
+ override KCPPFLAGS += -DSNAPSHOT_VERSION='"$(shell git describe --always --dirty 2>/dev/null || shell git describe --always 2>/dev/null || echo snapshot) "'
4
+ endif
5
+
1
6
include Kbuild
2
7
ifeq ($(KBUILD_MODULES ) ,)
3
8
@@ -43,7 +48,7 @@ all: v4l2loopback.ko utils
43
48
v4l2loopback : v4l2loopback.ko
44
49
v4l2loopback.ko :
45
50
@echo " Building v4l2-loopback driver..."
46
- $(MAKE ) -C $(KERNEL_DIR ) M=$(PWD ) modules
51
+ $(MAKE ) -C $(KERNEL_DIR ) M=$(PWD ) KCPPFLAGS= " $( KCPPFLAGS ) " modules
47
52
48
53
install-all : install install-utils install-man
49
54
install :
Original file line number Diff line number Diff line change @@ -2865,11 +2865,17 @@ static int __init v4l2loopback_init_module(void)
2865
2865
2866
2866
dprintk ("module installed\n" );
2867
2867
2868
- printk (KERN_INFO "v4l2loopback driver version %d.%d.%d loaded\n" ,
2868
+ printk (KERN_INFO "v4l2loopback driver version %d.%d.%d%s loaded\n" ,
2869
2869
// clang-format off
2870
2870
(V4L2LOOPBACK_VERSION_CODE >> 16 ) & 0xff ,
2871
2871
(V4L2LOOPBACK_VERSION_CODE >> 8 ) & 0xff ,
2872
- (V4L2LOOPBACK_VERSION_CODE ) & 0xff );
2872
+ (V4L2LOOPBACK_VERSION_CODE ) & 0xff ,
2873
+ #ifdef SNAPSHOT_VERSION
2874
+ " (" STRINGIFY2 (SNAPSHOT_VERSION ) ")"
2875
+ #else
2876
+ ""
2877
+ #endif
2878
+ );
2873
2879
// clang-format on
2874
2880
2875
2881
return 0 ;
You can’t perform that action at this time.
0 commit comments