From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH] zlog: new package
Date: Thu, 27 Feb 2014 23:56:46 +0100 [thread overview]
Message-ID: <20140227235646.45e3ea5a@skate> (raw)
In-Reply-To: <1390461447-17521-1-git-send-email-yegorslists@googlemail.com>
Hello Yegor,
Sorry for the long delay before reviewing this. I believe it's almost
ready, just a couple of comments below.
On Thu, 23 Jan 2014 08:17:27 +0100, yegorslists at googlemail.com wrote:
> diff --git a/package/zlog/Config.in b/package/zlog/Config.in
> new file mode 100644
> index 0000000..478b2f8
> --- /dev/null
> +++ b/package/zlog/Config.in
> @@ -0,0 +1,12 @@
> +config BR2_PACKAGE_ZLOG
> + bool "zlog"
> + depends on BR2_LARGEFILE
> + depends on BR2_TOOLCHAIN_HAS_THREADS
From my testing you also need:
depends on !BR2_PREFER_STATIC_LIB
because zlog only produces a shared library.
> + help
> + zlog is a reliable, high-performance, thread safe, flexible,
> + clear-model, pure C logging library.
> +
> + https://github.com/HardySimpson/zlog
> +
> +comment "zlog needs a toolchain w/ threads, largefile"
> + depends on !BR2_TOOLCHAIN_HAS_THREADS || !BR2_LARGEFILE
This needs to be updated to take into account the !static lib
dependency.
> +ZLOG_VERSION = ca6162be1608839e99c6388c28488c51ccf98e4a
> +ZLOG_SITE = $(call github,HardySimpson,zlog,$(ZLOG_VERSION))
> +ZLOG_LICENSE = GPLv2.1
The license is LGPLv2.1.
> +ZLOG_LICENSE_FILES = COPYING
> +ZLOG_INSTALL_STAGING = YES
> +
> +define ZLOG_BUILD_CMDS
> + $(MAKE1) CC="$(TARGET_CC) $(TARGET_CFLAGS) $(TARGET_LDFLAGS)" \
> + -C $(@D) all
> +endef
> +
> +define ZLOG_INSTALL_STAGING_CMDS
> + $(MAKE) PREFIX=$(STAGING_DIR)/usr INCLUDE_PATH=include LIBRARY_PATH=lib -C $(@D) install
> +endef
> +
> +define ZLOG_INSTALL_TARGET_CMDS
> + $(MAKE) PREFIX=$(TARGET_DIR)/usr INCLUDE_PATH=include LIBRARY_PATH=lib -C $(@D) install
> +endef
Why do you pass INCLUDE_PATH=include and LIBRARY_PATH=lib ? Looking at
the makefile of zlog, these seem to be the default values.
Thanks!
Thomas
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
prev parent reply other threads:[~2014-02-27 22:56 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-01-23 7:17 [Buildroot] [PATCH] zlog: new package yegorslists at googlemail.com
2014-02-27 22:56 ` Thomas Petazzoni [this message]
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=20140227235646.45e3ea5a@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