summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xbuild6
-rw-r--r--source.mk10
2 files changed, 16 insertions, 0 deletions
diff --git a/build b/build
new file mode 100755
index 0000000..2a40656
--- /dev/null
+++ b/build
@@ -0,0 +1,6 @@
+#!/usr/bin/make -f
+
+include ../source.mk
+
+nop:
+ @:
diff --git a/source.mk b/source.mk
new file mode 100644
index 0000000..45968a1
--- /dev/null
+++ b/source.mk
@@ -0,0 +1,10 @@
+upstream_commit = $$(printf '%s\n' '$(OPK_SOURCE_VERSION_UPSTREAM)' | \
+ sed 's/^.*~git........~\([0-9a-f]*\).*$$/\1/')
+upstream_url_base = https://github.com/qca/open-ath9k-htc-firmware
+upstream_url = $(upstream_url_base)/archive/$(upstream_commit).tar.gz
+source_archive = ../$(OPK_SOURCE)-$(OPK_SOURCE_VERSION_UPSTREAM).orig.tar.gz
+
+$(source_archive):
+ wget -O '$@' "$(upstream_url)"
+
+source: $(source_archive)