aboutsummaryrefslogtreecommitdiffstats
path: root/package/firmware/cypress-nvram/Makefile
blob: b08f6ca63c80063570abc37ef35adbbaee193fa5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
# SPDX-License-Identifier: GPL-2.0-or-later

include $(TOPDIR)/rules.mk

PKG_NAME:=cypress-nvram
PKG_RELEASE:=5

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

# Cypress 4339 SDIO AP6335 NVRAM
define Package/cypress-nvram-4339-sdio-ap6335
  $(Package/cypress-nvram-default)
  TITLE:=BCM4339 NVRAM for AP6335
  CONFLICTS:=brcmfmac-firmware-4339-sdio-ap6335
endef

define Package/cypress-nvram-4339-sdio-ap6335/install
	$(INSTALL_DIR) $(1)/lib/firmware/brcm
	$(INSTALL_DATA) \
		./files/brcmfmac4339-sdio.AP6335.txt \
		$(1)/lib/firmware/brcm/
endef

$(eval $(call BuildPackage,cypress-nvram-4339-sdio-ap6335))

# Cypress 4339 SDIO PICO-PI-IMX7D NVRAM
define Package/cypress-nvram-4339-sdio-pico-pi-imx7d
  $(Package/cypress-nvram-default)
  TITLE:=BCM4339 NVRAM for TechNexion PICO-PI-IMX7D
  DEPENDS:=+cypress-nvram-4339-sdio-ap6335
  CONFLICTS:=brcmfmac-firmware-4339-sdio-pico-pi-imx7d
endef

define Package/cypress-nvram-4339-sdio-pico-pi-imx7d/install
	$(INSTALL_DIR) $(1)/lib/firmware/brcm
	$(LN) \
		brcmfmac4339-sdio.AP6335.txt \
		$(1)/lib/firmware/brcm/brcmfmac4339-sdio.technexion,imx7d-pico-pi.txt
endef

$(eval $(call BuildPackage,cypress-nvram-4339-sdio-pico-pi-imx7d))