Hi,
I want to compile an application and install it on the DM7020.
What I have:
-> source code of my application...
-> My PC with Fedora Core 3 + all the enviroment ready and working to create a complete DM7020 image (nfi), using bitbake + OE.DB + ...
-> Of course, my DreamBox... 7020
Can some one please, explain me How to compile (on my PC) a package (cross-compile) using bitbake ... or any other tool for 7020?
By example, before to try with a new package, I decided to try with an included package called "htun"
Attached you will find:
=> htun-xx-xx.BB (included in the OE.DB, original)
Some config files:
----------------------------------------------
=> /mnt/linux2/stuff/build/env.source
export BBPATH="${OE_BASE}/org.openembedded.dreambox/:${OE_BASE}/bb/:${OE_BASE}/build/"
PATH=$PATH:${OE_BASE}/bb/bin:/mnt/linux2/stuff/build/tmp/cross/bin
export PATH
export LD_LIBRARY_PATH=
export LANG=C
----------------------------------------------
=> /mnt/linux2/stuff/build/conf/local.conf
DL_DIR = "/mnt/linux2/stuff/sources"
OE_BASE = "/mnt/linux2/stuff"
BBFILES = "${OE_BASE}/org.openembedded.dreambox/packages/*/*.bb"
BBMASK = "(nslu.*|.*-sdk.*)"
PREFERRED_PROVIDERS += " virtual/${TARGET_PREFIX}gcc-initial:gcc-cross-initial"
PREFERRED_PROVIDERS += " virtual/${TARGET_PREFIX}gcc:gcc-cross"
PREFERRED_PROVIDERS += " virtual/${TARGET_PREFIX}g++:gcc-cross"
MACHINE = "dm7020"
TARGET_OS = "linux"
DISTRO = "opendreambox-1.2"
CACHE = "/mnt/linux2/stuff/cache/oe-cache.${USER}"
CVS_TARBALL_STASH = "http://www.treke.net/oe/source/"
SOURCEFORGE_MIRROR = "http://puzzle.dl.sourceforge.net/sourceforge"
----------------------------------------------
What I did:
execute -> bitbake htun
The result was:
[root@localhost build]# bitbake htun
NOTE: Using cache in '/mnt/linux2/stuff/cache/oe-cache.root'
NOTE: Handling BitBake files: | (2592/2593) [99 %]ERROR: inherit while parsing / mnt/linux2/stuff/org.openembedded.dreambox/packages/httptunnel/httptunnel_3.3.bb
NOTE: Parsing finished. 0 cached, 2466 parsed, 88 skipped, 38 masked.
NOTE: build 200508161211: started
OE Build Configuration:
TARGET_ARCH = "powerpc"
TARGET_OS = "linux"
MACHINE = "dm7020"
DISTRO = "opendreambox"
TARGET_FPU = "soft"
NOTE: package htun-0.9.5: started
NOTE: package htun-0.9.5-r0: task do_fetch: started
NOTE: package htun-0.9.5-r0: task do_fetch: completed
NOTE: package htun-0.9.5-r0: task do_compile: started
ERROR: function do_compile failed
ERROR: see log in /mnt/linux2/stuff/build/tmp/work/htun-0.9.5-r0/temp/log.do_com pile.4834
NOTE: Task failed: /mnt/linux2/stuff/build/tmp/work/htun-0.9.5-r0/temp/log.do_co mpile.4834
NOTE: package htun-0.9.5-r0: task do_compile: failed
ERROR: TaskFailed event exception, aborting
NOTE: package htun-0.9.5: failed
ERROR: Build of htun failed
[root@localhost build]#
OK... lets see the LOG file...
-------------------------------------------------------
=> /mnt/linux2/stuff/build/tmp/work/htun-0.9.5-r0/temp/log.do_compile.4834
NOTE: make
gcc -I../include -I. -g -D_REENTRANT -c y.tab.c
gram.y:306: error: conflicting types for 'die_error'
gram.y:205: error: previous implicit declaration of 'die_error' was here
gram.y:323: error: conflicting types for 'yyerror'
y.tab.c:1684: error: previous implicit declaration of 'yyerror' was here
gram.y:328: error: conflicting types for 'yy_error'
gram.y:199: error: previous implicit declaration of 'yy_error' was here
gram.y:333: error: conflicting types for 'set_ip'
gram.y:154: error: previous implicit declaration of 'set_ip' was here
gram.y:347: warning: static declaration of 'get_answer' follows non-static declaration
gram.y:122: warning: previous implicit declaration of 'get_answer' was here
gram.y:357: warning: static declaration of 'set_base64_user_pass' follows non-static declaration
gram.y:212: warning: 'set_base64_user_pass' declared inline after being called
gram.y:212: warning: previous implicit declaration of 'set_base64_user_pass' was here
make: *** [y.tab.o] Error 1
FATAL: oe_runmake failed
-------------------------------------------------------
I am trying to find some documentation (which files are nedded... which parameters should be use to create the .BB file... ) ... I know how to compile in my FC3... How to translate it to do the same using the .BB files?
Thank's in advance...
Picc2001