[coreboot] libpayload sample program
bifferos
bifferos at yahoo.co.uk
Sun May 16 12:58:40 CEST 2010
I think I worked it out. The whole thing has to be 'installed' before
you can use it. However there is still a bug in the lpgcc script.
There is no guarantee that $CC will have been defined, so the
recursion 'hack' needs to check this:
if [ "$CC" != "" ]; then
b=`basename $CC`
if [ "$b" = "lpgcc" ]; then
CC=""
fi
fi
This fixes it fine, and the sample program then compiles/runs without error.
regards,
Biff.
--- On Sun, 16/5/10, bifferos <bifferos at yahoo.co.uk> wrote:
> From: bifferos <bifferos at yahoo.co.uk>
> Subject: [coreboot] libpayload sample program
> To: coreboot at coreboot.org
> Date: Sunday, 16 May, 2010, 10:59
>
> Hello all,
>
> When attempting to compile the libpayload sample program I
> get the following error:
>
> root at cent:/home/wrt/svn/lp/submit# svn co
> svn://coreboot.org/coreboot/trunk/payloads/libpayload
> Checked out revision 5555.
> root at cent:/home/wrt/svn/lp/submit# cd libpayload/
> root at cent:/home/wrt/svn/lp/submit/libpayload# make
> menuconfig
> # configuration written to .config
> *** End of libpayload configuration.
> *** Execute 'make' to build or try 'make help'.
> root at cent:/home/wrt/svn/lp/submit/libpayload# make
> root at cent:/home/wrt/svn/lp/submit/libpayload# cd sample/
> root at cent:/home/wrt/svn/lp/submit/libpayload/sample# make
> ../bin/lpgcc -Wall -Werror -Os -c -o hello.o hello.c
> basename: missing operand
> Try `basename --help' for more information.
> ../bin/lpgcc: line 52: ../bin/../libpayload.config: No such
> file or directory
> make: *** [hello.o] Error 1
>
>
> Can someone tell me where I get a libpayload.config?
>
> thanks,
> Biff.
>
>
>
>
>
>
> --
> coreboot mailing list: coreboot at coreboot.org
> http://www.coreboot.org/mailman/listinfo/coreboot
>
More information about the coreboot
mailing list