[Skiboot] [RFC PATCH] add a skiboot rpm spec file

Vasant Hegde hegdevasant at linux.vnet.ibm.com
Mon Jan 11 16:25:31 AEDT 2016


On 01/07/2016 01:31 PM, Cédric Le Goater wrote:
> On 01/07/2016 07:51 AM, Vasant Hegde wrote:
>> On 12/01/2015 09:50 PM, Cédric Le Goater wrote:
>>> On 12/01/2015 04:43 PM, Vasant Hegde wrote:
>>>> On 12/01/2015 06:44 PM, Cédric Le Goater wrote:
>>
>> .../...
>>
>> Stewart,  Cedric,
>>
>> IIUC we all agree to have 3 separate packages here..
>>   opal-prd -- binary package contains opal-prd daemon
>>   opal-firmware - contains skiboot.lid
>>   opla-utils -- Contains developer utilities like gard, xscom utilities etc.
>>
>> Thankfully Fedora folks haven't accepted opal-prd package. If everyone agrees
>> with above 3 package/naming convention then I would like to propose changes now.
> 
> Please see below the .spec that I am using and in which I have taken into account 
> your comments.
> 
> Tested on skiboot git HEAD with a f23/ppc64le.
> 
>>>>> +%build
>>>>> +SKIBOOT_VERSION=%version CROSS= make V=1 %{?_smp_mflags}
>>>>
>>>> Not sure cross compilation works in build environment. Have you verified?
>>>
>>> No. I compiled on a f22/ppc64le which is good enough for skiboot. The above 
>>> disables the cross compiler.
>>
>>
>> But this will generate LE version of LID right? Are we fine with that?
> 
> No, skiboot is always '-mbig-endian -m64'

Yep. You are right.

> 
> 
> From: Cédric Le Goater <clg at fr.ibm.com>
> Subject: [PATCH] add a skiboot rpm spec file
> Date: Tue, 01 Dec 2015 14:02:50 +0100
> MIME-Version: 1.0
> Content-Type: text/plain; charset=UTF-8
> Content-Transfer-Encoding: 8bit
> 
> This spec file is based on :  
> 
>      https://hegdevasant.fedorapeople.org/opal-prd/v4/opal-prd.spec
> 
> in which a new 'opal-firmware' package was added. It contains a
> skiboot.lid and is generated as a noarch package.
> 

Patch looks good. Few minor comments.


> Signed-off-by: Cédric Le Goater <clg at fr.ibm.com>
> ---
> 
>  skiboot.spec |  111 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
>  1 file changed, 111 insertions(+)
> 
> Index: skiboot.git/skiboot.spec
> ===================================================================
> --- /dev/null
> +++ skiboot.git/skiboot.spec
> @@ -0,0 +1,111 @@
> +Name:		opal-prd
> +Version:	5.1.12
> +Release:	1%{?dist}
> +Summary:	OPAL Processor Recovery Diagnostics Daemon
> +
> +Group:		System Environment/Daemons
> +License:	ASL 2.0
> +URL:		http://github.com/open-power/skiboot
> +ExclusiveArch:	ppc64le
> +
> +BuildRequires:	systemd
> +
> +Requires:	systemd
> +
> +Source0:	https://github.com/open-power/skiboot/archive/skiboot-%{version}.tar.gz
> +Source1:	opal-prd.socket
> +Source2:	opal-prd.service
> +
> +%description
> +This package provides a daemon to load and run the OpenPower firmware's
> +Processor Recovery Diagnostics binary. This is responsible for run time
> +maintenance of OpenPower Systems hardware.
> +
> +
> +%package -n	opal-utils
> +Summary:	OPAL firmware utilities
> +Group:		Applications/System
> +
> +%description -n opal-utils
> +This package contains utility programs.
> +The 'gard' utility, can read, parse and clear hardware gard partitions
> +on OpenPower platforms.

Please add description for other tools as well.

> +
> +%package -n     opal-firmware
> +Summary:        OPAL firmware
> +BuildArch:      noarch
> +
> +%description -n opal-firmware
> +OPAL firmware, aka skiboot, loads the bootloader and provides runtime
> +services to the OS (Linux) on IBM Power and Open Power systems.

s/Open Power/OpenPower/ ?

-Vasant



More information about the Skiboot mailing list