[Skiboot] [PATCH 7/7] external/gard: Add make dist

Cyril Bur cyril.bur at au1.ibm.com
Wed Oct 14 15:40:10 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 195780e..f2f5a87 100644
--- a/external/gard/Makefile
+++ b/external/gard/Makefile
@@ -35,6 +35,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
 
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.1



More information about the Skiboot mailing list