]> git.ipfire.org Git - thirdparty/openwrt.git/commitdiff
omnia-eeprom: simplify Makefile 19105/head
authorJosef Schlehofer <pepe.schlehofer@gmail.com>
Wed, 11 Jun 2025 20:56:54 +0000 (22:56 +0200)
committerHauke Mehrtens <hauke@hauke-m.de>
Sun, 22 Jun 2025 16:58:49 +0000 (18:58 +0200)
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>
package/utils/omnia-eeprom/Makefile

index 9418e93f4492bf21e9b23e8d74764d4e3a5c7ea5..44108c0cb440bd9708a932c74177cbe4e8720be0 100644 (file)
@@ -11,7 +11,6 @@ PKG_NAME:=omnia-eeprom
 PKG_VERSION:=0.1
 PKG_RELEASE:=1
 
-PKG_SOURCE_SUBDIR:=$(PKG_NAME)-v$(PKG_VERSION)
 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
@@ -19,8 +18,7 @@ PKG_FLAGS:=nonshared
 
 PKG_MAINTAINER:=Marek Behun <kabel@kernel.org>
 PKG_LICENSE:=GPL-2.0-or-later
-
-PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_SOURCE_SUBDIR)
+PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-v$(PKG_VERSION)
 
 include $(INCLUDE_DIR)/package.mk
 
@@ -44,11 +42,8 @@ the DDR training algorithm).
 endef
 
 MAKE_VARS += OMNIA_EEPROM_VERSION="v$(PKG_VERSION)"
-
 TARGET_CFLAGS += -Wall
 
-Build/Compile = $(Build/Compile/Default)
-
 define Package/omnia-eeprom/install
        $(INSTALL_DIR) $(1)/usr/bin
        $(INSTALL_BIN) $(PKG_BUILD_DIR)/omnia-eeprom $(1)/usr/bin/