Makefile 1.52 KB
Newer Older
1 2 3 4 5 6 7 8 9 10
#
## Copyright (C) 2013-2021 CZ.NIC z.s.p.o. (http://www.nic.cz/)
#
## This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
# #
#
include $(TOPDIR)/rules.mk

PKG_NAME:=turris-mox-firmware
11
PKG_VERSION:=1.1
12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
PKG_RELEASE:=1

PKG_MAINTAINER:=CZ.NIC <packaging@turris.cz>

include $(INCLUDE_DIR)/package.mk

define Package/turris-mox-firmware
  TITLE:=Firmware for Turris MOX
  DEPENDS:=@TARGET_mvebu_cortexa53_DEVICE_cznic-mox
  PROVIDES:=turris-nor-update-firmware
endef

define Package/turris-mox-firmware/description
  Stable firmware for Turris MOX
endef

define Package/turris-mox-devel-firmware
  TITLE:=Data files for nor-update (development version)
  DEPENDS:=+turris-nor-update +rescue-image +u-boot-mox @TARGET_mvebu_cortexa53_DEVICE_cznic-mox
  PROVIDES:=turris-nor-update-devel-firmware
32
  VERSION:=0.1
33 34 35 36 37 38 39 40 41 42 43 44 45
  RELEASE:=1
endef

define Package/turris-mox-devel-firmware/description
  Virtual package to pull in development versions of NOR images (U-Boot and Rescue)
  for Turris MOX
endef

Build/Compile:=:

define Package/turris-mox-firmware/install
	$(INSTALL_DIR) $(1)/usr/share/nor-update/
	$(INSTALL_DATA) ./files/* $(1)/usr/share/nor-update/
46 47 48 49 50 51
	$(RM) $(1)/usr/share/nor-update/secure-firmware-devel.bin
endef

define Package/turris-mox-devel-firmware/install
	$(INSTALL_DIR) $(1)/usr/share/nor-update/
	$(INSTALL_DATA) ./files/secure-firmware-devel.bin $(1)/usr/share/nor-update/
52 53 54 55
endef

$(eval $(call BuildPackage,turris-mox-firmware))
$(eval $(call BuildPackage,turris-mox-devel-firmware))