libports: create libcrypto recipe

This commit is contained in:
Josef Söntgen 2017-11-13 14:41:47 +01:00 committed by Christian Helmuth
parent f32344138f
commit a6b4812b78
8 changed files with 4045 additions and 11 deletions

View File

@ -1,12 +1 @@
INC_DIR += $(call select_from_ports,openssl)/include INC_DIR += $(call select_from_ports,openssl)/include
ifeq ($(filter-out $(SPECS),x86_32),)
TARGET_CPUARCH=x86_32
else ifeq ($(filter-out $(SPECS),x86_64),)
TARGET_CPUARCH=x86_64
else ifeq ($(filter-out $(SPECS),arm),)
TARGET_CPUARCH=arm
endif
# include architecture specific opensslconf.h
REP_INC_DIR += src/lib/openssl/$(TARGET_CPUARCH)

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,23 @@
MIRROR_FROM_REP_DIR := lib/import/import-libcrypto.mk \
lib/symbols/libcrypto
content: $(MIRROR_FROM_REP_DIR)
$(MIRROR_FROM_REP_DIR):
$(mirror_from_rep_dir)
PORT_DIR := $(call port_dir,$(REP_DIR)/ports/openssl)
content: include
include:
mkdir -p $@
cp -r $(PORT_DIR)/include/* $@/
mkdir -p $@/crypto/ec
cp -r $(PORT_DIR)/src/lib/openssl/crypto/ec/ec_lcl.h $@/crypto/ec
cp -r $(PORT_DIR)/src/lib/openssl/crypto/o_dir.h $@/crypto
content: LICENSE
LICENSE:
cp $(PORT_DIR)/src/lib/openssl/LICENSE $@

View File

@ -0,0 +1 @@
2017-11-13-b 84218340386b08045bdaaf74556a4438df6a9b9e

View File

@ -0,0 +1 @@
libcrypto

View File

@ -0,0 +1,29 @@
content: src/lib/libcrypto/target.mk src/lib/openssl lib/mk LICENSE
PORT_DIR := $(call port_dir,$(REP_DIR)/ports/openssl)
src/lib/libcrypto:
mkdir -p $@
src/lib/openssl:
mkdir -p $@
cp -r $(PORT_DIR)/src/lib/openssl/e_os.h $@
cp -r $(REP_DIR)/src/lib/openssl/* $@
mkdir -p $@/crypto
cp -r $(PORT_DIR)/src/lib/openssl/crypto/* $@/crypto
mkdir -p $@/x86_64
cp -r $(PORT_DIR)/src/lib/openssl/x86_64/* $@/x86_64
src/lib/libcrypto/target.mk: src/lib/libcrypto src/lib/openssl
echo "LIBS += libcrypto" > $@
lib/mk:
mkdir -p $@
cp $(REP_DIR)/lib/mk/libcrypto.inc $@
for spec in x86_32 x86_64 arm; do \
mkdir -p $@/spec/$$spec; \
cp $(REP_DIR)/$@/spec/$$spec/libcrypto.mk $@/spec/$$spec/; \
done
LICENSE:
cp $(PORT_DIR)/src/lib/openssl/LICENSE $@

View File

@ -0,0 +1 @@
2017-11-13 9e458a30ecbc3101f1a743a300521eeb09e958ea

View File

@ -0,0 +1,2 @@
libc
so