diff options
author | Kuan-Yi Li <kyli@abysm.org> | 2022-10-22 23:09:19 +0800 |
---|---|---|
committer | Álvaro Fernández Rojas <noltari@gmail.com> | 2022-11-15 20:47:54 +0100 |
commit | efaad5e901508621a47044dd729c4b776633b9b7 (patch) | |
tree | 90f22cde8ce6e587ffe1a8b0a0e3dcdb99ae813a /package/firmware | |
parent | ce6f86e1344ccf79b8f8bcd0923f0865b9eb8db4 (diff) | |
download | upstream-efaad5e901508621a47044dd729c4b776633b9b7.tar.gz upstream-efaad5e901508621a47044dd729c4b776633b9b7.tar.bz2 upstream-efaad5e901508621a47044dd729c4b776633b9b7.zip |
cypress-nvram: use symlink to provide NVRAM for some RPis
This is to align the implementation with upstream `linux-firmware`.
Some Raspberry Pi boards do not have dedicated NVRAM in `linux-firmware`
source repository, their NVRAM is provided through a symbolic link to
NVRAM of another board with an identical wireless design.
Signed-off-by: Kuan-Yi Li <kyli@abysm.org>
Diffstat (limited to 'package/firmware')
-rw-r--r-- | package/firmware/cypress-nvram/Makefile | 36 |
1 files changed, 25 insertions, 11 deletions
diff --git a/package/firmware/cypress-nvram/Makefile b/package/firmware/cypress-nvram/Makefile index 2bf71cd889..7c999540ca 100644 --- a/package/firmware/cypress-nvram/Makefile +++ b/package/firmware/cypress-nvram/Makefile @@ -11,7 +11,7 @@ PKG_NAME:=cypress-nvram PKG_SOURCE_DATE:=2019-09-03 PKG_SOURCE_VERSION:=e7b78df22f2a0c5f56abb7b5880661611de35e5f PKG_MIRROR_HASH:=1cb20a749696852be0a512d51961365dd9c031362af0af1a2b9f5a3fb894885f -PKG_RELEASE:=3 +PKG_RELEASE:=4 PKG_SOURCE_PROTO:=git PKG_SOURCE_URL:=https://github.com/openwrt/cypress-nvram.git @@ -44,7 +44,7 @@ define Package/cypress-nvram-43430-sdio-rpi-3b/install $(INSTALL_DIR) $(1)/lib/firmware/brcm $(INSTALL_DATA) \ $(PKG_BUILD_DIR)/brcmfmac43430-sdio.raspberrypi,3-model-b.txt \ - $(1)/lib/firmware/brcm/brcmfmac43430-sdio.raspberrypi,3-model-b.txt + $(1)/lib/firmware/brcm/ endef $(eval $(call BuildPackage,cypress-nvram-43430-sdio-rpi-3b)) @@ -53,14 +53,14 @@ $(eval $(call BuildPackage,cypress-nvram-43430-sdio-rpi-3b)) define Package/cypress-nvram-43430-sdio-rpi-zero-w $(Package/cypress-nvram-default) TITLE:=CYW43430 NVRAM for Raspberry Pi Zero W - DEPENDS:=@TARGET_bcm27xx + DEPENDS:=@TARGET_bcm27xx +cypress-nvram-43430-sdio-rpi-3b CONFLICTS:=brcmfmac-firmware-43430-sdio-rpi-zero-w endef define Package/cypress-nvram-43430-sdio-rpi-zero-w/install $(INSTALL_DIR) $(1)/lib/firmware/brcm - $(INSTALL_DATA) \ - $(PKG_BUILD_DIR)/brcmfmac43430-sdio.raspberrypi,model-zero-w.txt \ + $(LN) \ + brcmfmac43430-sdio.raspberrypi,3-model-b.txt \ $(1)/lib/firmware/brcm/brcmfmac43430-sdio.raspberrypi,model-zero-w.txt endef @@ -78,7 +78,7 @@ define Package/cypress-nvram-43455-sdio-rpi-3b-plus/install $(INSTALL_DIR) $(1)/lib/firmware/brcm $(INSTALL_DATA) \ $(PKG_BUILD_DIR)/brcmfmac43455-sdio.raspberrypi,3-model-b-plus.txt \ - $(1)/lib/firmware/brcm/brcmfmac43455-sdio.raspberrypi,3-model-b-plus.txt + $(1)/lib/firmware/brcm/ endef $(eval $(call BuildPackage,cypress-nvram-43455-sdio-rpi-3b-plus)) @@ -95,14 +95,28 @@ define Package/cypress-nvram-43455-sdio-rpi-4b/install $(INSTALL_DIR) $(1)/lib/firmware/brcm $(INSTALL_DATA) \ $(PKG_BUILD_DIR)/brcmfmac43455-sdio.raspberrypi,4-model-b.txt \ - $(1)/lib/firmware/brcm/brcmfmac43455-sdio.raspberrypi,4-model-b.txt - $(INSTALL_DATA) \ - $(PKG_BUILD_DIR)/brcmfmac43455-sdio.raspberrypi,4-model-b.txt \ - $(1)/lib/firmware/brcm/brcmfmac43455-sdio.raspberrypi,4-compute-module.txt + $(1)/lib/firmware/brcm/ endef $(eval $(call BuildPackage,cypress-nvram-43455-sdio-rpi-4b)) +# Cypress 43455 SDIO Raspberry Pi CM4 NVRAM +define Package/cypress-nvram-43455-sdio-rpi-cm4 + $(Package/cypress-nvram-default) + TITLE:=CYW43455 NVRAM for Raspberry Pi CM4 + DEPENDS:=@TARGET_bcm27xx +cypress-nvram-43455-sdio-rpi-4b + CONFLICTS:=brcmfmac-firmware-43455-sdio-rpi-cm4 +endef + +define Package/cypress-nvram-43455-sdio-rpi-cm4/install + $(INSTALL_DIR) $(1)/lib/firmware/brcm + $(LN) \ + brcmfmac43455-sdio.raspberrypi,4-model-b.txt \ + $(1)/lib/firmware/brcm/brcmfmac43455-sdio.raspberrypi,4-compute-module.txt +endef + +$(eval $(call BuildPackage,cypress-nvram-43455-sdio-rpi-cm4)) + # Cypress 4339 SDIO PICO-PI-IMX7D define Package/cypress-nvram-4339-pico-pi-imx7d $(Package/cypress-nvram-default) @@ -115,7 +129,7 @@ define Package/cypress-nvram-4339-pico-pi-imx7d/install $(INSTALL_DIR) $(1)/lib/firmware/brcm $(INSTALL_DATA) \ ./files/brcmfmac4339-sdio.technexion,imx7d-pico-pi.txt \ - $(1)/lib/firmware/brcm/brcmfmac4339-sdio.technexion,imx7d-pico-pi.txt + $(1)/lib/firmware/brcm/ endef $(eval $(call BuildPackage,cypress-nvram-4339-pico-pi-imx7d)) |