package: add polarssl library support
PATCH 1/1 package: add polarssl library support
--- package/Config.in | 1 + package/polarssl/Config.in | 6 ++++++ package/polarssl/polarssl.mk | 29 +++++++++++++++++++++++++++++ 3 files changed, 36 insertions(+), 0 deletions(-) create mode 100644 package/polarssl/Config.in create mode 100644 package/polarssl/polarssl.mk
package/Config.in +1 -0
@@ -257,6 +257,7 @@ source "package/libgcrypt/Config.in" source "package/libgpg-error/Config.in" source "package/libnss/Config.in" source "package/openssl/Config.in" +source "package/polarssl/Config.in" endmenu menu "Database"
package/polarssl/Config.in new file +6 -0
@@ -0,0 +1,6 @@ +config BR2_PACKAGE_POLARSSL + bool "polarssl" + help + PolarSSL library - Crypto and SSL made easy + + http://polarssl.org/
package/polarssl/polarssl.mk new file +29 -0
@@ -0,0 +1,29 @@ +############################################################# +# +# polarssl +# +############################################################# +POLARSSL_VERSION:=1.0.0 +POLARSSL_SOURCE = polarssl-$(POLARSSL_VERSION)-gpl.tgz +POLARSSL_SITE = http://polarssl.org/code/releases/ +POLARSSL_INSTALL_STAGING = YES + +define POLARSSL_CONFIGURE_CMDS + true +endef + +define POLARSSL_BUILD_CMDS + AR="$(TARGET_AR)" CC="$(TARGET_CC)" $(MAKE) -C $(@D)/library all +endef + +define POLARSSL_INSTALL_STAGING_CMDS + install -d $(STAGING_DIR)/usr/include/polarssl + install -D -m 755 $(@D)/include/polarssl/*.h $(STAGING_DIR)/usr/include/polarssl/ + install -D -m 644 $(@D)/library/libpolarssl.* $(STAGING_DIR)/usr/lib +endef + +define POLARSSL_INSTALL_TARGET_CMDS + install -D -m 644 $(@D)/library/libpolarssl.* $(TARGET_DIR)/usr/lib +endef + +$(eval $(call AUTOTARGETS,package,polarssl))
Signature · 1 line
1.7.6.3
PATCH 1/1 package: add polarssl library support
Le Wed, 12 Oct 2011 18:13:00 +0200,
Jean-Christophe PLAGNIOL-VILLARD <[email protected]> a ?crit :
package/polarssl/polarssl.mk line 6
Quoted 12 lines
package/polarssl/polarssl.mk new file +6
-0@@ -0,0 +1,29 @@ +############################################################# +# +# polarssl +# +############################################################# +POLARSSL_VERSION:=1.0.0
POLARSSL_VERSION = 1.0.0
package/polarssl/polarssl.mk line 13
Quoted 7 lines
package/polarssl/polarssl.mk new file +7
-0+POLARSSL_SOURCE = polarssl-$(POLARSSL_VERSION)-gpl.tgz +POLARSSL_SITE = http://polarssl.org/code/releases/ +POLARSSL_INSTALL_STAGING = YES + +define POLARSSL_CONFIGURE_CMDS + true +endef
Remove this POLARSSL_CONFIGURE_CMDS...
package/polarssl/polarssl.mk line 17
Quoted 3 lines
package/polarssl/polarssl.mk new file +3
-0+define POLARSSL_BUILD_CMDS + AR="$(TARGET_AR)" CC="$(TARGET_CC)" $(MAKE) -C $(@D)/library all +endef
You probably want to pass the cflags as well ?
package/polarssl/polarssl.mk line 29
Quoted 11 lines
package/polarssl/polarssl.mk new file +11
-0+define POLARSSL_INSTALL_STAGING_CMDS + install -d $(STAGING_DIR)/usr/include/polarssl + install -D -m 755 $(@D)/include/polarssl/*.h $(STAGING_DIR)/usr/include/polarssl/ + install -D -m 644 $(@D)/library/libpolarssl.* $(STAGING_DIR)/usr/lib +endef + +define POLARSSL_INSTALL_TARGET_CMDS + install -D -m 644 $(@D)/library/libpolarssl.* $(TARGET_DIR)/usr/lib +endef + +$(eval $(call AUTOTARGETS,package,polarssl))
and use GENTARGETS instead, since this package is not autotools-based. Moreover, the "package,polarssl" arguments are no longer needed. Therefore:
$(eval $(call GENTARGETS))
With GENTARGETS, the default <pkg>_CONFIGURE_CMDS is empty, which is why you won't have to define it to the true command.
Just curious, how does this compare to OpenSSL or GnuTLS, are are there any well-known users of this library?
Thanks!
Thomas
Signature · 4 lines
Thomas Petazzoni, Free Electrons Kernel, drivers, real-time and embedded Linux development, consulting, training and support. http://free-electrons.com
PATCH 1/1 package: add polarssl library support
Quoted 5 lines · Thomas Petazzoni
package/polarssl/polarssl.mk line 17
Quoted 3 lines
package/polarssl/polarssl.mk new file +3
-0+define POLARSSL_BUILD_CMDS + AR="$(TARGET_AR)" CC="$(TARGET_CC)" $(MAKE) -C $(@D)/library all +endefYou probably want to pass the cflags as well ?
... which is why we have $(TARGET_MAKE_ENV).
Regards,
Arnout
Signature · 9 lines
Arnout Vandecappelle arnout at mind be Senior Embedded Software Architect +32-16-286540 Essensium/Mind http://www.mind.be G.Geenslaan 9, 3001 Leuven, Belgium BE 872 984 063 RPR Leuven LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle GPG fingerprint: 31BB CF53 8660 6F88 345D 54CC A836 5879 20D7 CF43 -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20111014/2529bab4/attachment-0001.html>