mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-25 08:21:14 +00:00
38f2d26f1b
Bump omnia-mcutool to 0.3-rc3: * The `--upgrade` option will now work even if MCU is in bootloader (for example if previous upgrade was aborted). * On boards with GD32 MCUs, `omnia-mcutool` will now refuse to upgrade application firmware to version lower than 4.1 if bootloader version is 2.0 (the original for first batch of boards with GD32 MCUs) since these versions of application and bootloader are not compatible. If user already upgraded to such a combination, an upgrade of bootloader firmware is required. The `--upgrade` option will inform about this and will automatically upgrade bootloader firmware if the `--force` option is given. (Note that version 4.1 of the MCU firmware was will be released soon, once it is properly tested.) * Various other improvements. Signed-off-by: Marek Behún <kabel@kernel.org> Link: https://github.com/openwrt/openwrt/pull/16086 Signed-off-by: Robert Marko <robimarko@gmail.com>
53 lines
1.5 KiB
Makefile
53 lines
1.5 KiB
Makefile
#
|
|
# Copyright (C) 2016-2024 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:=omnia-mcutool
|
|
PKG_VERSION:=0.3-rc3
|
|
PKG_RELEASE:=1
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
|
|
PKG_SOURCE_URL:=https://gitlab.nic.cz/turris/$(PKG_NAME)/-/archive/$(PKG_VERSION)/
|
|
PKG_HASH:=80bc6a01ab86d51ebfdbddf77d74eead999a9bf7dbd08ca1fd4e8e1910eaf192
|
|
|
|
PKG_MAINTAINER:=Marek Mojik <marek.mojik@nic.cz>
|
|
PKG_LICENSE:=GPL-2.0-or-later
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
define Package/omnia-mcutool
|
|
SECTION:=utils
|
|
CATEGORY:=Utilities
|
|
URL:=https://gitlab.nic.cz/turris/$(PKG_NAME)
|
|
TITLE:=CZ.NIC Turris Omnia MCU utility
|
|
DEPENDS:=+libopenssl +omnia-mcu-firmware @TARGET_mvebu_cortexa9_DEVICE_cznic_turris-omnia
|
|
endef
|
|
|
|
define Package/omnia-mcutool/description
|
|
The omnia-mcutool utility is mainly used to upgrade the firmware on the
|
|
microcontroller on the Turris Omnia router. It can also show state of MCU
|
|
settings and configure MCU options (GPIOs, LEDs, power).
|
|
endef
|
|
|
|
TARGET_LDFLAGS += -lcrypto
|
|
|
|
define Build/Compile
|
|
$(MAKE) -C $(PKG_BUILD_DIR) \
|
|
CC="$(TARGET_CC)" \
|
|
CFLAGS="$(TARGET_CFLAGS) -Wall" \
|
|
LDFLAGS="$(TARGET_LDFLAGS)" \
|
|
MCUTOOL_VERSION="$(PKG_VERSION)"
|
|
endef
|
|
|
|
define Package/omnia-mcutool/install
|
|
$(INSTALL_DIR) $(1)/usr/bin
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/omnia-mcutool $(1)/usr/bin/
|
|
endef
|
|
|
|
$(eval $(call BuildPackage,omnia-mcutool))
|