[oe-users] How to create bitbake project for trivial package

michael at michaelshiloh.com michael at michaelshiloh.com
Sat Feb 10 12:32:50 UTC 2007




On Sat, 10 Feb 2007, Marcin Juszkiewicz wrote:

> Dnia sobota, 10 lutego 2007, michael at michaelshiloh.com napisa³:
>
>>> SRC_URI = "file://foo.c \
>>>           file://Makefile"
>
>> With the changes you suggest I got further, but nothing gets copied
>> into the work directories. Can you spot another problem?
>
>> $ cat ../org.openembedded.dev/packages/foo/foo_0.1.bb
>
>> PR = "r0"
>
> PR = "r0" is default - remove from recipe
>
>> SRC_URI = "file://foo.c \
>>             file://Makefile"
>
> S = "${WORKDIR}" and probably do_compile will be not needed
>
>> do_compile() {
>>      make
>>      }
>
> s/make/oe_runmake

I've been reading more about bitbake and openembedded (you guys sure wrote a
lot of excellent documentation!) and I learned how to turn on debugging and
verbose, and I think now I see the problem:

   $ bitbake  -b ../org.openembedded.dev/packages/foo/foo_0.1.bb -c build -D -v
   DEBUG: CONF ...
   NOTE: package foo-0.1: started
   DEBUG: Executing task do_unpack
   NOTE: package foo-0.1-r0: task do_unpack: started
   NOTE: Unpacking /usr/local/openembedded/build/tmp/work/armv4t-linux/foo-0.1-r0
   to /usr/local/openembedded/build/tmp/work/armv4t-linux/foo-0.1-r0/
   cp: cannot copy a directory,
   `/usr/local/openembedded/build/tmp/work/armv4t-linux/foo-0.1-r0', into itself,
   `/usr/local/openembedded/build/tmp/work/armv4t-linux/foo-0.1-r0/./foo-0.1-r0'
   NOTE: Task failed:

Aha! It seems to think that the source directory for the files is my work directory.

Michael


More information about the Openembedded-users mailing list