* [Buildroot] [PATCH] package: add polarssl library support
@ 2011-10-12 16:13 Jean-Christophe PLAGNIOL-VILLARD
2011-10-12 21:16 ` Thomas Petazzoni
0 siblings, 1 reply; 3+ messages in thread
From: Jean-Christophe PLAGNIOL-VILLARD @ 2011-10-12 16:13 UTC (permalink / raw)
To: buildroot
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
---
package/Config.in | 1 +
| 6 ++++++
| 29 +++++++++++++++++++++++++++++
3 files changed, 36 insertions(+), 0 deletions(-)
create mode 100644 package/polarssl/Config.in
create mode 100644 package/polarssl/polarssl.mk
diff --git a/package/Config.in b/package/Config.in
index 7dc8887..b8da8e3 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -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"
--git a/package/polarssl/Config.in b/package/polarssl/Config.in
new file mode 100644
index 0000000..b61b447
--- /dev/null
+++ b/package/polarssl/Config.in
@@ -0,0 +1,6 @@
+config BR2_PACKAGE_POLARSSL
+ bool "polarssl"
+ help
+ PolarSSL library - Crypto and SSL made easy
+
+ http://polarssl.org/
--git a/package/polarssl/polarssl.mk b/package/polarssl/polarssl.mk
new file mode 100644
index 0000000..915c5c3
--- /dev/null
+++ b/package/polarssl/polarssl.mk
@@ -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))
--
1.7.6.3
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [Buildroot] [PATCH] package: add polarssl library support
2011-10-12 16:13 [Buildroot] [PATCH] package: add polarssl library support Jean-Christophe PLAGNIOL-VILLARD
@ 2011-10-12 21:16 ` Thomas Petazzoni
2011-10-13 22:45 ` Arnout Vandecappelle
0 siblings, 1 reply; 3+ messages in thread
From: Thomas Petazzoni @ 2011-10-12 21:16 UTC (permalink / raw)
To: buildroot
Le Wed, 12 Oct 2011 18:13:00 +0200,
Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> a ?crit :
> diff --git a/package/polarssl/polarssl.mk b/package/polarssl/polarssl.mk
> new file mode 100644
> index 0000000..915c5c3
> --- /dev/null
> +++ b/package/polarssl/polarssl.mk
> @@ -0,0 +1,29 @@
> +#############################################################
> +#
> +# polarssl
> +#
> +#############################################################
> +POLARSSL_VERSION:=1.0.0
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
Remove this POLARSSL_CONFIGURE_CMDS...
> +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 ?
> +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
--
Thomas Petazzoni, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Buildroot] [PATCH] package: add polarssl library support
2011-10-12 21:16 ` Thomas Petazzoni
@ 2011-10-13 22:45 ` Arnout Vandecappelle
0 siblings, 0 replies; 3+ messages in thread
From: Arnout Vandecappelle @ 2011-10-13 22:45 UTC (permalink / raw)
To: buildroot
On Wednesday 12 October 2011 23:16:39, Thomas Petazzoni wrote:
> > +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 ?
... which is why we have $(TARGET_MAKE_ENV).
Regards,
Arnout
--
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>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2011-10-13 22:45 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-10-12 16:13 [Buildroot] [PATCH] package: add polarssl library support Jean-Christophe PLAGNIOL-VILLARD
2011-10-12 21:16 ` Thomas Petazzoni
2011-10-13 22:45 ` Arnout Vandecappelle
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox