Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH 09/10 v2] package/iprutils: Add IBM Power RAID utilities
Date: Sat, 29 Mar 2014 16:17:37 +0100	[thread overview]
Message-ID: <20140329161737.292ee63f@skate> (raw)
In-Reply-To: <1394595957.566789.595625760281.9.gpush@pablo>

Dear Jeremy Kerr,

I've applied your patch, with a few corrections (see below).

On Wed, 12 Mar 2014 11:45:57 +0800, Jeremy Kerr wrote:

> diff --git a/package/iprutils/Config.in b/package/iprutils/Config.in
> new file mode 100644
> index 0000000..d72688f
> --- /dev/null
> +++ b/package/iprutils/Config.in
> @@ -0,0 +1,10 @@
> +config BR2_PACKAGE_IPRUTILS
> +	bool "iprutils"
> +	select BR2_PACKAGE_NCURSES
> +	select BR2_PACKAGE_NCURSES_TARGET_PANEL
> +	select BR2_PACKAGE_NCURSES_TARGET_FORM
> +	select BR2_PACKAGE_NCURSES_TARGET_MENU
> +	select BR2_PACKAGE_LIBSYSFS
> +	select BR2_PACKAGE_PCIUTILS
> +	help
> +	  System utilities for IBM Power RAID devices

Here I've added the URL of the upstream project on SourceForge.


> diff --git a/package/iprutils/iprutils.mk b/package/iprutils/iprutils.mk
> new file mode 100644
> index 0000000..15de9af
> --- /dev/null
> +++ b/package/iprutils/iprutils.mk
> @@ -0,0 +1,26 @@
> +################################################################################
> +#
> +# iprutils
> +#
> +################################################################################
> +
> +IPRUTILS_VERSION = 2.3.15
> +IPRUTILS_SITE = http://downloads.sourceforge.net/project/iprdd/iprutils%20for%202.6%20kernels/$(IPRUTILS_VERSION)
> +IPRUTILS_SOURCE = iprutils-$(IPRUTILS_VERSION)-src.tgz
> +IPRUTILS_DEPENDENCIES = ncurses libsysfs pciutils
> +IPRUTILS_LICENSE = Common Public License Version 1.0
> +IPRUTILS_LICENSE_FILES = LICENSE
> +
> +define IPRUTILS_BUILD_CMDS
> +	$(MAKE) CC=$(TARGET_CC) LD=$(TARGET_LD) -C $(@D) all
> +endef

Here instead of CC=$(TARGET_CC) and LD=$(TARGET_LD), I've used
$(TARGET_CONFIGURE_OPTS), which also ensures CFLAGS and al. are passed.
This required adding another patch to the package so that our CFLAGS
can be passed from the environment and can be added with the
package-specific CFLAGS.

> +define IPRUTILS_INSTALL_TARGET_CMDS
> +	$(INSTALL) -D -m 0755 $(@D)/iprconfig $(TARGET_DIR)/sbin/iprconfig
> +	$(INSTALL) -D -m 0755 $(@D)/iprupdate $(TARGET_DIR)/sbin/iprupdate
> +	$(INSTALL) -D -m 0755 $(@D)/iprdump $(TARGET_DIR)/sbin/iprdump
> +	$(INSTALL) -D -m 0755 $(@D)/iprinit $(TARGET_DIR)/sbin/iprinit
> +	$(INSTALL) -D -m 0755 $(@D)/iprdbg $(TARGET_DIR)/sbin/iprdbg
> +endef

And I've replaced that my using the "make install" target of the
package Makefile, which was doing the same thing. "make install" is
also installing manpages, which is probably why you didn't use it, but
Buildroot anyway automatically removes documentation from the target,
such as manpages. Therefore, we prefer to use the package "make
install", which is more likely to continue to work in the future.

Thanks!

Thomas
-- 
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com

  reply	other threads:[~2014-03-29 15:17 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-03-12  3:45 [Buildroot] [PATCH 00/10 v2] Enable a buildroot-based petitboot bootloader Jeremy Kerr
2014-03-12  3:45 ` [Buildroot] [PATCH 05/10 v2] package/dtc: Update to v1.4.0 Jeremy Kerr
2014-03-29 15:18   ` Thomas Petazzoni
2014-03-12  3:45 ` [Buildroot] [PATCH 07/10 v2] package/kexec-lite: Add a package for the kexec-lite tools Jeremy Kerr
2014-03-12  3:45 ` [Buildroot] [PATCH 09/10 v2] package/iprutils: Add IBM Power RAID utilities Jeremy Kerr
2014-03-29 15:17   ` Thomas Petazzoni [this message]
2014-03-12  3:45 ` [Buildroot] [PATCH 01/10 v2] package/busybox: Add facility for DHCP hooks Jeremy Kerr
2014-03-12  3:45 ` [Buildroot] [PATCH 02/10 v2] package/dropbear: Add separate configuration option for dropbear server Jeremy Kerr
2014-03-12  3:45 ` [Buildroot] [PATCH 06/10 v2] package/powerpc-utils: Add powerpc hardware utilities Jeremy Kerr
2014-03-12  3:45 ` [Buildroot] [PATCH 10/10 v2] Add powerpc petitboot defconfig Jeremy Kerr
2014-03-12  3:45 ` [Buildroot] [PATCH 08/10 v2] package/petitboot: Add petitboot, the userspace bootloader Jeremy Kerr
2014-03-12 22:16   ` Yann E. MORIN
2014-03-12  3:45 ` [Buildroot] [PATCH 04/10 v2] package/ncurses: Allow building wide char support Jeremy Kerr
2014-03-12  3:45 ` [Buildroot] [PATCH 03/10 v2] package/ncurses: Remove duplicated library install code Jeremy Kerr
2014-03-12  3:49   ` Jeremy Kerr
2014-03-12  3:54   ` [Buildroot] [PATCH v2.1] " Jeremy Kerr
2014-03-23 22:25     ` Peter Korsgaard

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=20140329161737.292ee63f@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