diff options
author | P. J. McDermott <pj@pehjota.net> | 2014-10-22 17:43:46 (EDT) |
---|---|---|
committer | P. J. McDermott <pj@pehjota.net> | 2014-10-22 17:43:46 (EDT) |
commit | c680ae3e95e08dfe539a2771153a2c3aa928d08f (patch) | |
tree | 035c7b8d9be1092c93ad9653b4bcc4f48245ffcf | |
parent | 394f6595abaf6cbdd683c0aeba82fa444f00ddd2 (diff) |
build, source.mk: New files
-rwxr-xr-x | build | 6 | ||||
-rw-r--r-- | source.mk | 10 |
2 files changed, 16 insertions, 0 deletions
@@ -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) |