Hi, all~

Always thanks for your help. :-)

 

My help message is long…

Plz… plz help me !!!!

 

I want adding my application to openmoko-Image.

(current my application is very simple.)

 

I can see “hello world” using qemu.

Because I applied helloworld-application setup.

I referred to below URL.

(http://wiki.openmoko.org/wiki/Application_Development_Crash_Course#Your_Fir
st_Application )

 

So, I tried adding my application.

But compile was failed. 

 

 

# my directory structure. ###

$HOME

 +$OMDIR (contains the official openmoko tree)

             +local/

                          +packages/

                                       +test/

                                                     +test.bb

                                                     +README.txt

+inc/

+ test1.h

+test2.h

+test3.h

+test1/

+ test1.c

+test2/

+ test2.c

+test3/

+ test3.c

 

 

# my source ###

Main() function and func1() function located in test1.c.

func2() function located in test2.c.

func3()function located in test3.c

main() function call func1().

func1() function call func2().

func2() function call func3().

It’s simple program.

Main() -> func1() -> func2 -> func3()

 

# test.bb file ###

DESCRIPTION = "A killer hello world application"

AUTHOR = "JIN"

HOMEPAGE = ""

SECTION = "console/applications"

PRIORITY = "optional"

LICENSE = "MIT"

#DEPENDS = ""

#RDEPENDS = ""

#RRECOMMENDS = ""

#RCONFLICTS = ""

#SRCDATE = "20080211"

#PV = "0.1"

#PR = "r0"

SRC_URI = " ${WORKDIR}/test1/test1.c \

${WORKDIR}/test2/test2.c \

${WORKDIR}/test3/test3.c \

${WORKDIR}/README.txt "

 

S = "${WORKDIR}/test/"

 

do_compile() {

${CC} ${CFLAGS} ${LDFLAGS} ${WORKDIR}/test1/test1.c -o test

${CC} ${CFLAGS} ${LDFLAGS} ${WORKDIR}/test2/test2.c -o test

${CC} ${CFLAGS} ${LDFLAGS} ${WORKDIR}/test3/test3.c -o test

}

 

do_install() {

        install -m 0755 -d ${D}${bindir} ${D}${docdir}/test

        install -m 0755 ${S}/test ${D}${bindir}

        install -m 0644 ${WORKDIR}/README.txt ${D}${docdir}/test

}

 

 

 

I tried build (using make build-package-myhelloworld command).

But error occurred.

 

I guess my test.bb file was wrong…

How can I modify test.bb file ?

 

# error log ###

[EMAIL PROTECTED]:~/moko$ make build-package-test

 

( . ./setup-env && cd build && bitbake -c build test )

ERROR: BBFILE_PATTERN_upstream not defined

ERROR: BBFILE_PATTERN_local not defined

NOTE: Handling BitBake files: - (5036/5039) [99 %]ERROR: opening
/home/rcnzznag/moko/oe/packages/*/*.bb: [Errno 2] No such file or
directory: '/home/rcnzznag/moko/oe/packages/*/*.bb'

NOTE: Handling BitBake files: \ (5039/5039) [100 %]

NOTE: Parsing finished. 0 cached, 4805 parsed, 233 skipped, 0 masked.

NOTE: build 200802121748: started

 

OE Build Configuration:

BB_VERSION     = "1.8.10"

OE_REVISION    = "<unknown>"

TARGET_ARCH    = "arm"

TARGET_OS      = "linux-gnueabi"

MACHINE        = "fic-gta01"

DISTRO         = "openmoko"

DISTRO_VERSION = "P1-Snapshot-20080212"

TARGET_FPU     = "soft"

 

NOTE: Resolving any missing task queue dependencies

NOTE: preferred version 2.5 of glibc not available (for item virtual/arm-
angstrom-linux-gnueabi-libc-for-gcc)

NOTE: Preparing runqueue

NOTE: Executing runqueue

NOTE: Running task 211 of 270 (ID: 10,
/home/rcnzznag/moko/local/packages/test/test.bb, do_fetch)

NOTE: package test-1.0: started

NOTE: package test-1.0-r0: task do_fetch: started

ERROR: Error in executing: 

ERROR: Exception:<class 'bb.MalformedUrl'>
Message:/home/rcnzznag/moko/build/tmp/work/armv4t-angstrom-linux-
gnueabi/test-1.0-r0/test1/test1.c

