[yocto] Debugging a build issue in an isolated enviroment

Alan Martinovic alan.martinovic at senic.com
Thu Nov 2 08:06:27 PDT 2017


Opa! Great command for the future, tnx.

Strange that it isn't listed here and is greppable in bitbake -e
u-boot-fw-utils-senic...
Here it is:

u-boot-fw-utils-senic-v2017.03+git999-r0 do_listtasks: do_build
           Default task for a recipe - depends on all other normal
tasks required to 'build' a recipe
u-boot-fw-utils-senic-v2017.03+git999-r0 do_listtasks: do_buildclean
           Call 'make clean' or equivalent in
/home/alan/senic-os-update/build/workspace/sources/u-boot-fw-utils-senic
u-boot-fw-utils-senic-v2017.03+git999-r0 do_listtasks: do_checkuri
           Validates the SRC_URI value
u-boot-fw-utils-senic-v2017.03+git999-r0 do_listtasks: do_checkuriall
           Validates the SRC_URI value for all recipes required to
build a target
u-boot-fw-utils-senic-v2017.03+git999-r0 do_listtasks: do_clean
           Removes all output files for a target
u-boot-fw-utils-senic-v2017.03+git999-r0 do_listtasks: do_cleanall
           Removes all output files, shared state cache, and
downloaded source files for a target
u-boot-fw-utils-senic-v2017.03+git999-r0 do_listtasks: do_cleansstate
           Removes all output files and shared state cache for a
target
u-boot-fw-utils-senic-v2017.03+git999-r0 do_listtasks: do_compile
           Compiles the source in the compilation directory
u-boot-fw-utils-senic-v2017.03+git999-r0 do_listtasks: do_configure
           Configures the source by enabling and disabling any
build-time and configuration options for the software being built
u-boot-fw-utils-senic-v2017.03+git999-r0 do_listtasks: do_deploy
           Writes deployable output files to the deploy directory
u-boot-fw-utils-senic-v2017.03+git999-r0 do_listtasks: do_devpyshell
           Starts an interactive Python shell for
development/debugging
u-boot-fw-utils-senic-v2017.03+git999-r0 do_listtasks: do_devshell
           Starts a shell with the environment set up for
development/debugging
u-boot-fw-utils-senic-v2017.03+git999-r0 do_listtasks: do_fetch
           Fetches the source code
u-boot-fw-utils-senic-v2017.03+git999-r0 do_listtasks: do_fetchall
           Fetches all remote sources required to build a target
u-boot-fw-utils-senic-v2017.03+git999-r0 do_listtasks: do_install
           Copies files from the compilation directory to a holding
area
u-boot-fw-utils-senic-v2017.03+git999-r0 do_listtasks: do_listtasks
           Lists all defined tasks for a target
u-boot-fw-utils-senic-v2017.03+git999-r0 do_listtasks: do_package
           Analyzes the content of the holding area and splits it into
subsets based on available packages and files
u-boot-fw-utils-senic-v2017.03+git999-r0 do_listtasks: do_package_qa
           Runs QA checks on packaged files
u-boot-fw-utils-senic-v2017.03+git999-r0 do_listtasks:
do_package_write_ipk       Creates the actual IPK packages and places
them in the Package Feed area
u-boot-fw-utils-senic-v2017.03+git999-r0 do_listtasks: do_packagedata
           Creates package metadata used by the build system to
generate the final packages
u-boot-fw-utils-senic-v2017.03+git999-r0 do_listtasks: do_populate_lic
           Writes license information for the recipe that is collected
later when the image is constructed
u-boot-fw-utils-senic-v2017.03+git999-r0 do_listtasks:
do_populate_sysroot        Copies a subset of files installed by
do_install into the sysroot in order to make them available to other
recipes
u-boot-fw-utils-senic-v2017.03+git999-r0 do_listtasks: do_prepare_recipe_sysroot
u-boot-fw-utils-senic-v2017.03+git999-r0 do_listtasks: do_provide_mender_defines
u-boot-fw-utils-senic-v2017.03+git999-r0 do_listtasks: do_unpack
           Unpacks the source code into a working directory

On Thu, Nov 2, 2017 at 3:58 PM, Burton, Ross <ross.burton at intel.com> wrote:
> On 2 November 2017 at 13:31, Alan Martinovic <alan.martinovic at senic.com>
> wrote:
>>
>> Found what I was asking for with:
>>
>> bitbake -e <package>
>>
>> going through the output, there are mentions of patch_do_patch().
>> I've traced it to meta/classes/patch.bbclass.
>>
>> However, trying to execute just the patching for the recipe doesn't work.
>>
>> build⟫ bitbake -c patch u-boot-fw-utils-senic
>> ...
>> ERROR: Task do_patch does not exist for target u-boot-fw-utils-senic
>> (/home/alan/senic-os-update/oe/../meta-senic/recipes-bsp/u-boot/u-boot-fw-utils-senic_2017.03.bb:do_patch).
>> Close matches:
>>   do_fetch
>>   do_unpack
>> ERROR: Command execution failed: 1
>
>
> Whhhaaaaat.
>
> Can your paste the output of this please:
>
> $ bitbake u-boot-fw-utils-senic -c listtasks
>
> Ross



More information about the yocto mailing list