urandom-seed: avoid PKG_NAME in define lines
authorSungbo Eo <mans0n@gorani.run>
Sun, 23 Feb 2020 12:37:36 +0000 (21:37 +0900)
committerAdrian Schmutzler <freifunk@adrianschmutzler.de>
Sun, 23 Feb 2020 21:42:36 +0000 (22:42 +0100)
> Avoid reuse of PKG_NAME in call, define and eval lines for consistency and
> readability. Write the full name instead.

Ref: https://openwrt.org/docs/guide-developer/packages

Signed-off-by: Sungbo Eo <mans0n@gorani.run>
package/system/urandom-seed/Makefile

index 6bde2e0b8a42e94e7c892b415af6d7984a553b7b..aa13765a52b81a2c23a31e3a5d0c451a583468f8 100644 (file)
@@ -9,7 +9,7 @@ PKG_BUILD_DIR := $(BUILD_DIR)/$(PKG_NAME)
 
 include $(INCLUDE_DIR)/package.mk
 
-define Package/$(PKG_NAME)
+define Package/urandom-seed
   SECTION:=base
   CATEGORY:=Base system
   DEPENDS:=+getrandom
@@ -25,7 +25,7 @@ define Build/Compile/Default
 endef
 Build/Compile = $(Build/Compile/Default)
 
-define Package/$(PKG_NAME)/install
+define Package/urandom-seed/install
        $(CP) ./files/* $(1)/
 endef