2022-11-16 04:47:41 +00:00
|
|
|
# SPDX-License-Identifier: GPL-2.0-or-later
|
2019-09-04 15:21:26 +00:00
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=cypress-nvram
|
2022-11-16 04:47:41 +00:00
|
|
|
PKG_RELEASE:=5
|
2019-09-04 15:21:26 +00:00
|
|
|
|
|
|
|
PKG_MAINTAINER:=Álvaro Fernández Rojas <noltari@gmail.com>
|
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
|
|
|
define Package/cypress-nvram-default
|
|
|
|
SECTION:=firmware
|
|
|
|
CATEGORY:=Firmware
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Build/Compile
|
|
|
|
true
|
|
|
|
endef
|
|
|
|
|
2022-11-16 04:47:41 +00:00
|
|
|
# Cypress 4339 SDIO AP6335 NVRAM
|
|
|
|
define Package/cypress-nvram-4339-sdio-ap6335
|
2019-09-04 15:21:26 +00:00
|
|
|
$(Package/cypress-nvram-default)
|
2022-11-16 04:47:41 +00:00
|
|
|
TITLE:=BCM4339 NVRAM for AP6335
|
|
|
|
CONFLICTS:=brcmfmac-firmware-4339-sdio-ap6335
|
2019-09-04 15:21:26 +00:00
|
|
|
endef
|
|
|
|
|
2022-11-16 04:47:41 +00:00
|
|
|
define Package/cypress-nvram-4339-sdio-ap6335/install
|
2019-09-04 15:21:26 +00:00
|
|
|
$(INSTALL_DIR) $(1)/lib/firmware/brcm
|
|
|
|
$(INSTALL_DATA) \
|
2022-11-16 04:47:41 +00:00
|
|
|
./files/brcmfmac4339-sdio.AP6335.txt \
|
2022-10-22 15:09:19 +00:00
|
|
|
$(1)/lib/firmware/brcm/
|
2019-09-04 15:21:26 +00:00
|
|
|
endef
|
|
|
|
|
2022-11-16 04:47:41 +00:00
|
|
|
$(eval $(call BuildPackage,cypress-nvram-4339-sdio-ap6335))
|
2019-09-04 15:21:26 +00:00
|
|
|
|
2022-11-16 04:47:41 +00:00
|
|
|
# Cypress 4339 SDIO PICO-PI-IMX7D NVRAM
|
|
|
|
define Package/cypress-nvram-4339-sdio-pico-pi-imx7d
|
2022-04-28 20:59:07 +00:00
|
|
|
$(Package/cypress-nvram-default)
|
|
|
|
TITLE:=BCM4339 NVRAM for TechNexion PICO-PI-IMX7D
|
2022-11-16 04:47:41 +00:00
|
|
|
DEPENDS:=+cypress-nvram-4339-sdio-ap6335
|
|
|
|
CONFLICTS:=brcmfmac-firmware-4339-sdio-pico-pi-imx7d
|
2022-04-28 20:59:07 +00:00
|
|
|
endef
|
|
|
|
|
2022-11-16 04:47:41 +00:00
|
|
|
define Package/cypress-nvram-4339-sdio-pico-pi-imx7d/install
|
2022-04-28 20:59:07 +00:00
|
|
|
$(INSTALL_DIR) $(1)/lib/firmware/brcm
|
2022-11-16 04:47:41 +00:00
|
|
|
$(LN) \
|
|
|
|
brcmfmac4339-sdio.AP6335.txt \
|
|
|
|
$(1)/lib/firmware/brcm/brcmfmac4339-sdio.technexion,imx7d-pico-pi.txt
|
2022-04-28 20:59:07 +00:00
|
|
|
endef
|
|
|
|
|
2022-11-16 04:47:41 +00:00
|
|
|
$(eval $(call BuildPackage,cypress-nvram-4339-sdio-pico-pi-imx7d))
|