From 976d3e22349c9da607777ad364c8639b5c531e04 Mon Sep 17 00:00:00 2001 From: Paul Spooren Date: Sat, 29 Aug 2020 21:37:29 -1000 Subject: px5g: rename to px5g-mbedtls Two versions of `px5g` exists without sharing code. For clarification rename the previously existing MbedTLS based version to `px5g-mbedtls` to exists next to `px5g-wolfssl`. Rename code file of MbedTLS from `px5g.c` to `px5g-mbedtls.c`. Signed-off-by: Paul Spooren --- package/utils/px5g-mbedtls/Makefile | 69 +++++++++++++++++++++++++++++++++++++ 1 file changed, 69 insertions(+) create mode 100644 package/utils/px5g-mbedtls/Makefile (limited to 'package/utils/px5g-mbedtls/Makefile') diff --git a/package/utils/px5g-mbedtls/Makefile b/package/utils/px5g-mbedtls/Makefile new file mode 100644 index 0000000000..42ffd39ce3 --- /dev/null +++ b/package/utils/px5g-mbedtls/Makefile @@ -0,0 +1,69 @@ +# +# Copyright (C) 2010-2015 Jo-Philipp Wich +# +# This is free software, licensed under the GNU General Public License v2. +# See /LICENSE for more information. +# + +include $(TOPDIR)/rules.mk + +PKG_NAME:=px5g-mbedtls +PKG_RELEASE:=9 +PKG_LICENSE:=LGPL-2.1 + +PKG_USE_MIPS16:=0 + +PKG_MAINTAINER:=Jo-Philipp Wich + +include $(INCLUDE_DIR)/package.mk + +define Package/px5g-mbedtls + SECTION:=utils + CATEGORY:=Utilities + SUBMENU:=Encryption + TITLE:=X.509 certificate generator (using mbedtls) + DEPENDS:=+libmbedtls + PROVIDES:=px5g + VARIANT:=mbedtls +endef + +define Package/px5g-mbedtls/description + Px5g is a tiny standalone X.509 certificate generator. + It suitable to create key files and certificates in DER + and PEM format for use with stunnel, uhttpd and others. +endef + +define Package/px5g-standalone + SECTION:=utils + CATEGORY:=Utilities + SUBMENU:=Encryption + TITLE:=X.509 certificate generator (standalone) + VARIANT:=standalone +endef +Package/px5g-standalone/description = $(Package/px5g-mbedtls/description) + +define Build/Prepare + mkdir -p $(PKG_BUILD_DIR) +endef + +TARGET_LDFLAGS += -lmbedtls -lmbedx509 -lmbedcrypto + +ifeq ($(BUILD_VARIANT),standalone) + TARGET_LDFLAGS := -Wl,-Bstatic $(TARGET_LDFLAGS) -Wl,-Bdynamic +endif + +TARGET_CFLAGS += -Wl,--gc-sections -Wall -Werror + +define Build/Compile + $(TARGET_CC) $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) -o $(PKG_BUILD_DIR)/px5g px5g-mbedtls.c $(TARGET_LDFLAGS) +endef + +define Package/px5g-mbedtls/install + $(INSTALL_DIR) $(1)/usr/sbin + $(INSTALL_BIN) $(PKG_BUILD_DIR)/px5g $(1)/usr/sbin/px5g +endef + +Package/px5g-standalone/install = $(Package/px5g-mbedtls/install) + +$(eval $(call BuildPackage,px5g-mbedtls)) +$(eval $(call BuildPackage,px5g-standalone)) -- cgit v1.2.3