ERROR: Printing the environment of the function

ERROR: Error in executing: 

ERROR: Exception:<class 'bb.MalformedUrl'>
Message:/home/rcnzznag/moko/build/tmp/work/armv4t-angstrom-linux-
gnueabi/test-1.0-r0/test1/test1.c

ERROR: Printing the environment of the function

ERROR: Build of /home/rcnzznag/moko/local/packages/test/test.bb do_fetch
failed

Traceback (most recent call last):

  File "/home/rcnzznag/moko/bitbake/bin/bitbake", line 134, in <module>

    main()

  File "/home/rcnzznag/moko/bitbake/bin/bitbake", line 131, in main

    cooker.cook()

  File "/home/rcnzznag/moko/bitbake/lib/bb/cooker.py", line 601, in cook

    return self.buildTargets(pkgs_to_build)

  File "/home/rcnzznag/moko/bitbake/lib/bb/cooker.py", line 517, in
buildTargets

    failures = rq.execute_runqueue()

  File "/home/rcnzznag/moko/bitbake/lib/bb/runqueue.py", line 650, in
execute_runqueue

    self.execute_runqueue_internal()

  File "/home/rcnzznag/moko/bitbake/lib/bb/runqueue.py", line 767, in
execute_runqueue_internal

    self.cooker.tryBuild(fn, False)

  File "/home/rcnzznag/moko/bitbake/lib/bb/cooker.py", line 136, in tryBuild

    return self.tryBuildPackage(fn, item, self.configuration.cmd, the_data,
build_depends)

  File "/home/rcnzznag/moko/bitbake/lib/bb/cooker.py", line 109, in
tryBuildPackage

    bb.build.exec_task('do_%s' % task, the_data)

  File "/home/rcnzznag/moko/bitbake/lib/bb/build.py", line 303, in exec_task

    execute(None, task)

  File "/home/rcnzznag/moko/bitbake/lib/bb/build.py", line 292, in execute

    exec_func(item, localdata)

  File "/home/rcnzznag/moko/bitbake/lib/bb/build.py", line 106, in exec_func

    exec_func_python(func, d)

  File "/home/rcnzznag/moko/bitbake/lib/bb/build.py", line 128, in
exec_func_python

    utils.better_exec(comp,g,tmp, bb.data.getVar('FILE',d,1))

  File "/home/rcnzznag/moko/bitbake/lib/bb/utils.py", line 144, in
better_exec

    exec code in context

  File "do_fetch", line 4, in <module>

  File "do_fetch", line 2, in do_fetch

  File "/home/rcnzznag/moko/bitbake/lib/bb/build.py", line 106, in exec_func

    exec_func_python(func, d)

  File "/home/rcnzznag/moko/bitbake/lib/bb/build.py", line 128, in
exec_func_python

    utils.better_exec(comp,g,tmp, bb.data.getVar('FILE',d,1))

  File "/home/rcnzznag/moko/bitbake/lib/bb/utils.py", line 144, in
better_exec

    exec code in context

  File "base_do_fetch", line 61, in <module>

  File "base_do_fetch", line 12, in base_do_fetch

  File "/home/rcnzznag/moko/bitbake/lib/bb/fetch/__init__.py", line 118, in
init

    urldata[url] = FetchData(url, d)

  File "/home/rcnzznag/moko/bitbake/lib/bb/fetch/__init__.py", line 277, in
__init__

    (self.type, self.host, self.path, self.user, self.pswd, self.parm) = bb.
decodeurl(data.expand(url, d))

  File "/home/rcnzznag/moko/bitbake/lib/bb/__init__.py", line 337, in
decodeurl

    raise MalformedUrl(url)

bb.MalformedUrl: /home/rcnzznag/moko/build/tmp/work/armv4t-angstrom-linux-
gnueabi/test-1.0-r0/test1/test1.c

ERROR: Task 10 (/home/rcnzznag/moko/local/packages/test/test.bb, do_fetch)
failed

NOTE: Tasks Summary: Attempted 210 tasks of which 210 didn't need to be
rerun and 1 failed.

ERROR: '/home/rcnzznag/moko/local/packages/test/test.bb' failed

make: *** [build-package-test] 오류 1

[EMAIL PROTECTED]:~/moko$

 

 

 

plz, help me …

 

thanks & best regards. :-)

Reply via email to