b.liu | e958203 | 2025-04-17 19:18:16 +0800 | [diff] [blame] | 1 | # |
| 2 | # Copyright (C) 2024 CZ.NIC z.s.p.o. (http://www.nic.cz/) |
| 3 | # |
| 4 | # This is free software, licensed under the GNU General Public License v2. |
| 5 | # See /LICENSE for more information. |
| 6 | # |
| 7 | |
| 8 | include $(TOPDIR)/rules.mk |
| 9 | |
| 10 | PKG_NAME:=omnia-mcu-firmware |
| 11 | PKG_DISTNAME:=omnia_hw_ctrl |
| 12 | PKG_VERSION:=4.1 |
| 13 | PKG_RELEASE:=1 |
| 14 | |
| 15 | PKG_SOURCE_SUBDIR:=$(PKG_DISTNAME)-binaries-v$(PKG_VERSION) |
| 16 | PKG_SOURCE:=$(PKG_SOURCE_SUBDIR).tar.bz2 |
| 17 | PKG_SOURCE_URL:=https://gitlab.nic.cz/turris/hw/$(PKG_DISTNAME)/-/releases/v$(PKG_VERSION)/downloads/ |
| 18 | PKG_HASH:=9c6a3d88ae2ca093dd35aace040f0b1eb1cb5c1141575b45623bdd64d733c59f |
| 19 | |
| 20 | PKG_MAINTAINER:=Marek Mojik <marek.mojik@nic.cz> |
| 21 | PKG_LICENSE:=GPL-3.0-or-later |
| 22 | |
| 23 | PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_SOURCE_SUBDIR) |
| 24 | |
| 25 | include $(INCLUDE_DIR)/package.mk |
| 26 | |
| 27 | define Package/omnia-mcu-firmware |
| 28 | SECTION:=firmware |
| 29 | CATEGORY:=Firmware |
| 30 | URL:=https://gitlab.nic.cz/turris/hw/$(PKG_DISTNAME)/-/releases |
| 31 | TITLE:=CZ.NIC Turris Omnia MCU firmware |
| 32 | DEPENDS:=@TARGET_mvebu_cortexa9_DEVICE_cznic_turris-omnia |
| 33 | endef |
| 34 | |
| 35 | define Package/omnia-mcu-firmware/description |
| 36 | Firmware binaries for the microcontroller on the Turris Omnia router. These are |
| 37 | used by the omnia-mcutool utility when upgrading MCU firmware. |
| 38 | endef |
| 39 | |
| 40 | define Build/Compile |
| 41 | true |
| 42 | endef |
| 43 | |
| 44 | define Package/omnia-mcu-firmware/install |
| 45 | $(INSTALL_DIR) $(1)/usr/share/omnia-mcu-firmware/ |
| 46 | $(INSTALL_DATA) $(PKG_BUILD_DIR)/*.bin $(1)/usr/share/omnia-mcu-firmware/ |
| 47 | endef |
| 48 | |
| 49 | $(eval $(call BuildPackage,omnia-mcu-firmware)) |