* [ptxdist] [PATCH] tf-a: Fix empty variable in clean
@ 2022-12-27 19:32 avazquez.dev
2023-01-02 11:10 ` [ptxdist] [PATCH] tf-a: use ptx/image-install Michael Olbrich
0 siblings, 1 reply; 2+ messages in thread
From: avazquez.dev @ 2022-12-27 19:32 UTC (permalink / raw)
To: ptxdist; +Cc: Alejandro Vazquez
From: Alejandro Vazquez <avazquez.dev@gmail.com>
Clean command do not remove generated files.
Used an empty variable to delete the files, replaced by the correct one.
Signed-off-by: Alejandro Vazquez <avazquez.dev@gmail.com>
---
rules/tf-a.make | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/rules/tf-a.make b/rules/tf-a.make
index ac1bff032..6dae97bb3 100644
--- a/rules/tf-a.make
+++ b/rules/tf-a.make
@@ -116,7 +116,7 @@ $(STATEDIR)/tf-a.targetinstall:
$(STATEDIR)/tf-a.clean:
@$(call targetinfo)
- @rm -vf $(addprefix $(IMAGEDIR)/, $(notdir $(TF_A_ARTIFACTS_SRC)))
+ @rm -vf $(addprefix $(IMAGEDIR)/, $(notdir $(TF_A_ARTIFACTS)))
@$(call clean_pkg, TF_A)
# vim: syntax=make
--
2.34.1
^ permalink raw reply [flat|nested] 2+ messages in thread
* [ptxdist] [PATCH] tf-a: use ptx/image-install
2022-12-27 19:32 [ptxdist] [PATCH] tf-a: Fix empty variable in clean avazquez.dev
@ 2023-01-02 11:10 ` Michael Olbrich
0 siblings, 0 replies; 2+ messages in thread
From: Michael Olbrich @ 2023-01-02 11:10 UTC (permalink / raw)
To: ptxdist; +Cc: Alejandro Vazquez, Michael Olbrich
TF_A_ARTIFACTS_SRC is not defined, so the custom clean stage does not work
as expected.
Instead of fixing this, use ptx/image-install so that the generic image
removal mechanism works correctly.
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
---
I've created this instead. ptx/image-install should be used here, so that
ptxdist knows about the files and can remove them automatically.
Michael
rules/tf-a.make | 19 ++++++-------------
1 file changed, 6 insertions(+), 13 deletions(-)
diff --git a/rules/tf-a.make b/rules/tf-a.make
index ac1bff0322b4..54fe7d1e37d8 100644
--- a/rules/tf-a.make
+++ b/rules/tf-a.make
@@ -89,16 +89,18 @@ $(STATEDIR)/tf-a.compile:
# Install
# ----------------------------------------------------------------------------
+tf-a/inst_pkgdir = \
+ install -v -D -m 644 $(2) $(TF_A_PKGDIR)/usr/lib/firmware/$(3)
+
tf-a/inst_plat = $(foreach artifact, \
$(wildcard $(addprefix $(TF_A_BINDIR)/, $(TF_A_ARTIFACTS))), \
- install -v -D -m 644 $(artifact) \
- $(2)/$(1)-$(notdir $(artifact))$(ptx/nl))
+ $(call $(2),TF_A,$(artifact),$(1)-$(notdir $(artifact)))$(ptx/nl))
tf-a/inst_bins = $(foreach plat, $(TF_A_PLATFORMS), $(call tf-a/inst_plat,$(plat),$(1)))
$(STATEDIR)/tf-a.install:
@$(call targetinfo)
- @$(call tf-a/inst_bins,$(TF_A_PKGDIR)/usr/lib/firmware)
+ @$(call tf-a/inst_bins,tf-a/inst_pkgdir)
@$(call touch)
# ----------------------------------------------------------------------------
@@ -107,16 +109,7 @@ $(STATEDIR)/tf-a.install:
$(STATEDIR)/tf-a.targetinstall:
@$(call targetinfo)
- @$(call tf-a/inst_bins,$(IMAGEDIR))
+ @$(call tf-a/inst_bins,ptx/image-install)
@$(call touch)
-# ----------------------------------------------------------------------------
-# Clean
-# ----------------------------------------------------------------------------
-
-$(STATEDIR)/tf-a.clean:
- @$(call targetinfo)
- @rm -vf $(addprefix $(IMAGEDIR)/, $(notdir $(TF_A_ARTIFACTS_SRC)))
- @$(call clean_pkg, TF_A)
-
# vim: syntax=make
--
2.30.2
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2023-01-02 11:11 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-12-27 19:32 [ptxdist] [PATCH] tf-a: Fix empty variable in clean avazquez.dev
2023-01-02 11:10 ` [ptxdist] [PATCH] tf-a: use ptx/image-install Michael Olbrich
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox