From 079f00e0836b32c4aa761a63bc034134637e7909 Mon Sep 17 00:00:00 2001 From: Norman Feske Date: Tue, 5 Dec 2017 17:24:00 +0100 Subject: [PATCH] depot: recipe for src/fetchurl --- .../libports/recipes/src/fetchurl/content.mk | 45 +++++++++++++++++++ repos/libports/recipes/src/fetchurl/hash | 1 + repos/libports/recipes/src/fetchurl/used_apis | 8 ++++ repos/libports/src/app/fetchurl/target.mk | 4 +- 4 files changed, 56 insertions(+), 2 deletions(-) create mode 100644 repos/libports/recipes/src/fetchurl/content.mk create mode 100644 repos/libports/recipes/src/fetchurl/hash create mode 100644 repos/libports/recipes/src/fetchurl/used_apis diff --git a/repos/libports/recipes/src/fetchurl/content.mk b/repos/libports/recipes/src/fetchurl/content.mk new file mode 100644 index 0000000000..42efd776aa --- /dev/null +++ b/repos/libports/recipes/src/fetchurl/content.mk @@ -0,0 +1,45 @@ +MIRROR_FROM_REP_DIR := src/app/fetchurl + +# +# Copy of lwIP ingredients +# +MIRROR_FROM_REP_DIR += include/libc-plugin \ + src/lib/libc_lwip \ + src/lib/libc_lwip_nic_dhcp \ + lib/mk/lwip.mk \ + lib/mk/libc_lwip.mk \ + lib/mk/libc_lwip_nic_dhcp.mk \ + lib/import/import-lwip.mk + + +LWIP_PORT_DIR := $(call port_dir,$(REP_DIR)/ports/lwip) + +content: $(MIRROR_FROM_REP_DIR) LICENSE include/lwip src/lib/lwip + +include/lwip: + mkdir -p $@ + cp -r $(LWIP_PORT_DIR)/include/lwip/* $@ + cp -r $(REP_DIR)/include/lwip/* $@ + +src/lib/lwip: + mkdir -p $@ + cp -r $(LWIP_PORT_DIR)/src/lib/lwip/* $@ + cp -r $(REP_DIR)/src/lib/lwip/* $@ + +$(MIRROR_FROM_REP_DIR): + $(mirror_from_rep_dir) + +MIRROR_FROM_OS := lib/mk/timed_semaphore.mk \ + include/os/timed_semaphore.h \ + src/lib/timed_semaphore + +content: $(MIRROR_FROM_OS) + +$(MIRROR_FROM_OS): + mkdir -p $(dir $@) + cp -r $(GENODE_DIR)/repos/os/$@ $(dir $@) + +LICENSE: + cp $(GENODE_DIR)/LICENSE $@ + + diff --git a/repos/libports/recipes/src/fetchurl/hash b/repos/libports/recipes/src/fetchurl/hash new file mode 100644 index 0000000000..d9f0a8193e --- /dev/null +++ b/repos/libports/recipes/src/fetchurl/hash @@ -0,0 +1 @@ +2017-12-05-o 90cba3e9361c6a4faeb730fae6ef3339f52442a2 diff --git a/repos/libports/recipes/src/fetchurl/used_apis b/repos/libports/recipes/src/fetchurl/used_apis new file mode 100644 index 0000000000..416c107c8e --- /dev/null +++ b/repos/libports/recipes/src/fetchurl/used_apis @@ -0,0 +1,8 @@ +libc +base +os +so +vfs +curl +timer_session +nic_session diff --git a/repos/libports/src/app/fetchurl/target.mk b/repos/libports/src/app/fetchurl/target.mk index cce4d49d24..f947525c76 100644 --- a/repos/libports/src/app/fetchurl/target.mk +++ b/repos/libports/src/app/fetchurl/target.mk @@ -1,3 +1,3 @@ TARGET = fetchurl -LIBS += curl lwip libc_lwip libc_lwip_nic_dhcp libc -SRC_CC = component.cc \ No newline at end of file +LIBS += curl lwip libc_lwip libc_lwip_nic_dhcp libc ld +SRC_CC = component.cc