blob: 87dd9bbe17b66d78a5e4699b95308136625b8011 [file] [log] [blame]
developer70436792023-05-19 09:31:20 +08001#
2# Copyright (C) 2021 OpenWrt.org
3#
4# This is free software, licensed under the GNU General Public License v2.
5# See /LICENSE for more information.
6#
7
8include $(TOPDIR)/rules.mk
9
10PKG_NAME:=openssl-fips-ext
11PKG_RELEASE:=1
12PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)
13
14include $(INCLUDE_DIR)/package.mk
15
16define Package/openssl-fips-ext
17 CATEGORY:=MTK Properties
18 SECTION:=MTK Properties
19 SUBMENU:=Applications
20 TITLE:=openssl-fips-ext -- simple tool for gcm and ccm based on openssl api
21 DEPENDS:= libopenssl
22endef
23
24define Package/openssl-fips-ext/description
25 Simple tool for gcm and ccm
26endef
27
developer70436792023-05-19 09:31:20 +080028define Build/Compile
developer90813ea2023-11-23 11:31:27 +080029 make -C $(PKG_BUILD_DIR) \
developer70436792023-05-19 09:31:20 +080030 CC="$(TARGET_CC)" \
31 OPENSSL_INCS_LOCATION=-I$(STAGING_DIR)/usr/include/openssl \
32 OPENSSL_LIBS_LOCATION=-L$(STAGING_DIR)/usr/lib
33endef
34
35define Package/openssl-fips-ext/install
36 $(INSTALL_DIR) $(1)/bin
developer90813ea2023-11-23 11:31:27 +080037 $(INSTALL_BIN) $(PKG_BUILD_DIR)/openssl-fips-ext $(1)/bin/
developer70436792023-05-19 09:31:20 +080038endef
39
40$(eval $(call BuildPackage,openssl-fips-ext))