Following this: http://www.yoctoproject.org/docs/1.6.1/dev-manual/dev-manual.html#building-software-from-an-external-source
I've got this in my local.conf file: INHERIT += "externalsrc" EXTERNALSRC_src1 = "${TOPDIR}/../<path to src 1>" EXTERNALSRC_BUILD_src1 = "${WORKDIR}/${BPN}/{PV}/" EXTERNALSRC_src2 = "${TOPDIR}/../<path to src 2>" EXTERNALSRC_BUILD_src2 = "${WORKDIR}/${BPN}/{PV}/" In the recipe for src2: DESCRIPTION = "Builds src2" LICENSE = "license" LIC_FILES_CHKSUM = "blah"" PV = "1.0" PR = "r0" PACKAGES = "${PN}" inherit autotools do_install_prepend(){ echo ${S} } Notice the echo ${S}: I'm expecting that to print out the <path to src2> but instead it prints out the build directory. During the install step, I get this error: ERROR: Logfile of failure stored in: <path>/oe-core/build/tmp-eglibc/work/path/src2/1.0-r0/temp/log.do_install.12557 Log data follows: | DEBUG: SITE files ['endian-little', 'bit-32', 'arm-common', 'arm-linux-gnueabihf', 'common'] | DEBUG: Executing shell function do_install | <path>/oe-core/build/tmp-eglibc/work/blah/src2/1.0-r0/src2-1.0 <-- build directory | NOTE: make -j 8 DESTDIR=<path>/oe-core/build/tmp-eglibc/work/blah/src2/1.0-r0/image install | make: *** No rule to make target `install'. Stop. | ERROR: oe_runmake failed | WARNING: /local/mnt/workspace/mollyn/ext-flight/oe-core/build/tmp-eglibc/work/cortexa8hf-vfp-neon-linux-gnueabi/uORB/1.0-r0/temp/run.do_install.12557:1 exit 1 from | exit 1 | ERROR: Function failed: do_install (log file is located at /local/mnt/workspace/mollyn/ext-flight/oe-core/build/tmp-eglibc/work/cortexa8hf-vfp-neon-linux-gnueabi/uORB/1.0-r0/temp/log.do_install.12557) The build directory (of course) doesn't have the source code with the Makefile.am in it. What else do I need to do in order to correctly set the source directory? The dev manual recommends this: EXTERNALSRC_pn-myrecipe = "/some/path/to/your/source/tree" How literal is "pn-myrecipe"? If I have a recipe called "banana.bb", should I have "EXTERNALSRC_banana-banana.bb" in my local.conf? Thanks in advance!
-- _______________________________________________ yocto mailing list yocto@yoctoproject.org https://lists.yoctoproject.org/listinfo/yocto