The images installed by ptx/image-install are automatically cleaned up
by the default clean stage.

Signed-off-by: Roland Hieber <[email protected]>
---
 rules/templates/template-barebox-make | 14 ++------------
 1 file changed, 2 insertions(+), 12 deletions(-)

diff --git a/rules/templates/template-barebox-make 
b/rules/templates/template-barebox-make
index 84f15d91dc28..6821d65b9ab6 100644
--- a/rules/templates/template-barebox-make
+++ b/rules/templates/template-barebox-make
@@ -75,20 +75,10 @@ $(STATEDIR)/barebox-@[email protected]:
 $(STATEDIR)/barebox-@[email protected]:
        @$(call targetinfo)
        @$(foreach image, $(BAREBOX_@PACKAGE@_IMAGES), \
-               install -m 644 \
-                       $(image) $(IMAGEDIR)/$(notdir 
$(image))-@package@$(ptx/nl))
+               $(call ptx/image-install, BAREBOX_@PACKAGE@, $(image), \
+                       $(notdir $(image))-@package@)$(ptx/nl))
        @$(call touch)
 
-# ----------------------------------------------------------------------------
-# Clean
-# ----------------------------------------------------------------------------
-
-$(STATEDIR)/barebox-@[email protected]:
-       @$(call targetinfo)
-       @$(call clean_pkg, BAREBOX_@PACKAGE@)
-       @$(foreach image, $(BAREBOX_@PACKAGE@_IMAGES), \
-               rm -fv $(IMAGEDIR)/$(notdir $(image))-@package@$(ptx/nl))
-
 # ----------------------------------------------------------------------------
 # oldconfig / menuconfig
 # ----------------------------------------------------------------------------
-- 
2.39.2


Reply via email to