summaryrefslogtreecommitdiffstats
path: root/build/external/packages.mk
diff options
context:
space:
mode:
authorNathan Skrzypczak <nathan.skrzypczak@gmail.com>2019-03-19 13:57:31 +0100
committerFlorin Coras <florin.coras@gmail.com>2019-03-29 15:57:30 +0000
commit60f3e6547aa75a31fad1f78bea11c950cc30d63c (patch)
tree4df1f649f10272c5f276754d6b0dbecaaa08784a /build/external/packages.mk
parentdb4cae5d438e5114a19df38acbb9e1dd6c99fe3f (diff)
Integrate first QUIC protocol implementation
Currently supports on single stream exposed through standard internal APIs Based on libquicly & picotls by h2o Change-Id: I7bc1ec0e399d1fb02bfd1da91aa7410076d08d14 Signed-off-by: Nathan Skrzypczak <nathan.skrzypczak@gmail.com>
Diffstat (limited to 'build/external/packages.mk')
-rw-r--r--build/external/packages.mk32
1 files changed, 31 insertions, 1 deletions
diff --git a/build/external/packages.mk b/build/external/packages.mk
index 005c2a958b2..d1126db7475 100644
--- a/build/external/packages.mk
+++ b/build/external/packages.mk
@@ -72,9 +72,39 @@ $(B)/.$1.extract.ok: $(B)/.$1.download.ok
$1-extract: $(B)/.$1.extract.ok
##############################################################################
+# Git clone & checkout
+##############################################################################
+
+$(B)/.$1.clone.ok:
+ $$(call h1,"Cloning $1 $($1_repository)")
+ @mkdir -p $$($1_src_dir)
+ @git clone --recursive $$($1_repository) $$($1_src_dir)
+ifneq ($$($1_version),)
+ $$(call h1,"Checking out $1 $($1_version)")
+ cd $$($1_src_dir) && git -c advice.detachedHead=false checkout $$($1_version)
+ cd $$($1_src_dir) && git submodule update --init
+endif
+ @touch $$@
+
+.PHONY: $1-clone
+$1-clone: $(B)/.$1.clone.ok
+
+##############################################################################
+# Fetch source : clone or extract
+##############################################################################
+
+ifeq ($$($1_repository),)
+$(B)/.$1.fetchsrc.ok: $(B)/.$1.extract.ok
+ @touch $$@
+else
+$(B)/.$1.fetchsrc.ok: $(B)/.$1.clone.ok
+ @touch $$@
+endif
+
+##############################################################################
# Patch
##############################################################################
-$(B)/.$1.patch.ok: $(B)/.$1.extract.ok
+$(B)/.$1.patch.ok: $(B)/.$1.fetchsrc.ok
$$(call h1,"patching $1 $($1_version)")
ifneq ($$(wildcard $$($1_patch_dir)/*.patch),)
@for f in $$($1_patch_dir)/*.patch ; do \