[Skiboot] [PATCH] pflash and opal-prd: Fix dist-clean

Breno Leitao breno.leitao at gmail.com
Wed Sep 7 22:48:33 AEST 2016


Currently pflash and opal-prd do not return to its original tree
after a 'make distclean'. I understand that distclean should return the tree to
its original state, so, the make can restart from scratch.

On Debian[1], we need to clear these remaining file 'manually' to make the
build 'reproducible' (two builds in sequence).

[1] https://packages.debian.org/source/sid/skiboot

Signed-off-by: Breno Leitao <breno.leitao at gmail.com>
---
 external/opal-prd/Makefile | 1 +
 external/pflash/Makefile   | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/external/opal-prd/Makefile b/external/opal-prd/Makefile
index 7482af3..ccd3401 100644
--- a/external/opal-prd/Makefile
+++ b/external/opal-prd/Makefile
@@ -71,3 +71,4 @@ clean:
 
 distclean: clean
 	$(RM) -f $(LINKS) asm
+	$(RM) -f libflash ccan version.c .version common
diff --git a/external/pflash/Makefile b/external/pflash/Makefile
index 4c9b08b..0b3a2a6 100644
--- a/external/pflash/Makefile
+++ b/external/pflash/Makefile
@@ -30,5 +30,5 @@ clean: arch_clean
 .PHONY: distclean
 distclean: clean
 	rm -f *.c~ *.h~ *.sh~ Makefile~ config.mk~ libflash/*.c~ libflash/*.h~
-	rm -f libflash ccan .version .version.tmp
+	rm -f libflash ccan version.c .version .version.tmp
 	rm -f common io.h
-- 
2.8.1



More information about the Skiboot mailing list