Skip to content

Commit

Permalink
Fixed ITE makefile for kernel 5.*
Browse files Browse the repository at this point in the history
  • Loading branch information
lelegard committed Nov 8, 2020
1 parent 21d221b commit 078a64c
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 5 deletions.
2 changes: 1 addition & 1 deletion linux-drivers/build-dkms.sh
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ elif [[ -n "$UB_DISTRO" ]]; then
DISTRO_VERSION="$UB_DISTRO"
DEB_DISTRO=true
elif [[ -n "$DB_DISTRO" ]]; then
DISTRO_VERSION="$DEB_DISTRO"
DISTRO_VERSION="$DB_DISTRO"
DEB_DISTRO=true
fi
DISTRO="$DISTRO_PREFIX"$(sed <<<"$DISTRO_VERSION" -e 's/\..*//')
Expand Down
2 changes: 1 addition & 1 deletion linux-drivers/config/control.template
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Architecture: all
Maintainer: ITE Technologies Inc.
Section: free/kernel
Priority: optional
Depends: dkms, libelf-dev, raspberrypi-kernel-headers | linux-headers
Depends: dkms, libelf-dev, raspberrypi-kernel-headers | linux-headers | linux-kernel-headers
Description: Source code and DKMS setup for the HiDes device drivers.
This package installs the source code and DKMS setup for the kernel modules
of the HiDes device drivers. Each time the kernel is upgraded, the HiDes
Expand Down
7 changes: 5 additions & 2 deletions linux-drivers/it950x_driver/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,12 @@ module=usb-it950x
PWD = $(shell pwd)
MACHINE = $(shell uname -m)
CURRENT = $(shell uname -r)
KERNELDIR = /lib/modules/$(CURRENT)/build
INSTALLDIR := /lib/modules/$(CURRENT)/kernel/drivers/media

ifndef KERNELDIR
KERNELDIR = /lib/modules/$(CURRENT)/build
endif

$(module)-objs := \
it950x-core.o it950x-drv.o iocontrol.o \
tuner.o cmd.o IT9133.o ADF4351.o \
Expand All @@ -15,7 +18,7 @@ $(module)-objs := \
obj-m += $(module).o

default:
$(MAKE) -C $(KERNELDIR) SUBDIRS=$(PWD) modules
$(MAKE) MYPWD=$(PWD) -C $(KERNELDIR) M=$(PWD) modules

EXTRA_CFLAGS += -DEXPORT_SYMTAB -Wno-unused-value -Wno-unused-variable -Wno-unused-parameter -Wno-switch

Expand Down
2 changes: 1 addition & 1 deletion linux-drivers/it950x_driver/it950x-core.h
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@

#ifdef TSDUCK_WRITE
/* Add "w" for "wait" at end of version */
#define DRIVER_RELEASE_VERSION "v16.11.10.1w"
#define DRIVER_RELEASE_VERSION "v16.11.10.1w.1"
#else
#define DRIVER_RELEASE_VERSION "v16.11.10.1"
#endif
Expand Down

0 comments on commit 078a64c

Please sign in to comment.