From: Romain Naour <romain.naour@openwide.fr>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH v3 1/2] librtas: new package
Date: Mon, 13 Jul 2015 17:38:10 +0200 [thread overview]
Message-ID: <55A3DB62.3070709@openwide.fr> (raw)
In-Reply-To: <55A3DA24.10604@openwide.fr>
Hi Sam,
Le 13/07/2015 17:32, Romain Naour a ?crit :
> Hi Sam,
>
> Le 19/05/2015 07:59, Sam Bobroff a ?crit :
>> Signed-off-by: Sam Bobroff <sam.bobroff@au1.ibm.com>
>> ---
>> v2:
>>
>> Remove redundant INSTALL_TARGET=yes.
>> Add patch description and patch signed-off-by.
>> Rename patch with correct prefix (0001-).
>>
>> package/Config.in | 1 +
>> ...0001-librtas-install-librtas.so.1-symlink.patch | 31 ++++++++++++++++++++
>> package/librtas/Config.in | 9 ++++++
>> package/librtas/librtas.mk | 26 ++++++++++++++++
>> 4 files changed, 67 insertions(+)
>> create mode 100644 package/librtas/0001-librtas-install-librtas.so.1-symlink.patch
>> create mode 100644 package/librtas/Config.in
>> create mode 100644 package/librtas/librtas.mk
>>
>
> [snip]
>
>> diff --git a/package/librtas/Config.in b/package/librtas/Config.in
>> new file mode 100644
>> index 0000000..bf0a705
>> --- /dev/null
>> +++ b/package/librtas/Config.in
>> @@ -0,0 +1,9 @@
>> +config BR2_PACKAGE_LIBRTAS
>> + bool "librtas"
>> + depends on BR2_powerpc || BR2_powerpc64 || BR2_powerpc64le
>
> Have you tested this package with uClibc-ng or musl ?
>
> I tried to build with an experimental musl 1.1.6 based toolchain but it won't
> build (lot of build errors).
>
> Then I tried to build with a uClibc-ng powerpc toolchain used in autobuilder [1]
> and powerpc-utils fail to build when librtas support is enabled.
>
> src/drmgr/common.c:17:22: fatal error: execinfo.h No such file or directory.
>
> But it build fine with a glibc based toolchain (build tested with the CS powerpc
> 2011.03 toolchain). For now, it's ok if librtas can be available on glibc
> toolchains.
>
> Also, the package should depends on !BR2_STATIC_LIBS since librtas build
> unconditionally a shared library.
>
> Otherwise, you patch looks ok.
>
> Best regards,
> Romain Naour
>
> [1] http://autobuild.buildroot.net/toolchains/configs/br-powerpc-e500mc-full.config
>
>> + help
>> + The librtas package provides an interface for Run-Time Abstraction
>> + Services (RTAS) calls on PAPR platforms. The libraries allow users to
>> + examine and manipulate hardware, and parse RTAS events.
>> +
>> + http://librtas.sourceforge.net/
>> diff --git a/package/librtas/librtas.mk b/package/librtas/librtas.mk
>> new file mode 100644
>> index 0000000..b081a91
>> --- /dev/null
>> +++ b/package/librtas/librtas.mk
>> @@ -0,0 +1,26 @@
>> +################################################################################
>> +#
>> +# librtas
>> +#
>> +################################################################################
>> +
>> +LIBRTAS_VERSION = 1.3.13
>> +LIBRTAS_SITE = http://downloads.sourceforge.net/project/librtas
>> +LIBRTAS_LICENSE = Common Public License Version 1.0
>> +LIBRTAS_LICENSE_FILES = COPYRIGHT
>> +LIBRTAS_INSTALL_STAGING = YES
>> +
>> +define LIBRTAS_BUILD_CMDS
>> + $(MAKE) -C $(@D) CC="$(TARGET_CC)" LD="$(TARGET_LD)"
>> +endef
>> +
>> +define LIBRTAS_INSTALL_STAGING_CMDS
>> + $(MAKE) -C $(@D) DESTDIR=$(STAGING_DIR) install
>> +endef
>> +
>> +define LIBRTAS_INSTALL_TARGET_CMDS
>> + $(MAKE) -C $(@D) DESTDIR=$(TARGET_DIR) install
>> +endef
>> +
>> +
Extra new line.
Otherwise, with my previous comment taken into account:
Reviewed-by: Romain Naour <romain.naour@openwide.fr>
Best regards,
Romain Naour
>> +$(eval $(generic-package))
>>
>
> _______________________________________________
> buildroot mailing list
> buildroot at busybox.net
> http://lists.busybox.net/mailman/listinfo/buildroot
>
next prev parent reply other threads:[~2015-07-13 15:38 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-05-19 5:59 [Buildroot] [PATCH v3 0/2] Improve powerpc-utils with librtas Sam Bobroff
2015-05-19 5:59 ` [Buildroot] [PATCH v3 1/2] librtas: new package Sam Bobroff
2015-07-13 15:32 ` Romain Naour
2015-07-13 15:38 ` Romain Naour [this message]
2015-07-13 16:37 ` Thomas Petazzoni
2015-05-19 5:59 ` [Buildroot] [PATCH v3 2/2] powerpc-utils: optionally use librtas Sam Bobroff
2015-07-13 15:44 ` Romain Naour
2015-07-13 16:44 ` Thomas Petazzoni
2015-07-20 3:31 ` Sam Bobroff
2015-06-01 4:05 ` [Buildroot] [PATCH v3 0/2] Improve powerpc-utils with librtas Sam Bobroff
2015-06-01 4:18 ` Baruch Siach
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=55A3DB62.3070709@openwide.fr \
--to=romain.naour@openwide.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