Makefile 798 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10
#
## Copyright (C) 2013-2020 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-nor-update
11
PKG_VERSION:=1.0.1
12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34
PKG_RELEASE:=1

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

include $(INCLUDE_DIR)/package.mk

define Package/turris-nor-update
  TITLE:=NOR update for Turris routers
  DEPENDS:=+mtd +turris-nor-update-firmware
endef

define Package/turris-nor-update/description
  Utility to update content of NOR memory on Turris devices.
endef

Build/Compile:=:

define Package/turris-nor-update/install
	$(INSTALL_DIR) $(1)/usr/sbin
	$(INSTALL_BIN) ./files/nor-update $(1)/usr/sbin/nor-update
endef

$(eval $(call BuildPackage,turris-nor-update))