Fixed
Created: May 21, 2021
Updated: Jul 22, 2021
Resolved Date: Jul 13, 2021
Found In Version: 10.21.20.1
Fix Version: 10.21.20.3
Severity: Standard
Applicable for: Wind River Linux LTS 21
Component/s: Documentation, Kernel
# product of branch WRLINUX_10_21_LTS
1. setup project
$ setup.sh --machines=qemux86-64 --dl-layers --accept-eula=yes && source environment-setup-x86_64-wrlinuxsdk-linux && source oe-init-build-env build
2. add and configure layer wrlinux-kernel-dev
$ bitbake-layers add-layer ../layers/wrlinux/wrlinux-kernel-dev
$ echo 'WRTEMPLATE += "feature/kernel-dev"' >> conf/local.conf
# refer to https://docs.windriver.com/bundle/zyv1526061229770/page/nru1618860786584.html
# update ../layers/wrlinux-kernel-dev/recipes-kernel/linux-libc-headers/linux-libc-headers-custom.bb, uncomment lines
# LINUX_VERSION = "4.19-rc7"
#KSRC_linux_libc_headers_custom = "${THISDIR}/../../../git/linux-yocto-dev.git"
# and
# update ../layers/wrlinux-kernel-dev/recipes-kernel/linux/linux-yocto-custom.bb, uncomment lines
#SRC_URI = "git://${LAYER_PATH_wrlinux}/git/linux-yocto-dev.git;protocol=file;branch=standard/base;name=machine"
#LINUX_VERSION ?= "4.19-rc8"
3. add package kernel-devsrc
$ echo 'IMAGE_INSTALL_append += "kernel-devsrc" ' >> conf/local.conf
4. build
$ bitbake -c populate_sdk wrlinux-image-std
Parsing recipes...ERROR: ExpansionError during parsing /buildarea1/WRL1021LTS_Regression/customercase/build_dir/05211414-Ericsson_Out_Of_Tree_Modules/intel-x86-64-standard-std-OE/layers/wrlinux/wrlinux-kernel-dev/recipes-kernel/linux-libc-headers/linux-libc-headers-custom.bb
Traceback (most recent call last):
File "/buildarea1/WRL1021LTS_Regression/customercase/build_dir/05211414-Ericsson_Out_Of_Tree_Modules/intel-x86-64-standard-std-OE/layers/oe-core/bitbake/lib/bb/fetch2/__init__.py", line 1172, in srcrev_internal_helper(ud=<bb.fetch2.FetchData object at 0x7feb1afa8550>, d=<bb.data_smart.DataSmart object at 0x7feb1af03280>, name='machine'):
if srcrev == "AUTOINC":
> srcrev = ud.method.latest_revision(ud, d, name)
File "/buildarea1/WRL1021LTS_Regression/customercase/build_dir/05211414-Ericsson_Out_Of_Tree_Modules/intel-x86-64-standard-std-OE/layers/oe-core/bitbake/lib/bb/fetch2/__init__.py", line 1581, in Git.latest_revision(ud=<bb.fetch2.FetchData object at 0x7feb1afa8550>, d=<bb.data_smart.DataSmart object at 0x7feb1af03280>, name='machine'):
except KeyError:
> revs[key] = rev = self._latest_revision(ud, d, name)
return rev
File "/buildarea1/WRL1021LTS_Regression/customercase/build_dir/05211414-Ericsson_Out_Of_Tree_Modules/intel-x86-64-standard-std-OE/layers/oe-core/bitbake/lib/bb/fetch2/git.py", line 697, in Git._latest_revision(ud=<bb.fetch2.FetchData object at 0x7feb1afa8550>, d=<bb.data_smart.DataSmart object at 0x7feb1af03280>, name='machine'):
"""
> output = self._lsremote(ud, d, "")
# Tags of the form ^{} may not work, need to fallback to other form
File "/buildarea1/WRL1021LTS_Regression/customercase/build_dir/05211414-Ericsson_Out_Of_Tree_Modules/intel-x86-64-standard-std-OE/layers/oe-core/bitbake/lib/bb/fetch2/git.py", line 686, in Git._lsremote(ud=<bb.fetch2.FetchData object at 0x7feb1afa8550>, d=<bb.data_smart.DataSmart object at 0x7feb1af03280>, search=''):
bb.fetch2.check_network_access(d, cmd, repourl)
> output = runfetchcmd(cmd, d, True)
if not output:
File "/buildarea1/WRL1021LTS_Regression/customercase/build_dir/05211414-Ericsson_Out_Of_Tree_Modules/intel-x86-64-standard-std-OE/layers/oe-core/bitbake/lib/bb/fetch2/__init__.py", line 889, in runfetchcmd(cmd='export PSEUDO_DISABLED=1; export GIT_SSL_CAINFO="/buildarea1/WRL1021LTS_Regression/customercase/build_dir/05211414-Ericsson_Out_Of_Tree_Modules/intel-x86-64-standard-std-OE/bin/buildtools.buildtools-standalone-10.21.20.0/sysroots/x86_64-wrlinuxsdk-linux/etc/ssl/certs/ca-certificates.crt"; export PATH="/buildarea1/WRL1021LTS_Regression/customercase/build_dir/05211414-Ericsson_Out_Of_Tree_Modules/intel-x86-64-standard-std-OE/layers/oe-core/scripts:/buildarea1/WRL1021LTS_Regression/customercase/build_dir/05211414-Ericsson_Out_Of_Tree_Modules/intel-x86-64-standard-std-OE/build/tmp-glibc/work/corei7-64-wrs-linux/linux-libc-headers-custom/fetcheravoidrecurse-fetcheravoidrecurse/recipe-sysroot-native/usr/bin/x86_64-wrs-linux:/buildarea1/WRL1021LTS_Regression/customercase/build_dir/05211414-Ericsson_Out_Of_Tree_Modules/intel-x86-64-standard-std-OE/build/tmp-glibc/work/corei7-64-wrs-linux/linux-libc-headers-custom/fetcheravoidrecurse-fetcheravoidrecurse/recipe-sysroot/usr/bin/crossscripts:/buildarea1/WRL1021LTS_Regression/customercase/build_dir/05211414-Ericsson_Out_Of_Tree_Modules/intel-x86-64-standard-std-OE/build/tmp-glibc/work/corei7-64-wrs-linux/linux-libc-headers-custom/fetcheravoidrecurse-fetcheravoidrecurse/recipe-sysroot-native/usr/sbin:/buildarea1/WRL1021LTS_Regression/customercase/build_dir/05211414-Ericsson_Out_Of_Tree_Modules/intel-x86-64-standard-std-OE/build/tmp-glibc/work/corei7-64-wrs-linux/linux-libc-headers-custom/fetcheravoidrecurse-fetcheravoidrecurse/recipe-sysroot-native/usr/bin:/buildarea1/WRL1021LTS_Regression/customercase/build_dir/05211414-Ericsson_Out_Of_Tree_Modules/intel-x86-64-standard-std-OE/build/tmp-glibc/work/corei7-64-wrs-linux/linux-libc-headers-custom/fetcheravoidrecurse-fetcheravoidrecurse/recipe-sysroot-native/sbin:/buildarea1/WRL1021LTS_Regression/customercase/build_dir/05211414-Ericsson_Out_Of_Tree_Modules/intel-x86-64-standard-std-OE/build/tmp-glibc/work/corei7-64-wrs-linux/linux-libc-headers-custom/fetcheravoidrecurse-fetcheravoidrecurse/recipe-sysroot-native/bin:/buildarea1/WRL1021LTS_Regression/customercase/build_dir/05211414-Ericsson_Out_Of_Tree_Modules/intel-x86-64-standard-std-OE/layers/oe-core/bitbake/bin:/buildarea1/WRL1021LTS_Regression/customercase/build_dir/05211414-Ericsson_Out_Of_Tree_Modules/intel-x86-64-standard-std-OE/build/tmp-glibc/hosttools:/buildarea1/WRL1021LTS_Regression/customercase/build_dir/05211414-Ericsson_Out_Of_Tree_Modules/intel-x86-64-standard-std-OE/layers/local/scripts"; export HOME="/buildarea1/WRL1021LTS_Regression/customercase/build_dir/WR_TAF_HOME"; git -c core.fsyncobjectfiles=0 ls-remote file:///buildarea1/WRL1021LTS_Regression/customercase/build_dir/05211414-Ericsson_Out_Of_Tree_Modules/intel-x86-64-standard-std-OE/layers/wrlinux/wrlinux-kernel-dev/recipes-kernel/linux-libc-headers/../../../git/linux-yocto-dev.git ', d=<bb.data_smart.DataSmart object at 0x7feb1afa8730>, quiet=True, cleanup=[], log=None, workdir=None):
> raise FetchError(error_message)
bb.data_smart.ExpansionError: Failure expanding variable SRCPV, expression was ${@bb.fetch2.get_srcrev(d)} which triggered exception FetchError: Fetcher failure: Fetch command export PSEUDO_DISABLED=1; export GIT_SSL_CAINFO="/buildarea1/WRL1021LTS_Regression/customercase/build_dir/05211414-Ericsson_Out_Of_Tree_Modules/intel-x86-64-standard-std-OE/bin/buildtools.buildtools-standalone-10.21.20.0/sysroots/x86_64-wrlinuxsdk-linux/etc/ssl/certs/ca-certificates.crt"; export PATH="/buildarea1/WRL1021LTS_Regression/customercase/build_dir/05211414-Ericsson_Out_Of_Tree_Modules/intel-x86-64-standard-std-OE/layers/oe-core/scripts:/buildarea1/WRL1021LTS_Regression/customercase/build_dir/05211414-Ericsson_Out_Of_Tree_Modules/intel-x86-64-standard-std-OE/build/tmp-glibc/work/corei7-64-wrs-linux/linux-libc-headers-custom/fetcheravoidrecurse-fetcheravoidrecurse/recipe-sysroot-native/usr/bin/x86_64-wrs-linux:/buildarea1/WRL1021LTS_Regression/customercase/build_dir/05211414-Ericsson_Out_Of_Tree_Modules/intel-x86-64-standard-std-OE/build/tmp-glibc/work/corei7-64-wrs-linux/linux-libc-headers-custom/fetcheravoidrecurse-fetcheravoidrecurse/recipe-sysroot/usr/bin/crossscripts:/buildarea1/WRL1021LTS_Regression/customercase/build_dir/05211414-Ericsson_Out_Of_Tree_Modules/intel-x86-64-standard-std-OE/build/tmp-glibc/work/corei7-64-wrs-linux/linux-libc-headers-custom/fetcheravoidrecurse-fetcheravoidrecurse/recipe-sysroot-native/usr/sbin:/buildarea1/WRL1021LTS_Regression/customercase/build_dir/05211414-Ericsson_Out_Of_Tree_Modules/intel-x86-64-standard-std-OE/build/tmp-glibc/work/corei7-64-wrs-linux/linux-libc-headers-custom/fetcheravoidrecurse-fetcheravoidrecurse/recipe-sysroot-native/usr/bin:/buildarea1/WRL1021LTS_Regression/customercase/build_dir/05211414-Ericsson_Out_Of_Tree_Modules/intel-x86-64-standard-std-OE/build/tmp-glibc/work/corei7-64-wrs-linux/linux-libc-headers-custom/fetcheravoidrecurse-fetcheravoidrecurse/recipe-sysroot-native/sbin:/buildarea1/WRL1021LTS_Regression/customercase/build_dir/05211414-Ericsson_Out_Of_Tree_Modules/intel-x86-64-standard-std-OE/build/tmp-glibc/work/corei7-64-wrs-linux/linux-libc-headers-custom/fetcheravoidrecurse-fetcheravoidrecurse/recipe-sysroot-native/bin:/buildarea1/WRL1021LTS_Regression/customercase/build_dir/05211414-Ericsson_Out_Of_Tree_Modules/intel-x86-64-standard-std-OE/layers/oe-core/bitbake/bin:/buildarea1/WRL1021LTS_Regression/customercase/build_dir/05211414-Ericsson_Out_Of_Tree_Modules/intel-x86-64-standard-std-OE/build/tmp-glibc/hosttools:/buildarea1/WRL1021LTS_Regression/customercase/build_dir/05211414-Ericsson_Out_Of_Tree_Modules/intel-x86-64-standard-std-OE/layers/local/scripts"; export HOME="/buildarea1/WRL1021LTS_Regression/customercase/build_dir/WR_TAF_HOME"; git -c core.fsyncobjectfiles=0 ls-remote file:///buildarea1/WRL1021LTS_Regression/customercase/build_dir/05211414-Ericsson_Out_Of_Tree_Modules/intel-x86-64-standard-std-OE/layers/wrlinux/wrlinux-kernel-dev/recipes-kernel/linux-libc-headers/../../../git/linux-yocto-dev.git failed with exit code 128, output:
fatal: '/buildarea1/WRL1021LTS_Regression/customercase/build_dir/05211414-Ericsson_Out_Of_Tree_Modules/intel-x86-64-standard-std-OE/layers/wrlinux/wrlinux-kernel-dev/recipes-kernel/linux-libc-headers/../../../git/linux-yocto-dev.git' does not appear to be a git repository
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
# product of branch WRLINUX_10_21_LTS
1. setup project
$ setup.sh --machines=qemux86-64 --dl-layers --accept-eula=yes && source environment-setup-x86_64-wrlinuxsdk-linux && source oe-init-build-env build
2. add and configure layer wrlinux-kernel-dev
$ bitbake-layers add-layer ../layers/wrlinux/wrlinux-kernel-dev
$ echo 'WRTEMPLATE += "feature/kernel-dev"' >> conf/local.conf
# refer to https://docs.windriver.com/bundle/zyv1526061229770/page/nru1618860786584.html
# update ../layers/wrlinux-kernel-dev/recipes-kernel/linux-libc-headers/linux-libc-headers-custom.bb, uncomment lines
# LINUX_VERSION = "4.19-rc7"
#KSRC_linux_libc_headers_custom = "${THISDIR}/../../../git/linux-yocto-dev.git"
# and
# update ../layers/wrlinux-kernel-dev/recipes-kernel/linux/linux-yocto-custom.bb, uncomment lines
#SRC_URI = "git://${LAYER_PATH_wrlinux}/git/linux-yocto-dev.git;protocol=file;branch=standard/base;name=machine"
#LINUX_VERSION ?= "4.19-rc8"
3. add package kernel-devsrc
$ echo 'IMAGE_INSTALL_append += "kernel-devsrc" ' >> conf/local.conf
4. build
$ bitbake -c populate_sdk wrlinux-image-std