How to use kernel source that reside in outside of OE

unsik Kim donari75 at gmail.com
Thu Jan 22 02:56:59 UTC 2009


Hello all?

I want to develop kernel outside from OE for fast debugging and also
want to build complete image by using that kernel source in OE
environment.

I typically use nfsroot(generated by OE) for target in development.

Typically,  I debug or write some kernel code (outside from OE) and
just install them to nfsroot.

My bb file for linux kernel is flowing. (just ${S} variable directs
outside kernel source)

---

SECTION = "kernel"
DESCRIPTION = "Linux kernel for the mGine board"
LICENSE = "GPL"
PR = "r0"

inherit kernel

SRC_URI = ""

# direct linux-2.6 unified stable branch git
S = ${WORKDIR}/../../../../../../linux-2.6-stable

COMPATIBLE_HOST = 'arm.*-linux'
ARCH = "arm"

COMPATIBLE_MACHINE = "mgpmp"

# assume already configured
do_configure() {
	:
}

# just work-around errors
do_package_write_ipk() {
	:
}

---

As you see this bb file doesn't generate ipk package.

If I remove do_package_write_ipk null function, following error occurs,

---

NOTE: Running task 486 of 490 (ID: 17,
/home/uskim/work/poky/meta/packages/linux/linux-mgpmp_2.6.bb,
do_package_write_ipk)
NOTE: package linux-mgpmp-2.6: started
NOTE: package linux-mgpmp-2.6-r0: task do_package_write_ipk: started
*** Error: CONTROL/control is missing field Source
The Source field contain the URL's or filenames of the source code and
any patches
used to build this package.  Either gnu-style tarballs or Debian
source packages
are acceptable.  Relative filenames may be used if they are
distributed in the same
directory as the .ipk file.

opkg-build: Please fix the above errors and try again.
NOTE: Task failed: opkg-build execution failed
NOTE: package linux-mgpmp-2.6-r0: task do_package_write_ipk: failed
ERROR: TaskFailed event exception, aborting
NOTE: package linux-mgpmp-2.6: failed
ERROR: Build of
/home/uskim/work/poky/meta/packages/linux/linux-mgpmp_2.6.bb
do_package_write_ipk failed
ERROR: Task 17 (/home/uskim/work/poky/meta/packages/linux/linux-mgpmp_2.6.bb,
do_package_write_ipk) failed
NOTE: Tasks Summary: Attempted 485 tasks of which 472 didn't need to
be rerun and 1 failed.
ERROR: '/home/uskim/work/poky/meta/packages/linux/linux-mgpmp_2.6.bb' failed
NOTE: build 200901221114: completed

---

WORKDIR/tmp directory contais,

----
[uskim at sst-dev temp]$ ls
log.do_compile.4545                  run.do_compile.4545
log.do_configure.4541                run.do_configure.4541
log.do_deploy.6853                   run.do_deploy.6853
log.do_install.6536                  run.do_install.6536
log.do_sizecheck.6534                run.do_sizecheck.6534
log.do_stage.6854                    run.do_stage.6854
log.populate_staging_postamble.6854  run.populate_staging_postamble.6854
log.populate_staging_preamble.6854   run.populate_staging_preamble.6854
log.qa_package                       run.staging_helper.4531
log.staging_helper.4531
----

If I use SRCURI = "", run.do_package_write,
run.staging_package_installer, run.staging_packager doesn't generated.

How can I solve this problem ?
I want to use SRCURI = "" and also want to generate ipk for complete images.

Any help will be really appreciated.

unsik Kim




More information about the Openembedded-users mailing list