[Skiboot] [PATCH v2 10/10] external/gard: Add make dist

Cyril Bur cyril.bur at au1.ibm.com
Wed Nov 11 15:40:04 AEDT 2015


Signed-off-by: Cyril Bur <cyril.bur at au1.ibm.com>
---
 external/gard/Makefile      | 11 +++++++++++
 external/gard/Makefile.dist | 10 ++++++++++
 2 files changed, 21 insertions(+)
 create mode 100644 external/gard/Makefile.dist

diff --git a/external/gard/Makefile b/external/gard/Makefile
index 2f21607..be3d1ba 100644
--- a/external/gard/Makefile
+++ b/external/gard/Makefile
@@ -34,6 +34,17 @@ $(OBJS): | links arch_links
 	@cmp -s $@ $@.tmp || cp $@.tmp $@
 	@rm -f $@.tmp
 
+.PHONY: dist
+#File is named $(PFLASH_VERSION).tar because the expectation is that pflash-
+#is always at the start of the verion. This remains consistent with skiboot
+#version strings
+dist: links .version
+	find -L ../pflash/ -iname '*.[ch]' -print0 | xargs -0 tar -rhf $(PFLASH_VERSION).tar
+	tar --transform 's/Makefile.dist/Makefile/' -rhf $(PFLASH_VERSION).tar \
+		../pflash/Makefile.dist ../pflash/rules.mk \
+		../pflash/.version ../pflash/make_version.sh \
+		../pflash/common/*
+
 clean: arch_clean
 	rm -f $(OBJS) $(EXE) *.o *.d .version .version.tmp
 
diff --git a/external/gard/Makefile.dist b/external/gard/Makefile.dist
new file mode 100644
index 0000000..46edcb1
--- /dev/null
+++ b/external/gard/Makefile.dist
@@ -0,0 +1,10 @@
+include rules.mk
+GET_ARCH = common/get_arch.sh
+include common/rules.mk
+
+all: $(EXE)
+
+clean:
+	rm -f $(OBJS) *.o
+distclean: clean
+	rm -f $(EXE)
-- 
2.6.2



More information about the Skiboot mailing list