include/trusted-firmware-a.mk: allow overriding package install template
authorFelix Fietkau <nbd@nbd.name>
Tue, 7 May 2024 17:38:25 +0000 (19:38 +0200)
committerFelix Fietkau <nbd@nbd.name>
Tue, 7 May 2024 20:01:42 +0000 (22:01 +0200)
Useful for special targets (e.g. RAM-only images)

Signed-off-by: Felix Fietkau <nbd@nbd.name>
include/trusted-firmware-a.mk

index 0c0118e092bec5b76d602a97fdaa426cc18b15ac..e469dae9840087f2fe6c237efc1315ccebc0134b 100644 (file)
@@ -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