ltib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Ltib] Problem building u-boot


From: Stuart Hughes
Subject: Re: [Ltib] Problem building u-boot
Date: Fri, 28 May 2010 18:02:43 +0100
User-agent: Thunderbird 2.0.0.16 (X11/20080707)

Hi Todd,

address@hidden wrote:
> I very much appreciate your help.  I'm still stuck though.
> 
> Does the first line in /u-boot-1.3.3-lpc32xx.spec.in/
> *# template = u-boot-common.tmpl*
> cause the u-boot-common.tmpl script to be run somehow?  It looks like
> the preamble down to the prep part of my .spec file are the same as
> the /u-boot-1.3.3-lpc32xx.spec.in file except for the first line./
> /
> /

1. When ltib runs, it works out that you want to build
u-boot-1.3.3-lpc32xx it looks for either u-boot-1.3.3-lpc32xx.spec or
u-boot-1.3.3-lpc32xx.spec.in (if not found).

2. It parse the .spec.in and it concatenates it with named .tmpl and
puts .spec into the tmp directory of your ltib instance.

3. The builder uses the auto-created tmp/u-boot-1.3.3-lpc32xx.spec


> /Should I add the first line, # template = u-boot-common.tmpl, to my
> spec file and delete the stuff in my spec file under the %prep section./
> /

Yes, make it like the example I pointed you too.  In the .spec.in you
need to name the template (# template = u-boot-common.tmpl) and then
list only the stuff upto and including the %prep clauses.  The %build
and other sections are in the common .tmpl part.  You don't need to
touch this.


> /
> /Another question: Where
> does: /rpm/BUILD/u-boot-1.3.3/board/*m9000/Makefile* come from. I didn't
> put it there./
> /

Not sure,  but I guess the 'make config' part created it.


> /
> /
> /
> /*_HERE'S MY .SPEC FILE_*/
[snip]

All you need to do it to rename it from xxx.spec to xxx.spec.in and make
it look like this:

# template = u-boot-common.tmpl
%define pfx /opt/ltib/rootfs/%{_target_cpu}

Summary         : Universal Bootloader firmware
Name            : u-boot
Version         : 1.3.3
Release         : 1
License         : GPL
Vendor          : Utility Systems, Inc.
Packager        : Jeff Wittrock
Group           : Applications/System
Source          : u-boot-1.3.3.tar.bz2
Patch1          : u-boot-1.3.3-m9000.patch
BuildRoot       : %{_tmppath}/%{name}
Prefix          : %{pfx}

%Description
%{summary}

This specfile creates u-boot 1.3.3 for the Utility Systems, Inc. Model
9000 DFR.

%Prep
%setup -n u-boot-1.3.3
%patch1 -p1


Regards, Stuart



reply via email to

[Prev in Thread] Current Thread [Next in Thread]