Add ath9k_htc firmware
authorRISCi_ATOM <bob@bobcall.me>
Thu, 14 Dec 2017 22:43:08 +0000 (17:43 -0500)
committerRISCi_ATOM <bob@bobcall.me>
Thu, 14 Dec 2017 22:43:08 +0000 (17:43 -0500)
package/firmware/linux-libre-firmware/Makefile [new file with mode: 0644]
package/firmware/linux-libre-firmware/qca.mk [new file with mode: 0644]

diff --git a/package/firmware/linux-libre-firmware/Makefile b/package/firmware/linux-libre-firmware/Makefile
new file mode 100644 (file)
index 0000000..ad997d0
--- /dev/null
@@ -0,0 +1,39 @@
+#
+# 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/libre_firmware.git
+PKG_SOURCE_DATE:=2017-12-14
+PKG_SOURCE_VERSION:=1afb874fa73dc1f4b7a4ffae49ed8dd32e2e772c
+PKG_MIRROR_HASH:=
+
+PKG_MAINTAINER:=
+
+SCAN_DEPS = *.mk
+
+include $(INCLUDE_DIR)/host-build.mk
+include $(INCLUDE_DIR)/package.mk
+
+define Package/firmware-default
+  SECTION:=firmware
+  CATEGORY:=Firmware
+  URL:=https://gogs.librecmc.org/libreCMC/libre_firmware.git
+  TITLE:=$(1)
+endef
+
+define Build/Compile
+
+endef
+
+include $(wildcard ./*.mk)
+$(eval $(call HostBuild))
+#$(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 (file)
index 0000000..1dcd8fc
--- /dev/null
@@ -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)/htc_9271.fw \
+               $(PKG_BUILD_DIR)/htc_7010.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))