Building customised packages for including into project

Dileep Raj - February 20, 2012

Hi,

I am creating my own recipe for a custom open source package(Ex: spell) in MVL6. While I am building the recipe individually it fails me at do_install stage if i enable the inherit auto tools option in my recipe file. Without auto tools it  work's fine but could see that the package is not added to my file system finally.

Here is my recipe file:

cat collections/custom/spell_1.0.bb

HOMEPAGE

Is there something that I can add to my recipe to make it build successful with auto tools option.

Thanks,

Dileep.

Share this

Comments

Building customised packages to include in my project

Hi,

I am creating my own recipe for a custom open source package(Ex:
spell) in MVL6. While I am building the recipe individually it fails me
at do_install stage if i enable the inherit auto tools option in my
recipe file. Without auto tools it  work's fine but could see that the
package is not added to my file system finally.

Here is my recipe file:

[celestial@localhost mytestproject]$ cat collections/custom/spell/spell_1.0.bb
DESCRIPTION = "An autoconf based spell project"
PR = "r0"
LICENSE = "GPLv2"

SRC_URI = "http://ftp.gnu.org/gnu/spell/spell-${PV}.tar.gz"
#SRC_URI = "git://path/to/git/repository;protocol=ssh"
#SRC_URI = "file:///home/celestial/Desktop/spell-1.0.tar.gz"

# Set this to the appropriate path if the sources as referenced in SRC_URI
# will result in a path other than <packagename>-<packageversion>/ after the
# unpack task.
S = "${WORKDIR}/spell-${PV}"
inherit autotools

[celestial@localhost mytestproject]$ bitbake spell
Loading cache: 100% |########################################################################################| Time: 00:00:01
Loaded 1012 entries from dependency cache.
Parsing recipes: 100% |######################################################################################| Time: 00:00:01
Parsing of 999 .bb files complete (995 cached, 4 parsed). 1014 targets, 30 skipped, 4 masked, 0 errors.
NOTE: Resolving any missing task queue dependencies
NOTE: Preparing runqueue
NOTE: Executing RunQueue Tasks
NOTE: Running task 248 of 368 (ID: 8, /home/celestial/mytestproject/collections/custom/spell/spell_1.0.bb, do_compile)
NOTE: package spell-1.0-r0: task do_compile: Started
NOTE: package spell-1.0-r0: task do_compile: Succeeded
NOTE: Running task 249 of 368 (ID: 9, /home/celestial/mytestproject/collections/custom/spell/spell_1.0.bb, do_install)
NOTE: package spell-1.0-r0: task do_install: Started
ERROR: Function 'do_install' failed (see /home/celestial/mytestproject/tmp/work/armv7a-mv-linux/spell-1.0-r0/temp/log.do_install.26661 for further information)
ERROR: Logfile of failure stored in: /home/celestial/mytestproject/tmp/work/armv7a-mv-linux/spell-1.0-r0/temp/log.do_install.26661
Log data follows:
 | NOTE: package spell-1.0-r0: task do_install: started
 | ERROR: Function 'do_install' failed (see /home/celestial/mytestproject/tmp/work/armv7a-mv-linux/spell-1.0-r0/temp/log.do_install.26661 for further information)
 | NOTE: package spell-1.0-r0: task do_install: failed
 | + cd /home/celestial/mytestproject/tmp/work/armv7a-mv-linux/spell-1.0-r0/spell-1.0
 | + do_install
 | ++ find /home/celestial/mytestproject/tmp/work/armv7a-mv-linux/spell-1.0-r0/spell-1.0/ -name '*.pc' -type f
 | + autotools_do_install
 | + autotools_base_do_install
 | + oe_runmake 'mkinstalldirs=mkdir -p' DESTDIR=/home/celestial/mytestproject/tmp/work/armv7a-mv-linux/spell-1.0-r0/image install
 | + '[' xmake = x ']'
 | + oenote make 'mkinstalldirs=mkdir -p' DESTDIR=/home/celestial/mytestproject/tmp/work/armv7a-mv-linux/spell-1.0-r0/image install
NOTE: package spell-1.0-r0: task do_install: Failed
ERROR: Task 9 (/home/celestial/mytestproject/collections/custom/spell/spell_1.0.bb, do_install) failed with exit code '1'
ERROR: '/home/celestial/mytestproject/collections/custom/spell/spell_1.0.bb' failed

Is there something that I can add to my recipe to make it build successful with auto tools option.

Thanks,

Dileep.