From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH v3 1/2] lockdev: add lockdev
Date: Wed, 8 May 2013 16:41:02 +0200 [thread overview]
Message-ID: <20130508164102.5e7d3247@skate> (raw)
In-Reply-To: <1367964142-23036-1-git-send-email-spenser@gillilanding.com>
Dear Spenser Gilliland,
On Tue, 7 May 2013 17:02:21 -0500, Spenser Gilliland wrote:
> diff --git a/package/lockdev/Config.in b/package/lockdev/Config.in
> new file mode 100644
> index 0000000..2bd75d1
> --- /dev/null
> +++ b/package/lockdev/Config.in
> @@ -0,0 +1,4 @@
> +config BR2_PACKAGE_LOCKDEV
> + bool "lockdev"
> + help
> + library for locking devices
A few more details would be nice to have here, but I see that the
package itself doesn't really provide a more detailed description of
what it does. It also apparently doesn't have an upstream site.
> +LOCKDEV_VERSION = 1.0.3
> +LOCKDEV_SOURCE = lockdev_$(LOCKDEV_VERSION).orig.tar.gz
> +LOCKDEV_SITE = http://ftp.debian.org/debian/pool/main/l/lockdev/
You should use BR2_DEBIAN_MIRROR here. See package/argus/argus.mk for
example. Or probably better, use http://snapshot.debian.net/, as in
package/fakeroot/fakeroot.mk. Using snapshot.debian.net ensures that
the file will always be present at this location.
> +LOCKDEV_LICENSE = LGPLv2.1
I checked and confirm that the license appears to be LGPLv2.1, without
the plus.
> +LOCKDEV_LICENSE_FILE = LICENSE
LOCKDEV_LICENSE_FILES
> +LOCKDEV_INSTALL_STAGING = YES
> +
> +define LOCKDEV_BUILD_CMDS
> + $(MAKE1) $(TARGET_CONFIGURE_OPTS) -C $(@D) static shared
> +endef
Building the shared variant will not work when
BR2_PREFER_STATIC_LIB=y.
> +define LOCKDEV_INSTALL_STAGING_CMDS
> + $(MAKE1) basedir=$(STAGING_DIR)/usr -C $(@D) install
> + ln -sf $(STAGING_DIR)/usr/lib/liblockdev.$(LOCKDEV_VERSION).so $(STAGING_DIR)/usr/lib/liblockdev.so
> + ln -sf $(STAGING_DIR)/usr/lib/liblockdev.$(LOCKDEV_VERSION).so $(STAGING_DIR)/usr/lib/liblockdev.so.1
> +endef
> +
> +define LOCKDEV_INSTALL_TARGET_CMDS
> + $(MAKE1) basedir=$(TARGET_DIR)/usr -C $(@D) install
> + ln -sf $(TARGET_DIR)/usr/lib/liblockdev.$(LOCKDEV_VERSION).so $(TARGET_DIR)/usr/lib/liblockdev.so.1
> +endef
I am not sure using the 'install' target is appropriate here. Looking
at the package Makefile, it not only installs the library, in usr/lib,
but also some debug stuff in usr/lib/debug, some profile stuff in
usr/lib/profile, etc.
So, I believe it should probably be something like (untested) :
ifeq ($(BR2_PREFER_STATIC_LIB),y)
define LOCKDEV_BUILD_CMDS
$(MAKE1) $(TARGET_CONFIGURE_OPTS) -C $(@D) static
endef
define LOCKDEV_INSTALL_STAGING_CMDS
$(MAKE1) basedir=$(STAGING_DIR)/usr -C $(@D) install_dev
endef
else # BR2_PREFER_STATIC_LIB
define LOCKDEV_BUILD_CMDS
$(MAKE1) $(TARGET_CONFIGURE_OPTS) -C $(@D) static shared
endef
define LOCKDEV_INSTALL_STAGING_CMDS
$(MAKE1) basedir=$(STAGING_DIR)/usr -C $(@D) install_dev install_run
ln -sf $(STAGING_DIR)/usr/lib/liblockdev.$(LOCKDEV_VERSION).so $(STAGING_DIR)/usr/lib/liblockdev.so
ln -sf $(STAGING_DIR)/usr/lib/liblockdev.$(LOCKDEV_VERSION).so $(STAGING_DIR)/usr/lib/liblockdev.so.1
endef
define LOCKDEV_INSTALL_TARGET_CMDS
$(MAKE1) basedir=$(TARGET_DIR)/usr -C $(@D) install_run
ln -sf $(TARGET_DIR)/usr/lib/liblockdev.$(LOCKDEV_VERSION).so $(TARGET_DIR)/usr/lib/liblockdev.so.1
endef
endif # BR2_PREFER_STATIC_LIB
Best regards,
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:[~2013-05-08 14:41 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-05-03 22:08 [Buildroot] [PATCH 1/1] libcec: add the libcec for HDMI device Control Spenser Gilliland
2013-05-06 21:15 ` Thomas Petazzoni
2013-05-06 22:19 ` Peter Korsgaard
2013-05-06 22:51 ` Spenser Gilliland
2013-05-07 20:46 ` [Buildroot] [PATCH v2 1/2] libcec: add " Spenser Gilliland
2013-05-07 20:47 ` [Buildroot] [PATCH v2 2/2] lockdev: add lockdev Spenser Gilliland
2013-05-07 21:05 ` Yann E. MORIN
2013-05-07 21:43 ` Spenser Gilliland
2013-05-08 6:01 ` Arnout Vandecappelle
2013-05-07 20:59 ` [Buildroot] [PATCH v2 1/2] libcec: add libcec for HDMI device Control Yann E. MORIN
2013-05-07 21:49 ` Spenser Gilliland
2013-05-07 22:02 ` [Buildroot] [PATCH v3 1/2] lockdev: add lockdev Spenser Gilliland
2013-05-07 22:02 ` [Buildroot] [PATCH v3 2/2] libcec: add libcec for HDMI device Control Spenser Gilliland
2013-05-07 22:55 ` Spenser Gilliland
2013-05-08 14:41 ` Thomas Petazzoni [this message]
2013-05-08 18:55 ` [Buildroot] [PATCH v4 1/2] lockdev: add lockdev Spenser Gilliland
2013-05-08 18:55 ` [Buildroot] [PATCH v4 2/2] libcec: add libcec for HDMI device Control Spenser Gilliland
2013-07-29 19:31 ` Thomas Petazzoni
2013-07-29 19:24 ` [Buildroot] [PATCH v4 1/2] lockdev: add lockdev Thomas Petazzoni
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=20130508164102.5e7d3247@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