From 3b97fc10e366e08b325cf81f4c7080d7df04ccaf Mon Sep 17 00:00:00 2001 From: RISCi_ATOM Date: Wed, 13 Dec 2017 12:43:08 -0500 Subject: [PATCH] Add ath9k_htc and carl9170fw firmware to librecmc (does not build on some distros) --- .../firmware/linux-libre-firmware/Makefile | 38 +++++++++++++++++++ package/firmware/linux-libre-firmware/qca.mk | 16 ++++++++ 2 files changed, 54 insertions(+) create mode 100644 package/firmware/linux-libre-firmware/Makefile create mode 100644 package/firmware/linux-libre-firmware/qca.mk diff --git a/package/firmware/linux-libre-firmware/Makefile b/package/firmware/linux-libre-firmware/Makefile new file mode 100644 index 0000000000..483d1f4c1b --- /dev/null +++ b/package/firmware/linux-libre-firmware/Makefile @@ -0,0 +1,38 @@ +# +# Copyright (C) 2014 OpenWrt.org +# +# This is free software, licensed under the GNU General Public License v2. +# See /LICENSE for more information. +# + +include $(TOPDIR)/rules.mk + +PKG_NAME:=linux-libre-firmware +PKG_RELEASE:=1 + +PKG_SOURCE_PROTO:=git +PKG_SOURCE_URL:=https://gogs.librecmc.org/libreCMC/linux-libre-firmware.git +PKG_SOURCE_DATE:=2017-11-25 +PKG_SOURCE_VERSION:=faaf53e62dfa95e22601ad867b139e8ebc2aedea +PKG_MIRROR_HASH:= + +PKG_MAINTAINER:=Felix Fietkau + +SCAN_DEPS = *.mk + +include $(INCLUDE_DIR)/package.mk + +define Package/firmware-default + SECTION:=firmware + CATEGORY:=Firmware + URL:=https://gogs.librecmc.org/libreCMC/linux-libre-firmware.git + TITLE:=$(1) +endef + +define Build/Compile + +$(MAKE) -C $(PKG_BUILD_DIR) ath9k_htc_toolchain + +$(MAKE) -C $(PKG_BUILD_DIR) ath9k_htc +endef + +include $(wildcard ./*.mk) +#$(eval $(call BuildPackage,linux-libre-firmware)) diff --git a/package/firmware/linux-libre-firmware/qca.mk b/package/firmware/linux-libre-firmware/qca.mk new file mode 100644 index 0000000000..5bc3b9ed87 --- /dev/null +++ b/package/firmware/linux-libre-firmware/qca.mk @@ -0,0 +1,16 @@ +Package/ath9k-htc-firmware = $(call Package/firmware-default,AR9271/AR7010 firmware) +define Package/ath9k-htc-firmware/install + $(INSTALL_DIR) $(1)/lib/firmware/ath9k_htc + $(INSTALL_DATA) \ + $(PKG_BUILD_DIR)/ath9k_htc/target_firmware/htc_9271-1.4.0.fw \ + $(PKG_BUILD_DIR)/ath9k_htc/target_firmware/htc_7010-1.4.0.fw \ + $(1)/lib/firmware/ath9k_htc +endef +$(eval $(call BuildPackage,ath9k-htc-firmware)) + +Package/carl9170-firmware = $(call Package/firmware-default,AR9170 firmware) +define Package/carl9170-firmware/install + $(INSTALL_DIR) $(1)/lib/firmware + $(INSTALL_DATA) $(PKG_BUILD_DIR)/carl9170-1.fw $(1)/lib/firmware +endef +$(eval $(call BuildPackage,carl9170-firmware)) -- 2.25.1