ltib
[Top][All Lists]
Advanced

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

Re: [Ltib] Problem building u-boot


From: sampsont
Subject: Re: [Ltib] Problem building u-boot
Date: Fri, 28 May 2010 15:13:53 +0000 (UTC)

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.

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.




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


HERE'S MY .SPEC FILE
%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

%Build
export PATH=$UNSPOOF_PATH
PKG_U_BOOT_CONFIG_TYPE=m9000_config
make distclean CROSS_COMPILE=powerpc-603e-linux-gnu-
make CROSS_COMPILE=powerpc-603e-linux-gnu- $PKG_U_BOOT_CONFIG_TYPE
make CROSS_COMPILE=powerpc-603e-linux-gnu-

%Install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT/%{pfx}/boot
cp u-boot.bin $RPM_BUILD_ROOT/%{pfx}/boot
cp u-boot $RPM_BUILD_ROOT/%{pfx}/boot
mkdir -p $RPM_BUILD_ROOT/%{pfx}/usr/src/u-boot
cp -a include $RPM_BUILD_ROOT/%{pfx}/usr/src/u-boot


%Clean
rm -rf $RPM_BUILD_ROOT

%Files
%defattr(-,root,root)
%{pfx}/*



----- Original Message -----
From: "Stuart Hughes" <address@hidden>
To: address@hidden
Cc: "ltib" <address@hidden>
Sent: Friday, May 28, 2010 4:34:12 AM GMT -05:00 US/Canada Eastern
Subject: Re: [Ltib] Problem building u-boot

Without seeing your code, it's hard to tell.  However:

1.  --target ppc is fine in this context as it's rpm's notion of the architecture.

2. make: ppc_8xx-gcc command not found

I think this is because you're using an old style u-boot spec file with a newer u-boot.  I think it's because CROSS_COMPILE is not defined at this point and so it's defaulting the cross compiler which is not one in your path.  You could either change

make distclean
to
make distclean CROSS_COMPILE=powerpc-603e-linux-gnu-

NOTE: you need to add CROSS_COMPILE=powerpc-603e-linux-gnu-
           to all other lines that invoke 'make'

or convert your spec to a new (spoofed) style that uses the common template (take a look at u-boot-1.3.3-lpc32xx.spec.in for example)

3. unterminated #ifndef  Not sure.


Bottom line, I think you should change the u-boot spec file to the newer style that uses the common template

Regards, Stuart

address@hidden wrote:
I don't expect anyone to do my work for me but I'm stumped.  If anyone sees something obvious, I'd sure appreciate it!

I'm having problems getting u-boot to compile.  I'm updating an old Freescale BSP.  I merged the custom files from the old to the new.  When I run ltib, I get the following output.

A couple things I notice are:
make: ppc_8xx-gcc: Command not found  I DON'T KNOW HOW THIS IS GETTING RUN.  MY CUSTOM COMPILER IS: /opt/OSELAS.Toolchain-1.1.1/powerpc-603e-linux-gnu/gcc-4.1.2-glibc-2.5-kernel-2.6.18.
 --target ppc --define '_unpackaged_files_terminate_build 0' --define '_target_cpu ppc
BOTH OF THESE ARE ppc. Should one of these be powerpc?
/home/developer/projects/ltib-10-1-1a-sv/rpm/BUILD/u-boot-1.3.3/include/configs/m9000.h:33:1: error: unterminated #ifndef
I THINK THIS ERROR IS PROBABLY MISLEADING AND IS A RESULT OF ANOTHER PROBLEM.

Environment: Ubuntu 9.10, MPC5200, ltib-10-1-1a



Processing: u-boot-1.3.3-m9000
================================
get_spec(u-boot-1.3.3-m9000)
spec files: [ /home/developer/projects/ltib-10-1-1a-sv/dist/lfs-5.1/u-boot/u-boot-1.3.3-m9000.spec,  ]
pfx=/opt/ltib/rootfs/%{_target_cpu}
files=
%defattr(-,root,root)
%{pfx}/*
prep=
%setup -n u-boot-1.3.3
%patch1 -p1


group=Applications/System
buildroot=%{_tmppath}/%{name}
summary=Universal Bootloader firmware
install=rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT/%{pfx}/boot
cp u-boot.bin $RPM_BUILD_ROOT/%{pfx}/boot
cp u-boot $RPM_BUILD_ROOT/%{pfx}/boot
mkdir -p $RPM_BUILD_ROOT/%{pfx}/usr/src/u-boot
cp -a include $RPM_BUILD_ROOT/%{pfx}/usr/src/u-boot



version=1.3.3
name=u-boot
release=1
packager=Jeff Wittrock
license=GPL
build=export PATH=$UNSPOOF_PATH
PKG_U_BOOT_CONFIG_TYPE=m9000_config
make distclean
make $PKG_U_BOOT_CONFIG_TYPE
make CROSS_COMPILE=powerpc-603e-linux-gnu-


sources=Source          : u-boot-1.3.3.tar.bz2

pkg_dir_name=u-boot-1.3.3
patches=Patch1          : u-boot-1.3.3-m9000.patch

vendor=Utility Systems, Inc.
prefix=%{pfx}
Build path taken because: directory build, build key set, no prebuilt rpm, 

rpmbuild --dbpath /home/developer/projects/ltib-10-1-1a-sv/rootfs//var/lib/rpm --target ppc --define '_unpackaged_files_terminate_build 0' --define '_target_cpu ppc' --define '__strip strip' --define '_topdir /home/developer/projects/ltib-10-1-1a-sv/rpm' --define '_prefix /usr' --define '_tmppath /home/developer/projects/ltib-10-1-1a-sv/tmp' --define '_rpmdir /home/developer/projects/ltib-10-1-1a-sv/rpm/RPMS'  --define '_mandir /usr/share/man' --define '_sysconfdir /etc' --define '_localstatedir /var' -bc --short-circuit  /home/developer/projects/ltib-10-1-1a-sv/dist/lfs-5.1/u-boot/u-boot-1.3.3-m9000.spec
Building target platforms: ppc
Building for target ppc
Executing(%build): /bin/sh -e /home/developer/projects/ltib-10-1-1a-sv/tmp/rpm-tmp.15357
+ umask 022
+ cd /home/developer/projects/ltib-10-1-1a-sv/rpm/BUILD
+ cd u-boot-1.3.3
+ export PATH=/home/developer/projects/ltib-10-1-1a-sv/bin:/opt/ltib/usr/bin:/opt/OSELAS.Toolchain-1.1.1/powerpc-603e-linux-gnu/gcc-4.1.2-glibc-2.5-kernel-2.6.18/bin:/usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/X11R6/bin
+ PKG_U_BOOT_CONFIG_TYPE=m9000_config
+ make distclean
make: ppc_8xx-gcc: Command not found
+ make m9000_config
Configuring for m9000 board...
+ make CROSS_COMPILE=powerpc-603e-linux-gnu-
Generating include/autoconf.mk.dep
In file included from /home/developer/projects/ltib-10-1-1a-sv/rpm/BUILD/u-boot-1.3.3/include/config.h:3,
                 from include/common.h:35:
/home/developer/projects/ltib-10-1-1a-sv/rpm/BUILD/u-boot-1.3.3/include/configs/m9000.h:33:1: error: unterminated #ifndef
Generating include/autoconf.mk
In file included from /home/developer/projects/ltib-10-1-1a-sv/rpm/BUILD/u-boot-1.3.3/include/config.h:3,
                 from include/common.h:35:
/home/developer/projects/ltib-10-1-1a-sv/rpm/BUILD/u-boot-1.3.3/include/configs/m9000.h:33:1: error: unterminated #ifndef
for dir in tools examples api_examples ; do make -C $dir _depend ; done
make[1]: Entering directory `/home/developer/projects/ltib-10-1-1a-sv/rpm/BUILD/u-boot-1.3.3/tools'
In file included from /home/developer/projects/ltib-10-1-1a-sv/rpm/BUILD/u-boot-1.3.3/include/config.h:3,
                 from environment.c:28:
MORE OF THE SAME...

_______________________________________________ LTIB home page: http://ltib.org Ltib mailing list address@hidden http://lists.nongnu.org/mailman/listinfo/ltib

reply via email to

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