From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH] package: add polarssl library support
Date: Wed, 12 Oct 2011 23:16:39 +0200 [thread overview]
Message-ID: <20111012231639.4182ac22@skate> (raw)
In-Reply-To: <1318435980-27451-1-git-send-email-plagnioj@jcrosoft.com>
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
next prev parent reply other threads:[~2011-10-12 21:16 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-10-12 16:13 [Buildroot] [PATCH] package: add polarssl library support Jean-Christophe PLAGNIOL-VILLARD
2011-10-12 21:16 ` Thomas Petazzoni [this message]
2011-10-13 22:45 ` Arnout Vandecappelle
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20111012231639.4182ac22@skate \
--to=thomas.petazzoni@free-electrons.com \
--cc=buildroot@busybox.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox