developer | 7043679 | 2023-05-19 09:31:20 +0800 | [diff] [blame] | 1 | # |
| 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 | |
| 8 | include $(TOPDIR)/rules.mk |
| 9 | |
| 10 | PKG_NAME:=openssl-fips-ext |
| 11 | PKG_RELEASE:=1 |
| 12 | PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME) |
| 13 | |
| 14 | include $(INCLUDE_DIR)/package.mk |
| 15 | |
| 16 | define 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 |
| 22 | endef |
| 23 | |
| 24 | define Package/openssl-fips-ext/description |
| 25 | Simple tool for gcm and ccm |
| 26 | endef |
| 27 | |
developer | 7043679 | 2023-05-19 09:31:20 +0800 | [diff] [blame] | 28 | define Build/Compile |
developer | 90813ea | 2023-11-23 11:31:27 +0800 | [diff] [blame^] | 29 | make -C $(PKG_BUILD_DIR) \ |
developer | 7043679 | 2023-05-19 09:31:20 +0800 | [diff] [blame] | 30 | CC="$(TARGET_CC)" \ |
| 31 | OPENSSL_INCS_LOCATION=-I$(STAGING_DIR)/usr/include/openssl \ |
| 32 | OPENSSL_LIBS_LOCATION=-L$(STAGING_DIR)/usr/lib |
| 33 | endef |
| 34 | |
| 35 | define Package/openssl-fips-ext/install |
| 36 | $(INSTALL_DIR) $(1)/bin |
developer | 90813ea | 2023-11-23 11:31:27 +0800 | [diff] [blame^] | 37 | $(INSTALL_BIN) $(PKG_BUILD_DIR)/openssl-fips-ext $(1)/bin/ |
developer | 7043679 | 2023-05-19 09:31:20 +0800 | [diff] [blame] | 38 | endef |
| 39 | |
| 40 | $(eval $(call BuildPackage,openssl-fips-ext)) |