summaryrefslogtreecommitdiffstats
path: root/source.mk
diff options
context:
space:
mode:
authorP. J. McDermott <pj@pehjota.net>2015-09-06 16:19:36 (EDT)
committer P. J. McDermott <pj@pehjota.net>2015-09-06 16:24:37 (EDT)
commitc5379b4a73b94e855e5553c6be412f8253fc2890 (patch)
treeeb69e0fd101173b5c5e1575b215d9f7f6bb7f4e5 /source.mk
Initial commit
Diffstat (limited to 'source.mk')
-rw-r--r--source.mk15
1 files changed, 15 insertions, 0 deletions
diff --git a/source.mk b/source.mk
new file mode 100644
index 0000000..8343782
--- /dev/null
+++ b/source.mk
@@ -0,0 +1,15 @@
+upstream_commit = $$(printf '%s\n' '$(OPK_SOURCE_VERSION_UPSTREAM)' | \
+ sed 's/^.*~git........\.\([0-9a-f]*\).*$$/\1/')
+upstream_git_uri = git://git.sv.gnu.org/libreboot.git
+source_archive = ../$(OPK_SOURCE)-$(OPK_SOURCE_VERSION_UPSTREAM).orig.tar.bz2
+
+$(source_archive):
+ git clone '$(upstream_git_uri)' libreboot/
+ (cd libreboot/ && git checkout "$(upstream_commit)")
+ mv libreboot/resources/utilities/ich9deblob/ ich9deblob/
+ tar -cjf '$@' ich9deblob/
+ rm -Rf src/
+ mv ich9deblob/ src/
+ rm -Rf libreboot/
+
+source: $(source_archive)