Building SDK using yocto and compile package in .ipk format

Hi All,

I’am trying build SDK using yocto, which will include all the external packages i have
addded e.g libconfig, mosquitto etc.
After building sdk, i want to compile my application software in “ipk” format, which will
be handled by opkg manager, as in ‘openwrt’ environment.

for that i have followed below steps to compile sdk

$ cd yocto/build_bin

$ source …/poky/oe-init-build-env .

$ bitbake mdm9x15-image-minimal -c populate_sdk

am getting below error:

START:==================================================================================================================
/yocto/build_bin$ bitbake mdm9x15-image-minimal -c populate_sdk
Loading cache: 100% |##########################################################################################################| ETA: 00:00:00
Loaded 2148 entries from dependency cache.
Parsing recipes: 100% |########################################################################################################| Time: 00:00:02
Parsing of 1654 .bb files complete (1652 cached, 2 parsed). 2148 targets, 200 skipped, 0 masked, 0 errors.
NOTE: Resolving any missing task queue dependencies

Build Configuration:
BB_VERSION = “1.24.0”
BUILD_SYS = “x86_64-linux”
NATIVELSBSTRING = “Ubuntu-12.04”
TARGET_SYS = “arm-poky-linux-gnueabi”
MACHINE = “swi-mdm9x15”
DISTRO = “poky-swi-ext”
DISTRO_VERSION = “1.7.3”
TUNE_FEATURES = “arm armv7a vfp neon”
TARGET_FPU = “vfp-neon”
meta
meta-yocto
meta-yocto-bsp = “(nobranch):c282df8993828bd7b1d50cfcf637a477eaf481a1”
meta-swiflu = “:”
meta-nodejs = “master:3c2d7b61ba45436c6c62d60555cd91370a7ad1a2”
meta-nodejs-contrib = “master:be99cba0c6fcfb1ba7e85d3446f2a806ae7c3da2”
meta-mangoh = “(nobranch):b58ad3c6a4e4d0f2d563e8af86c46f96f8ba3bb6”
meta-python
meta-networking
meta-oe = “(nobranch):70beecb2716bca1b9dfbc7d6a264233e1f05e82b”
meta-swi
meta-swi-mdm9xxx
meta-swi-mdm9x15 = “master:0f1bf8d6d24d7389168eafead6c2f2bede345d18”
meta-swi-extras
meta-swi-bin = “master:6f65f78f6e8a1801ae7cd424191f3513457e4bbe”
meta-openwrt-master = “:”

