forked from keystone-enclave/keystone
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Build filtering-proxy with buildroot
- Loading branch information
Showing
8 changed files
with
75 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
config BR2_PACKAGE_FILTERING_LIBCOAP | ||
bool "Filtering libcoap" | ||
help | ||
A version of libcoap tailored to the filtering-proxy |
30 changes: 30 additions & 0 deletions
30
overlays/keystone/package/filtering-libcoap/filtering-libcoap.mk
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
################################################################################ | ||
# | ||
# libcoap | ||
# | ||
################################################################################ | ||
|
||
ifeq ($(FILTERING_LIBCOAP),) | ||
$(error FILTERING_LIBCOAP directory not defined) | ||
else | ||
include $(KEYSTONE)/mkutils/pkg-keystone.mk | ||
endif | ||
|
||
FILTERING_LIBCOAP_LICENSE = BSD-2-Clause | ||
FILTERING_LIBCOAP_LICENSE_FILES = COPYING LICENSE | ||
FILTERING_LIBCOAP_INSTALL_STAGING = YES | ||
FILTERING_LIBCOAP_CONF_OPTS = \ | ||
-DCMAKE_INSTALL_PREFIX=/usr/local \ | ||
-DENABLE_DOCS=OFF \ | ||
-DENABLE_DTLS=OFF \ | ||
-DWITH_EPOLL=ON \ | ||
-DENABLE_EXAMPLES=OFF \ | ||
-DENABLE_TCP=OFF \ | ||
-DENABLE_OSCORE=OFF \ | ||
-DENABLE_OSCORE_NG=ON \ | ||
-DENABLE_RAP=ON \ | ||
-DENABLE_Q_BLOCK=OFF \ | ||
-DWITH_OBSERVE_PERSIST=OFF | ||
|
||
$(eval $(keystone-package)) | ||
$(eval $(cmake-package)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
config BR2_PACKAGE_FILTERING_PROXY | ||
bool "Filtering Proxy" | ||
depends on BR2_PACKAGE_HOST_KEYSTONE_SDK | ||
depends on BR2_PACKAGE_KEYSTONE_RUNTIME | ||
help | ||
Privacy-preserving en-route filtering of OSCORE-NG traffic |
27 changes: 27 additions & 0 deletions
27
overlays/keystone/package/filtering-proxy/filtering-proxy.mk
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
################################################################################ | ||
# | ||
# Filtering proxy | ||
# | ||
################################################################################ | ||
|
||
ifeq ($(FILTERING_PROXY),) | ||
$(error FILTERING_PROXY directory not defined) | ||
else | ||
include $(KEYSTONE)/mkutils/pkg-keystone.mk | ||
endif | ||
|
||
FILTERING_PROXY_DEPENDENCIES += host-keystone-sdk keystone-runtime filtering-libcoap | ||
FILTERING_PROXY_CONF_OPTS += -DKEYSTONE_SDK_DIR=$(HOST_DIR)/usr/share/keystone/sdk \ | ||
-DKEYSTONE_EYRIE_RUNTIME=$(KEYSTONE_RUNTIME_BUILDDIR) \ | ||
-DLIBCOAP_INSTALL_PATH=$(TARGET_DIR)/usr/local | ||
FILTERING_PROXY_MAKE_OPTS += filtering-proxy | ||
|
||
# Install .ke file and overlay | ||
define FILTERING_PROXY_INSTALL_TARGET_CMDS | ||
find $(@D) -name '*.ke' | \ | ||
xargs -i{} $(INSTALL) -D -m 755 -t $(TARGET_DIR)/root/ {} | ||
cp $(FILTERING_PROXY)/overlay/run.sh $(TARGET_DIR)/root/ | ||
endef | ||
|
||
$(eval $(keystone-package)) | ||
$(eval $(cmake-package)) |