mirror of
https://git.openwrt.org/openwrt/openwrt.git
synced 2025-08-09 16:01:36 +00:00
1. No need to explicitly call the defaults 2. There is efficient way how to set PKG_BUILD_DIR, which allows to drop PKG_SOURCE_DIR. Signed-off-by: Josef Schlehofer <pepe.schlehofer@gmail.com> Link: https://github.com/openwrt/openwrt/pull/19105 Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
53 lines
1.6 KiB
Makefile
53 lines
1.6 KiB
Makefile
#
|
|
# Copyright (C) 2024 Marek Behún <kabel@kernel.org>
|
|
#
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
# See /LICENSE for more information.
|
|
#
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
PKG_NAME:=omnia-eeprom
|
|
PKG_VERSION:=0.1
|
|
PKG_RELEASE:=1
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-v$(PKG_VERSION).tar.bz2
|
|
PKG_SOURCE_URL:=https://gitlab.nic.cz/turris/omnia-eeprom/-/archive/v$(PKG_VERSION)/
|
|
PKG_HASH:=6f949d0b8080adca8bae088774ce615b563ba6ec2807cce97ee6769b4eee7bbf
|
|
PKG_FLAGS:=nonshared
|
|
|
|
PKG_MAINTAINER:=Marek Behun <kabel@kernel.org>
|
|
PKG_LICENSE:=GPL-2.0-or-later
|
|
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-v$(PKG_VERSION)
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
define Package/omnia-eeprom
|
|
SECTION:=utils
|
|
CATEGORY:=Utilities
|
|
URL:=https://gitlab.nic.cz/turris/omnia-eeprom
|
|
TITLE:=CZ.NIC Turris Omnia EEPROM accessing utility
|
|
DEPENDS:=@TARGET_mvebu_cortexa9 +kmod-eeprom-at24
|
|
endef
|
|
|
|
define Package/omnia-eeprom/description
|
|
This package contains the omnia-eeprom utility, which allows you to display
|
|
and update EEPROM fields on the Turris Omnia router.
|
|
The EEPROM is normally not meant to be updated by users, but there are some
|
|
exceptions where it might be useful.
|
|
One such example is to change the DDR3 speed from the default 1600K mode to
|
|
1333H mode, in order to solve random crashes that occur on some boards with
|
|
newer versions of the U-Boot bootloader (because of bugs in newer versions of
|
|
the DDR training algorithm).
|
|
endef
|
|
|
|
MAKE_VARS += OMNIA_EEPROM_VERSION="v$(PKG_VERSION)"
|
|
TARGET_CFLAGS += -Wall
|
|
|
|
define Package/omnia-eeprom/install
|
|
$(INSTALL_DIR) $(1)/usr/bin
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/omnia-eeprom $(1)/usr/bin/
|
|
endef
|
|
|
|
$(eval $(call BuildPackage,omnia-eeprom))
|