Skip to content

Commit

Permalink
fix: kmod flags and vars.
Browse files Browse the repository at this point in the history
  • Loading branch information
jerzyjamroz committed Nov 14, 2024
1 parent 47d7f8f commit e8903b4
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion mrmShared/linux/CONFIG
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
DESCRIPTION = mrf kernel driver provided by EPICS modules (mrfioc2)
# Version definition for driver
# 20240124 Release
DRV_VERSION := 3
DRV_VERSION := 4
# Package control vars
## PKG_NAME follows the kmod name
PKG_NAME_DKMS := mrf-dkms
Expand Down
2 changes: 1 addition & 1 deletion mrmShared/linux/Kbuild
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
KBUILD_CPPFLAGS += -DDRV_VERSION='"$(DRV_VERSION)"'
CFLAGS_MODULE += -DDRV_VERSION='"$(DRV_VERSION)"'

obj-m := mrf.o

Expand Down
4 changes: 3 additions & 1 deletion mrmShared/linux/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,11 @@ KERNEL_SRC ?= /lib/modules/$(shell uname -r)/build

include CONFIG

MAKE += DRV_VERSION=$(DRV_VERSION)

all: modules

modules modules_install clean:
$(MAKE) -C $(KERNEL_SRC) DRV_VERSION='$(DRV_VERSION)' M=$(CURDIR) $@
$(MAKE) -C $(KERNEL_SRC) M=$(CURDIR) $@

.PHONY: all modules modules_install clean

0 comments on commit e8903b4

Please sign in to comment.