blob: 1305332b730ce46ae1c1c2f96b77b0921183a7db [file] [log] [blame]
developer23f9f0f2023-06-15 13:06:25 +08001diff --git a/tools/Makefile b/tools/Makefile
2index dc07de7..ccd60a5 100644
3--- a/tools/Makefile
4+++ b/tools/Makefile
5@@ -37,6 +37,7 @@ tools-$(CONFIG_TARGET_mxs) += elftosb sdimage
6 tools-$(CONFIG_TARGET_tegra) += cbootimage cbootimage-configs
7 tools-$(CONFIG_USES_MINOR) += kernel2minor
8 tools-$(CONFIG_USE_SPARSE) += sparse
9+tools-y += openssl
10
11 # builddir dependencies
12 $(curdir)/autoconf/compile := $(curdir)/m4/compile
13diff --git a/tools/openssl/Makefile b/tools/openssl/Makefile
14new file mode 100644
15index 0000000..087b33f
16--- /dev/null
17+++ b/tools/openssl/Makefile
18@@ -0,0 +1,44 @@
19+#
20+# Copyright (C) 2006-2016 OpenWrt.org
21+#
22+# This is free software, licensed under the GNU General Public License v2.
23+# See /LICENSE for more information.
24+#
25+
26+include $(TOPDIR)/rules.mk
27+
28+PKG_NAME:=openssl
29+PKG_VERSION:=3.0.7
30+PKG_RELEASE:=3
31+
32+PKG_BUILD_PARALLEL:=1
33+
34+PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
35+PKG_SOURCE_URL:= \
36+ http://www.openssl.org/source/ \
37+ http://ftp.fi.muni.cz/pub/openssl/source/ \
38+ ftp://ftp.pca.dfn.de/pub/tools/net/openssl/source/ \
39+
40+PKG_HASH:=83049d042a260e696f62406ac5c08bf706fd84383f945cf21bd61e9ed95c396e
41+
42+PKG_LICENSE:=OpenSSL
43+PKG_LICENSE_FILES:=LICENSE
44+PKG_MAINTAINER:=Eneas U de Queiroz <cotequeiroz@gmail.com>
45+PKG_CPE_ID:=cpe:/a:openssl:openssl
46+
47+include $(INCLUDE_DIR)/host-build.mk
48+
49+define Host/Configure
50+ (cd $(HOST_BUILD_DIR); \
51+ ./Configure -no-shared)
52+endef
53+
54+define Host/Install
55+ $(CP) $(HOST_BUILD_DIR)/apps/openssl $(STAGING_DIR_HOST)/bin/openssl-$(PKG_RELEASE)
56+ mkdir -p $(STAGING_DIR_HOST)/lib/openssl-$(PKG_RELEASE)
57+ $(CP) $(HOST_BUILD_DIR)/libssl.a $(STAGING_DIR_HOST)/lib/openssl-$(PKG_RELEASE)
58+ $(CP) $(HOST_BUILD_DIR)/libcrypto.a $(STAGING_DIR_HOST)/lib/openssl-$(PKG_RELEASE)
59+ ln -sf $(HOST_BUILD_DIR)/include $(STAGING_DIR_HOST)/include/openssl-$(PKG_RELEASE)
60+endef
61+
62+$(eval $(call HostBuild))