Using MAKE with Driver compilation

Hi
I’m trying to compile a driver(tuner tbs6502) which has been successful upto 4.10.9-1-default. However for the last few iterations of Tumbleweed, It fails as the variable KERNELREVISON is permanently set to 4.10.9-1-default.

I’ve just upgraded to:
linux-steam:/usr/src/linux # uname -r
4.10.12-1-default

When I compile the driver I get the following;
Linux-steam:/ # ./tbs-compile.sh
Linux linux-steam 4.10.12-1-default #1 SMP PREEMPT Fri Apr 21 11:50:25 UTC 2017 (3043bd9) x86_64 x86_64 x86_64 GNU/Linux
TBS drivers configured for x86_64 platform.
make -C /home/Myth/WorkArea/linux-tbs-drivers/v4l
make[1]: Entering directory ‘/home/Myth/WorkArea/linux-tbs-drivers/v4l’
creating symbolic links…
make -C firmware prep
make[2]: Entering directory ‘/home/Myth/WorkArea/linux-tbs-drivers/v4l/firmware’
make[2]: Leaving directory ‘/home/Myth/WorkArea/linux-tbs-drivers/v4l/firmware’
make -C firmware
make[2]: Entering directory ‘/home/Myth/WorkArea/linux-tbs-drivers/v4l/firmware’
make[2]: Nothing to be done for ‘default’.
make[2]: Leaving directory ‘/home/Myth/WorkArea/linux-tbs-drivers/v4l/firmware’
Chris Kernel build directory is /lib/modules/4.10.9-1-default/build
make -C /lib/modules/4.10.9-1-default/build SUBDIRS=/home/Myth/WorkArea/linux-tbs-drivers/v4l modules
make[2]: Entering directory ‘/usr/src/linux-4.10.9-1-obj/x86_64/default’

The Line in Bold is generated by the tbs6502 MAKEFILE:
@echo Chris Kernel build directory is $(OUTDIR)

also in MAKE file “OUTDIR ?= /lib/modules/$(KERNELRELEASE)/build”

From this I reason KERNELREVISION is the problem.
After much Googling I am no further forward on how to reset/change KERNELREVISION and make sure it rolls forward with future Tumbleweed updates.

Any help gratefully received.

Regards
Chris Fudge

Hi,

which sources do you use?
I guess that KERNELREVISON is either set in a make file or by a configure script.
But without seeing the files in question, I can only guess …

Hendrik

Hi Hendrik,
Thanks for the reply and impetus.Dipped into some books learned more about MAKE. Problem solved not by altering Tumbleweed files but by deleting my TBS6502 driver directory(work area) then unzipping the same Driver package and letting extract, then copy across to work area. Have ungraded again to linux-4.10.13-1 and recompiled the driver without problem. So I’m left scratching my head :wink:
Regards
Chris Fudge