2 # Copyright (C) 2020 Paul Spooren <mail@aparcar.org>
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
10 PKG_NAME
:=px5g-wolfssl
12 PKG_LICENSE
:=GPL-2.0
-or-later
16 PKG_MAINTAINER
:=Paul Spooren
<mail@aparcar.org
>
18 include $(INCLUDE_DIR
)/package.mk
20 define Package
/px5g-wolfssl
24 TITLE
:=X
.509 certificate generator
(using wolfssl
)
30 define Package
/px5g-wolfssl
/description
31 Px5g is a tiny X
.509 certificate generator.
32 It suitable to create key files and certificates in DER
33 and PEM format for use with stunnel
, uhttpd and others.
37 mkdir
-p
$(PKG_BUILD_DIR
)
40 TARGET_LDFLAGS
+= -lwolfssl
43 TARGET_CFLAGS
+= -Wl
,--gc-sections
46 $(TARGET_CC
) $(TARGET_CPPFLAGS
) $(TARGET_CFLAGS
) -o
$(PKG_BUILD_DIR
)/px5g px5g-wolfssl.c
$(TARGET_LDFLAGS
)
49 define Package
/px5g-wolfssl
/install
50 $(INSTALL_DIR
) $(1)/usr
/sbin
51 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/px5g
$(1)/usr
/sbin
/px5g
54 $(eval
$(call BuildPackage
,px5g-wolfssl
))