From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH] pimd: new package
Date: Sun, 3 Dec 2017 00:19:01 +0100 [thread overview]
Message-ID: <20171203001901.62499b79@windsurf.lan> (raw)
In-Reply-To: <1512228242-23822-1-git-send-email-sergio.prado@e-labworks.com>
Hello,
On Sat, 2 Dec 2017 13:24:02 -0200, Sergio Prado wrote:
> diff --git a/package/pimd/pimd.mk b/package/pimd/pimd.mk
> new file mode 100644
> index 000000000000..cd9427094a61
> --- /dev/null
> +++ b/package/pimd/pimd.mk
> @@ -0,0 +1,20 @@
> +################################################################################
> +#
> +# pimd
> +#
> +################################################################################
> +
> +PIMD_VERSION = 2.3.2
> +PIMD_SOURCE = pimd-$(PIMD_VERSION).tar.gz
> +PIMD_SITE = https://github.com/troglobit/pimd/releases/download/$(PIMD_VERSION)
> +
> +PIMD_LICENSE = BSD-3-Clause
> +PIMD_LICENSE_FILES = LICENSE
> +
> +PIMD_MAKE_OPTS = CROSS=$(TARGET_CROSS) CC=$(TARGET_CC)
> +
> +ifeq ($(BR2_TOOLCHAIN_USES_UCLIBC)$(BR2_TOOLCHAIN_USES_MUSL),y)
> +PIMD_CONF_OPTS = --embedded-libc
> +endif
> +
> +$(eval $(autotools-package))
I was a bit confused at first, because when I looked at the code in
http://troglobit.com/project/pimd/, it was using a traditional
configure.ac and Makefile.am, which surely shouldn't require passing
CROSS and CC at build time, and which also doesn't have any
--embedded-libc option.
The reason is that 2.3.2, which was released in March 2016, predates
the introduction of autotools as the build system.
Therefore, I see two possibilities here:
- You stick with 2.3.2. In this case, you should use generic-package
and not autotools-package, because at 2.3.2, pimd is clearly not an
autotools-package. It's not because it works by chance with the
current autotools-package infrastructure that a future subtle change
in the autotools-package infrastructure, which is valid for real
autotools package, will break this non-autotools package.
- You move to the latest Git commit, which really uses an autotools
based build system.
Thanks!
Thomas
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com
next prev parent reply other threads:[~2017-12-02 23:19 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-12-02 15:24 [Buildroot] [PATCH] pimd: new package Sergio Prado
2017-12-02 16:15 ` Marcus Folkesson
2017-12-04 10:15 ` Sergio Prado
2017-12-04 10:21 ` Marcus Folkesson
2017-12-02 23:19 ` Thomas Petazzoni [this message]
2017-12-04 10:18 ` Sergio Prado
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=20171203001901.62499b79@windsurf.lan \
--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