[oe-users] How to create bitbake project for trivial package
michael at michaelshiloh.com
michael at michaelshiloh.com
Sat Feb 10 10:59:56 UTC 2007
On Sat, 10 Feb 2007, Koen Kooi wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> michael at michaelshiloh.com schreef:
>> Hi,
>>
>> I'm just starting out with OpenEmbedded and I'm trying to create my own
>> trivial application.
>>
>> I've been helped a lot by the manual and the various tutorials on the wiki,
>> for which I thank you.
>>
>> For my trivial first project, I have only two files, for now:
>>
>> $ find ../org.openembedded.dev/packages/foo
>> ../org.openembedded.dev/packages/foo
>> ../org.openembedded.dev/packages/foo/foo-0.1
>> ../org.openembedded.dev/packages/foo/foo-0.1/foo.c
>> ../org.openembedded.dev/packages/foo/foo-0.1/Makefile
>
> looks ok
>
>> ../org.openembedded.dev/packages/foo/foo-0.1.bb
>
> mv foo-0.1.bb foo_0.1.bb
>
>> How do I indicate that these two files in the recipe?
>>
>> I've tried
>>
>> SRC_URI = "file://foo-0.1/foo.c"
>> SRC_URI += "file://foo-0.1/Makefile
>
> SRC_URI = "file://foo.c \
> file://Makefile"
>
> regards,
>
> Koen
>
Hi Koen,
With the changes you suggest I got further, but nothing gets copied into the
work directories. Can you spot another problem?
$ find ../org.openembedded.dev/packages/foo
../org.openembedded.dev/packages/foo
../org.openembedded.dev/packages/foo/foo-0.1
../org.openembedded.dev/packages/foo/foo-0.1/foo.c
../org.openembedded.dev/packages/foo/foo-0.1/Makefile
../org.openembedded.dev/packages/foo/foo_0.1.bb
$ cat ../org.openembedded.dev/packages/foo/foo_0.1.bb
PR = "r0"
SRC_URI = "file://foo.c \
file://Makefile"
do_compile() {
make
}
$ bitbake -b ../org.openembedded.dev/packages/foo/foo_0.1.bb
NOTE: package foo-0.1: started
NOTE: package foo-0.1-r0: task do_install: started
NOTE: package foo-0.1-r0: task do_install: completed
NOTE: package foo-0.1-r0: task do_package: started
NOTE: package foo-0.1-r0: task do_package: completed
NOTE: package foo-0.1-r0: task do_package_write: started
NOTE: Not creating empty archive for foo-dbg-0.1-r0
NOTE: Not creating empty archive for foo-0.1-r0
NOTE: Not creating empty archive for foo-doc-0.1-r0
NOTE: Not creating empty archive for foo-dev-0.1-r0
NOTE: Not creating empty archive for foo-locale-0.1-r0
NOTE: package foo-0.1-r0: task do_package_write: completed
NOTE: package foo-0.1-r0: task do_populate_staging: started
NOTE: package foo-0.1-r0: task do_populate_staging: completed
NOTE: package foo-0.1-r0: task do_build: started
NOTE: package foo-0.1-r0: task do_build: completed
NOTE: package foo-0.1: completed
Build statistics:
Attempted builds: 1
$ bitbake -b ../org.openembedded.dev/packages/foo/foo_0.1.bb -c compile -f
NOTE: package foo-0.1: started
NOTE: package foo-0.1-r0: task do_compile: started
NOTE: package foo-0.1-r0: task do_compile: completed
NOTE: package foo-0.1: completed
Build statistics:
Attempted builds: 1
$ find tmp/work/armv4t-linux/foo*
tmp/work/armv4t-linux/foo-0.1-r0
tmp/work/armv4t-linux/foo-0.1-r0/image
tmp/work/armv4t-linux/foo-0.1-r0/foo-0.1
tmp/work/armv4t-linux/foo-0.1-r0/temp
tmp/work/armv4t-linux/foo-0.1-r0/temp/run.do_install.15963
tmp/work/armv4t-linux/foo-0.1-r0/temp/log.do_install.15963
tmp/work/armv4t-linux/foo-0.1-r0/temp/run.do_stage.15963
tmp/work/armv4t-linux/foo-0.1-r0/temp/log.do_stage.15963
tmp/work/armv4t-linux/foo-0.1-r0/temp/run.do_compile.15997
tmp/work/armv4t-linux/foo-0.1-r0/temp/log.do_compile.15997
tmp/work/armv4t-linux/foo-0.1-r0/install
tmp/work/armv4t-linux/foo-0.1-r0/install/foo-dbg
tmp/work/armv4t-linux/foo-0.1-r0/install/foo
tmp/work/armv4t-linux/foo-0.1-r0/install/foo-doc
tmp/work/armv4t-linux/foo-0.1-r0/install/foo-dev
tmp/work/armv4t-linux/foo-0.1-r0/install/foo-locale
More information about the Openembedded-users
mailing list