kumquat-buildroot/package/wireless-regdb/wireless-regdb.mk
Christoph Engelbert 39e4b46748 wireless-regdb: add regulatory.db[.p7s] to /lib/firmware
Starting from kernel version 4.15, Linux supports loading
regulatory.db and regulatory.db.p7s files directly from /lib/firmware,
without the need of crda. If the kernel can't load those files it'll
fallback to using crda, but the direct way is preferred.

This patch copies those those files under /lib/firmware. The use of
crda shouldn't be necessary with kernels of 4.15 or later.

Signed-off-by: Christoph Engelbert <me@noctarius.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
2018-07-18 13:14:50 +02:00

25 lines
911 B
Makefile

################################################################################
#
# wireless-regdb
#
################################################################################
WIRELESS_REGDB_VERSION = 2018.05.31
WIRELESS_REGDB_SOURCE = wireless-regdb-$(WIRELESS_REGDB_VERSION).tar.xz
WIRELESS_REGDB_SITE = http://kernel.org/pub/software/network/wireless-regdb
WIRELESS_REGDB_LICENSE = ISC
WIRELESS_REGDB_LICENSE_FILES = LICENSE
define WIRELESS_REGDB_INSTALL_TARGET_CMDS
$(INSTALL) -m 644 -D -T $(@D)/regulatory.bin \
$(TARGET_DIR)/usr/lib/crda/regulatory.bin
$(INSTALL) -m 644 -D -T $(@D)/sforshee.key.pub.pem \
$(TARGET_DIR)/etc/wireless-regdb/pubkeys/sforshee.key.pub.pem
$(INSTALL) -m 644 -D -T $(@D)/regulatory.db \
$(TARGET_DIR)/lib/firmware/regulatory.db
$(INSTALL) -m 644 -D -T $(@D)/regulatory.db.p7s \
$(TARGET_DIR)/lib/firmware/regulatory.db.p7s
endef
$(eval $(generic-package))