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 <[email protected]> wrote: > From: bifferos <[email protected]> > Subject: [coreboot] libpayload sample program > To: [email protected] > Date: Sunday, 16 May, 2010, 10:59 > > Hello all, > > When attempting to compile the libpayload sample program I > get the following error: > > r...@cent:/home/wrt/svn/lp/submit# svn co > svn://coreboot.org/coreboot/trunk/payloads/libpayload > Checked out revision 5555. > r...@cent:/home/wrt/svn/lp/submit# cd libpayload/ > r...@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'. > r...@cent:/home/wrt/svn/lp/submit/libpayload# make > r...@cent:/home/wrt/svn/lp/submit/libpayload# cd sample/ > r...@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: [email protected] > http://www.coreboot.org/mailman/listinfo/coreboot > -- coreboot mailing list: [email protected] http://www.coreboot.org/mailman/listinfo/coreboot

