[openwrt/openwrt] include/trusted-firmware-a.mk: allow overriding package install template

LEDE Commits lede-commits at lists.infradead.org
Tue May 7 13:04:17 PDT 2024


nbd pushed a commit to openwrt/openwrt.git, branch main:
https://git.openwrt.org/3cb8dc3786039d7d2a143fdbf5c3b9249f5bbbf3

commit 3cb8dc3786039d7d2a143fdbf5c3b9249f5bbbf3
Author: Felix Fietkau <nbd at nbd.name>
AuthorDate: Tue May 7 19:38:25 2024 +0200

    include/trusted-firmware-a.mk: allow overriding package install template
    
    Useful for special targets (e.g. RAM-only images)
    
    Signed-off-by: Felix Fietkau <nbd at nbd.name>
---
 include/trusted-firmware-a.mk | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/include/trusted-firmware-a.mk b/include/trusted-firmware-a.mk
index 0c0118e092..e469dae984 100644
--- a/include/trusted-firmware-a.mk
+++ b/include/trusted-firmware-a.mk
@@ -63,9 +63,11 @@ define Build/Trusted-Firmware-A/Target
     URL:=https://www.trustedfirmware.org/projects/tf-a/
   endef
 
-  define Package/trusted-firmware-a-$(1)/install
+  ifndef Package/trusted-firmware-a-$(1)/install
+    define Package/trusted-firmware-a-$(1)/install
 	$$(Package/trusted-firmware-a/install)
-  endef
+    endef
+  endif
 endef
 
 define Build/Configure/Trusted-Firmware-A




More information about the lede-commits mailing list