JeffyCN / meta-rockchip

Yocto BSP layer for the Rockchip SOC boards
Other
114 stars 87 forks source link

Kirkstone meta-rockchip bitbake error #19

Closed TYeniyayla closed 2 years ago

TYeniyayla commented 2 years ago

Hi, I'm new to the kirkstone version. I have updated all the files but when I call bitbake-layers show-layers I get this error. What is the reason?

ERROR: Variable BB_BASEHASH_IGNORE_VARS_append file: /media/tunahan/f1cceee6-ac24-4956-9e80-7ce648ac31e4/yoctoproject-kirkstone/meta-rockchip/conf/layer.conf line: 22 contains an operation using the old override syntax. Please convert this layer/metadata before attempting to use with a newer bitbake.

The contents of the file mentioned in the error are as follows:

# Released under the MIT license (see COPYING.MIT for the terms)

# We have a conf and classes directory, add to BBPATH
BBPATH .= ":${LAYERDIR}"

# We have recipes-* directories, add to BBFILES
BBFILES += "${LAYERDIR}/recipes-*/*/*.bb \
        ${LAYERDIR}/recipes-*/*/*.bbappend"

BBFILES_DYNAMIC += " \
    browser-layer:${LAYERDIR}/dynamic-layers/recipes-browser/*/*.bbappend \
    chromium-browser-layer:${LAYERDIR}/dynamic-layers/recipes-browser/*/*.bbappend \
    qt5-layer:${LAYERDIR}/dynamic-layers/recipes-qt/*/*.bbappend \
"

BBFILE_COLLECTIONS += "rockchip"
BBFILE_PATTERN_rockchip := "^${LAYERDIR}/"
BBFILE_PRIORITY_rockchip = "9"

RKBASE = '${@os.path.normpath("${LAYERDIR}")}'
BB_BASEHASH_IGNORE_VARS:append = " RKBASE"

# Additional license directories.
LICENSE_PATH += "${LAYERDIR}/licenses"

LAYERDEPENDS_rockchip = "core openembedded-layer"

# This should only be incremented on significant changes that will
# cause compatibility issues with other layers
LAYERVERSION_rockchip = "1"
LAYERSERIES_COMPAT_rockchip = "kirkstone"
JeffyCN commented 2 years ago

the content you post just confirm that file is correct(not using BB_BASEHASH_IGNORE_VARS_append).

could be something wrong in your local build caches(confused timestamp? or dirty rebuilt?)

anyway, i would prefer to remove the build caches(e.g. sstate-cache,cache and tmp) under build/ for a clean build.

TYeniyayla commented 2 years ago

I'm confused too. Here's how I created Kirkstone. I copied yocto which is Dunfell, updated every folder (including meta-rockchip) that I cloned from git in it with commands like git fetch. I deleted the build folder and rebuilt it with the command source poky/oe-init-build-env. Then I got this error.

I am using visual studio code, in visual studio code source control looks like this. image

JeffyCN commented 2 years ago

i know nothing about "visual studio code", it looks like the bitbake tool still seeing the old version of meta-rockchip(have you done the git-checkout after git-fetch?).

BTW, this is the manifest i used for kirkstone: https://github.com/JeffyCN/yocto-manifests/tree/kirkstone-next

TYeniyayla commented 2 years ago

Visual Studio Code is an IDE. Yes I used git-checkout command. They all appear in the kirkstone branch now. How can I get bitbake to see the new version of meta-rockchip?

JeffyCN commented 2 years ago

How can I get bitbake to see the new version of meta-rockchip?

i have no idea about that, it was saying '/media/tunahan/f1cceee6-ac24-4956-9e80-7ce648ac31e4/yoctoproject-kirkstone/meta-rockchip/conf/layer.conf' is wrong, but you said it's not.

well, the wrong content must be stored somewhere, maybe you can try to search BB_BASEHASH_IGNORE_VARS_append in your whole disk

JeffyCN commented 2 years ago

anyway, it doesn't look like to be a meta-rockchip issue, maybe you can try to use my manifest as a code base, and add your repositories

TYeniyayla commented 2 years ago

I solved the problem but I still don't know how to update. I completely deleted folders like poky, meta-openembedded, meta-rockchip and cloned them again from git. I don't know how to migrate existing metafiles to different versions.

JeffyCN commented 2 years ago

i'm using repo tool(like android). and this is not a meta-rockchip issue, maybe you can ask it in the yocto maillist. https://www.yoctoproject.org/community/mailing-lists/