Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Yann E. MORIN <yann.morin.1998@free.fr>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH 2/2] i2c-tools: install library and header to staging
Date: Thu, 23 Aug 2018 22:51:40 +0200	[thread overview]
Message-ID: <20180823205140.GI9365@scaer> (raw)
In-Reply-To: <1535055605-8974-3-git-send-email-brad@nextdimension.cc>

Brad, All,

On 2018-08-23 15:20 -0500, Brad Love spake thusly:
> When the dynamic/static library of i2c-tools is enabled it is installed
> to the target destination. However, in order for external packages to
> link against it, it must also be installed to staging.
> 
> Here, the flag is set to install the package to staging. The
> INSTALL_STAGING command is included to only install the library
> and header file in order to utilize libi2c externally. The make
> targets are used for the installation to accomodate whether static
> or dynamic library was selected during configuration.
> 
> Signed-off-by: Brad Love <brad@nextdimension.cc>
> ---
>  package/i2c-tools/i2c-tools.mk | 8 ++++++++
>  1 file changed, 8 insertions(+)
> 
> diff --git a/package/i2c-tools/i2c-tools.mk b/package/i2c-tools/i2c-tools.mk
> index a346698..c571056 100644
> --- a/package/i2c-tools/i2c-tools.mk
> +++ b/package/i2c-tools/i2c-tools.mk
> @@ -10,6 +10,7 @@ I2C_TOOLS_SITE = https://www.kernel.org/pub/software/utils/i2c-tools
>  I2C_TOOLS_LICENSE = GPL-2.0+, GPL-2.0 (py-smbus), LGPL-2.1+ (library)
>  I2C_TOOLS_LICENSE_FILES = COPYING
>  I2C_TOOLS_MAKE_OPTS = EXTRA=eeprog
> +I2C_TOOLS_INSTALL_STAGING = YES
>  
>  ifeq ($(BR2_PACKAGE_PYTHON),y)
>  I2C_TOOLS_DEPENDENCIES += python
> @@ -62,4 +63,11 @@ define I2C_TOOLS_INSTALL_TARGET_CMDS
>  	$(I2C_TOOLS_INSTALL_PYSMBUS)
>  endef
>  
> +define I2C_TOOLS_INSTALL_STAGING_CMDS
> +	$(MAKE) $(TARGET_CONFIGURE_OPTS) $(I2C_TOOLS_MAKE_OPTS) \
> +		DESTDIR="$(STAGING_DIR)" prefix=/usr -C $(@D) install-lib
> +	$(MAKE) $(TARGET_CONFIGURE_OPTS) $(I2C_TOOLS_MAKE_OPTS) \
> +		DESTDIR="$(STAGING_DIR)" prefix=/usr -C $(@D) install-include
> +endef

I guess that 'make install' also installs the lib and headers, right? If
so, I'd prefer we use that; it is not a problem that programs are also
instaleld in staging.

Regards,
Yann E. MORIN.

>  $(eval $(generic-package))
> -- 
> 2.7.4
> 
> _______________________________________________
> buildroot mailing list
> buildroot at busybox.net
> http://lists.busybox.net/mailman/listinfo/buildroot

-- 
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| +33 223 225 172 `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
'------------------------------^-------^------------------^--------------------'

  reply	other threads:[~2018-08-23 20:51 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-08-23 20:20 [Buildroot] [PATCH 0/2] i2c-tools: license and staging installation fixes Brad Love
2018-08-23 20:20 ` [Buildroot] [PATCH 1/2] i2c-tools: include LGPL-2.1+ license for libi2c Brad Love
2018-08-23 20:49   ` Yann E. MORIN
2018-08-24  4:25   ` Baruch Siach
2018-08-24 13:57     ` Brad Love
2018-08-23 20:20 ` [Buildroot] [PATCH 2/2] i2c-tools: install library and header to staging Brad Love
2018-08-23 20:51   ` Yann E. MORIN [this message]
2018-08-23 21:24     ` Brad Love
2018-08-23 21:26   ` [Buildroot] [PATCH v2 " Brad Love
  -- strict thread matches above, loose matches on Subject: below --
2018-08-23 19:56 [Buildroot] [PATCH 0/2] i2c-tools: license and staging installation fixes Brad Love
2018-08-23 19:56 ` [Buildroot] [PATCH 2/2] i2c-tools: install library and header to staging Brad Love

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=20180823205140.GI9365@scaer \
    --to=yann.morin.1998@free.fr \
    --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