Skip to content

Parsing error on linux-rockhip.inc file #155

@NunoBarix

Description

@NunoBarix

Bitbake is complaining about a parsing error. It appears to occur only when a defconfig is included in upper layers.

This is the bitbake output:
Error during parse shell code, the last 5 lines are: | ETA: 0:00:17 bbnote "Final scc/cfg list: $sccs_defconfig $bsp_definition $sccs $KERNEL_FEATURES_FINAL"

Commenting out sections of the recipes while tracing the issue indicates that the problem originates from the linux-rochip.inc file, with this specific line implicated:

cat ${KBUILD_DEFCONFIGS:-$CONFIGS} > ${KBUILD_DEFCONFIG} || true

Bitbake task functions do not support bash-style variable expansion with curly brackets and default values (i.e., ${VAR:-fallback}) or non-standard constructs.

I tested this only on scarthgap branch, but it may happen in other branches.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions