Add out-of-tree Gasket driver for Google Coral support (#1848)

The Google Gasket driver has been removed from the main kernels staging
tree between 5.10 and 5.15 development window. Readd Google's
out-of-tree driver to continiue support Google Coral devices.
This commit is contained in:
Stefan Agner
2022-04-15 13:04:37 +02:00
committed by GitHub
parent 2c20e5db3e
commit f2106c6990
18 changed files with 51 additions and 8 deletions

View File

@@ -0,0 +1,7 @@
config BR2_PACKAGE_GASKET
tristate "Coral Gasket Driver"
depends on BR2_LINUX_KERNEL
---help---
Driver for Gasket (Google ASIC Software, Kernel Extensions, and Tools)
is a top level driver for lightweight communication with Google ASICs.
Apex refers to the EdgeTPU v1.

View File

@@ -0,0 +1,20 @@
GASKET_VERSION = 97aeba584efd18983850c36dcf7384b0185284b3
GASKET_SITE = $(call github,google,gasket-driver,$(GASKET_VERSION))
GASKET_LICENSE = GPL-2.0
GASKET_LICENSE_FILES = LICENSE
GASKET_MODULE_SUBDIRS = src
#GASKET_MODULE_MAKE_OPTS = \
# CONFIG_RTL8822BU=m \
# KVER=$(LINUX_VERSION_PROBED) \
# KBASE=$(LINUX_DIR) \
# CROSS_COMPILE=$(TARGET_CROSS)
#ifeq (arm, $(filter arm, $(KERNEL_ARCH)))
#GASKET_MODULE_MAKE_OPTS += CONFIG_PLATFORM_ARM_RPI=y
#else
#GASKET_MODULE_MAKE_OPTS += CONFIG_PLATFORM_I386_PC=y
#endif
$(eval $(kernel-module))
$(eval $(generic-package))