NOTE: Preparing runqueue
NOTE: Executing SetScene Tasks
NOTE: Executing RunQueue Tasks
ERROR: Function failed: do_configure (log file is located at /home/onerelysys/Bharath_WorkSpace/legato/build3_yocto/yocto/build_bin/tmp/work/x86_64-nativesdk-pokysdk-linux/nativesdk-autoconf/2.69-r11/temp/log.do_configure.15266)
ERROR: Logfile of failure stored in: /home/onerelysys/Bharath_WorkSpace/legato/build3_yocto/yocto/build_bin/tmp/work/x86_64-nativesdk-pokysdk-linux/nativesdk-autoconf/2.69-r11/temp/log.do_configure.15266
Log data follows:
| DEBUG: Executing python function sysroot_cleansstate
| DEBUG: Python function sysroot_cleansstate finished
| DEBUG: SITE files [‘endian-little’, ‘common-linux’, ‘common-glibc’, ‘bit-64’, ‘x86_64-linux’, ‘common’]
| DEBUG: Executing shell function autotools_preconfigure
| DEBUG: Shell function autotools_preconfigure finished
| DEBUG: Executing python function autotools_copy_aclocals
| DEBUG: Python function autotools_copy_aclocals finished
| DEBUG: Executing shell function do_configure
| ERROR: no configure script found at /home/onerelysys/Bharath_WorkSpace/legato/build3_yocto/yocto/build_bin/tmp/work/x86_64-nativesdk-pokysdk-linux/nativesdk-autoconf/2.69-r11/autoconf-2.69/configure
| WARNING: /home/onerelysys/Bharath_WorkSpace/legato/build3_yocto/yocto/build_bin/tmp/work/x86_64-nativesdk-pokysdk-linux/nativesdk-autoconf/2.69-r11/temp/run.do_configure.15266:1 exit 1 from
| exit 1
| ERROR: Function failed: do_configure (log file is located at /home/onerelysys/Bharath_WorkSpace/legato/build3_yocto/yocto/build_bin/tmp/work/x86_64-nativesdk-pokysdk-linux/nativesdk-autoconf/2.69-r11/temp/log.do_configure.15266)
ERROR: Task 1700 (virtual:nativesdk:/home/onerelysys/Bharath_WorkSpace/legato/build3_yocto/yocto/poky/meta/recipes-devtools/autoconf/autoconf_2.69.bb, do_configure) failed with exit code ‘1’
ERROR: Function failed: do_configure (log file is located at /home/onerelysys/Bharath_WorkSpace/legato/build3_yocto/yocto/build_bin/tmp/work/x86_64-nativesdk-pokysdk-linux/nativesdk-qemu/2.1.0-r0/temp/log.do_configure.15265)
ERROR: Logfile of failure stored in: /home/onerelysys/Bharath_WorkSpace/legato/build3_yocto/yocto/build_bin/tmp/work/x86_64-nativesdk-pokysdk-linux/nativesdk-qemu/2.1.0-r0/temp/log.do_configure.15265
Log data follows:
| DEBUG: Executing python function sysroot_cleansstate
| DEBUG: Python function sysroot_cleansstate finished
| DEBUG: SITE files [‘endian-little’, ‘common-linux’, ‘common-glibc’, ‘bit-64’, ‘x86_64-linux’, ‘common’]
| DEBUG: Executing shell function autotools_preconfigure
| DEBUG: Shell function autotools_preconfigure finished
| DEBUG: Executing python function autotools_copy_aclocals
| DEBUG: Python function autotools_copy_aclocals finished
| DEBUG: Executing shell function do_configure
| sed: can’t read Makefile.target: No such file or directory
| WARNING: /home/onerelysys/Bharath_WorkSpace/legato/build3_yocto/yocto/build_bin/tmp/work/x86_64-nativesdk-pokysdk-linux/nativesdk-qemu/2.1.0-r0/temp/run.do_configure.15265:1 exit 2 from
| sed -i ‘s/-lX11//g’ Makefile.target
| ERROR: Function failed: do_configure (log file is located at /home/onerelysys/Bharath_WorkSpace/legato/build3_yocto/yocto/build_bin/tmp/work/x86_64-nativesdk-pokysdk-linux/nativesdk-qemu/2.1.0-r0/temp/log.do_configure.15265)
ERROR: Task 1756 (virtual:nativesdk:/home/onerelysys/Bharath_WorkSpace/legato/build3_yocto/yocto/poky/meta/recipes-devtools/qemu/qemu_2.1.0.bb, do_configure) failed with exit code ‘1’
NOTE: Tasks Summary: Attempted 1822 tasks of which 1820 didn’t need to be rerun and 2 failed.
Waiting for 0 running tasks to finish:

Summary: 2 tasks failed:
virtual:nativesdk:/home/onerelysys/Bharath_WorkSpace/legato/build3_yocto/yocto/poky/meta/recipes-devtools/autoconf/autoconf_2.69.bb, do_configure
virtual:nativesdk:/home/onerelysys/Bharath_WorkSpace/legato/build3_yocto/yocto/poky/meta/recipes-devtools/qemu/qemu_2.1.0.bb, do_configure
Summary: There were 2 ERROR messages shown, returning a non-zero exit code.
onerelysys@onerelysys:~/Bharath_WorkSpace/legato/build3_yocto/yocto/build_bin$

==================================================================================================================END:

so, anybody please help me to solve this problem
and to create ipk using sdk.

:slight_smile: