This service is available only in Japanese-language.

拡張SDKの構築について

ベンダー提供のBSPを拡張SDKに対応させようとしています。
populate_sdk_extのタスクは成功しました。
しかし、インストールをしようとすると下記のエラーがでて失敗しています。
当方、これが何を意味するエラーなのかがわかりかねています。

考えられる原因、なにか不足していそうなこと、または解析のヒントになりそうなことなどありませんでしょうか?

$ bash tmp/deploy/sdk/poky-glibc-x86_64-rootfs-pos-cortexa9hf-vfpv3-toolchain-ext-2.4+snapshot.sh
Poky (Yocto Project Reference Distro) Extensible SDK installer version 2.4+snapshot
==========================================================================================
Enter target directory for SDK (default: ~/poky_sdk):
The directory "/home/dev/poky_sdk" already contains a SDK for this architecture.
If you continue, existing files will be overwritten! Proceed[y/N]? y
Extracting SDK....................................................done
Setting it up...
Extracting buildtools...
Preparing build system...
Loading cache: 100% |######################################################################################################################################################################################################################################| Time: 0:00:00
WARNING: /home/dev/poky_sdk/layers/poky/meta-openembedded/meta-python/recipes-devtools/python/python3-urllib3_1.22.bb: Exception during build_dependencies for sysroot_stage_dirs | ETA: --:--:--
WARNING: /home/dev/poky_sdk/layers/poky/meta-openembedded/meta-python/recipes-devtools/python/python3-urllib3_1.22.bb: Error during finalise of virtual:nativesdk:/home/dev/poky_sdk/layers/poky/meta-openembedded/meta-python/recipes-devtools/python/python3-urllib3_1.22.bb
WARNING: /home/dev/poky_sdk/layers/poky/meta-openembedded/meta-python/recipes-devtools/python/python3-twofish_0.3.0.bb: Exception during build_dependencies for sysroot_stage_dirs
WARNING: /home/dev/poky_sdk/layers/poky/meta-openembedded/meta-python/recipes-devtools/python/python3-twofish_0.3.0.bb: Error during finalise of virtual:nativesdk:/home/dev/poky_sdk/layers/poky/meta-openembedded/meta-python/recipes-devtools/python/python3-twofish_0.3.0.bb
ERROR: Unable to parse /home/dev/poky_sdk/layers/poky/meta-openembedded/meta-python/recipes-devtools/python/python3-urllib3_1.22.bb
Traceback (most recent call last):
File "/home/dev/poky_sdk/layers/poky/bitbake/lib/bb/codeparser.py", line 370, in ShellParser._parse_shell(value='\tfrom="$1"\n\tto="$2"\n\n\tfor dir in /opt/poky/2.4+snapshot-fatal: Not a git repository (or any of the parent directories): .git/sysroots/x86_64-pokysdk-linux/usr/include /opt/poky/2.4+snapshot-fatal: Not a git repository (or any of the parent directories): .git/sysroots/x86_64-pokysdk-linux/usr/lib /opt/poky/2.4+snapshot-fatal: Not a git repository (or any of the parent directories): .git/sysroots/x86_64-pokysdk-linux/lib /opt/poky/2.4+snapshot-fatal: Not a git repository (or any of the parent directories): .git/sysroots/x86_64-pokysdk-linux/lib /opt/poky/2.4+snapshot-fatal: Not a git repository (or any of the parent directories): .git/sysroots/x86_64-pokysdk-linux/usr/share ; do\n\t\tsysroot_stage_dir "$from$dir" "$to$dir"\n\tdone\n\n\t# Remove directories we do not care about\n\tfor dir in /opt/poky/2.4+snapshot-fatal: Not a git repository (or any of the parent directories): .git/sysroots/x86_64-pokysdk-linux/usr/share/man /opt/poky/2.4+snapshot-fatal: Not a git repository (or any of the parent directories): .git/sysroots/x86_64-pokysdk-linux/usr/share/doc /opt/poky/2.4+snapshot-fatal: Not a git repository (or any of the parent directories): .git/sysroots/x86_64-pokysdk-linux/usr/share/info /opt/poky/2.4+snapshot-fatal: Not a git repository (or any of the parent directories): .git/sysroots/x86_64-pokysdk-linux/usr/share/locale /opt/poky/2.4+snapshot-fatal: Not a git repository (or any of the parent directories): .git/sysroots/x86_64-pokysdk-linux/usr/share/applications /opt/poky/2.4+snapshot-fatal: Not a git repository (or any of the parent directories): .git/sysroots/x86_64-pokysdk-linux/usr/share/fonts /opt/poky/2.4+snapshot-fatal: Not a git repository (or any of the parent directories): .git/sysroots/x86_64-pokysdk-linux/usr/share/pixmaps /opt/poky/2.4+snapshot-fatal: Not a git repository (or any of the parent directories): .git/sysroots/x86_64-pokysdk-linux/usr/lib/nativesdk-python3-urllib3/ptest ; do\n\t\trm -rf "$to$dir"\n\tdone\n'):
try:
> tokens, _ = pyshyacc.parse(value, eof=True, debug=False)
except pyshlex.NeedMore:
File "/home/dev/poky_sdk/layers/poky/bitbake/lib/bb/pysh/pyshyacc.py", line 673, in parse(input='\tfrom="$1"\n\tto="$2"\n\n\tfor dir in /opt/poky/2.4+snapshot-fatal: Not a git repository (or any of the parent directories): .git/sysroots/x86_64-pokysdk-linux/usr/include /opt/poky/2.4+snapshot-fatal: Not a git repository (or any of the parent directories): .git/sysroots/x86_64-pokysdk-linux/usr/lib /opt/poky/2.4+snapshot-fatal: Not a git repository (or any of the parent directories): .git/sysroots/x86_64-pokysdk-linux/lib /opt/poky/2.4+snapshot-fatal: Not a git repository (or any of the parent directories): .git/sysroots/x86_64-pokysdk-linux/lib /opt/poky/2.4+snapshot-fatal: Not a git repository (or any of the parent directories): .git/sysroots/x86_64-pokysdk-linux/usr/share ; do\n\t\tsysroot_stage_dir "$from$dir" "$to$dir"\n\tdone\n\n\t# Remove directories we do not care about\n\tfor dir in /opt/poky/2.4+snapshot-fatal: Not a git repository (or any of the parent directories): .git/sysroots/x86_64-pokysdk-linux/usr/share/man /opt/poky/2.4+snapshot-fatal: Not a git repository (or any of the parent directories): .git/sysroots/x86_64-pokysdk-linux/usr/share/doc /opt/poky/2.4+snapshot-fatal: Not a git repository (or any of the parent directories): .git/sysroots/x86_64-pokysdk-linux/usr/share/info /opt/poky/2.4+snapshot-fatal: Not a git repository (or any of the parent directories): .git/sysroots/x86_64-pokysdk-linux/usr/share/locale /opt/poky/2.4+snapshot-fatal: Not a git repository (or any of the parent directories): .git/sysroots/x86_64-pokysdk-linux/usr/share/applications /opt/poky/2.4+snapshot-fatal: Not a git repository (or any of the parent directories): .git/sysroots/x86_64-pokysdk-linux/usr/share/fonts /opt/poky/2.4+snapshot-fatal: Not a git repository (or any of the parent directories): .git/sysroots/x86_64-pokysdk-linux/usr/share/pixmaps /opt/poky/2.4+snapshot-fatal: Not a git repository (or any of the parent directories): .git/sysroots/x86_64-pokysdk-linux/usr/lib/nativesdk-python3-urllib3/ptest ; do\n\t\trm -rf "$to$dir"\n\tdone\n', eof=True, debug=False):
debug = 2
> return yacc.parse(lexer=lexer, debug=debug), remaining

File "/home/dev/poky_sdk/layers/poky/bitbake/lib/ply/yacc.py", line 267, in LRParser.parse(input=None, lexer=<bb.pysh.pyshlex.PLYLexer object at 0x7f853e8cb7b8>, debug=False, tracking=0, tokenfunc=None):
else:
> return self.parseopt_notrack(input,lexer,debug,tracking,tokenfunc)

File "/home/dev/poky_sdk/layers/poky/bitbake/lib/ply/yacc.py", line 1049, in LRParser.parseopt_notrack(input=None, lexer=<bb.pysh.pyshlex.PLYLexer object at 0x7f853e8cb7b8>, debug=False, tracking=0, tokenfunc=None):
errtoken.lexer = lexer
> tok = self.errorfunc(errtoken)
del errok, token, restart # Delete special functions
File "/home/dev/poky_sdk/layers/poky/bitbake/lib/bb/pysh/pyshyacc.py", line 646, in p_error(p=LexToken(LPARENS,'(',0,0)):
w(' %r\n' % n)
> raise sherrors.ShellSyntaxError(''.join(msg))

bb.pysh.sherrors.ShellSyntaxError: LexToken(LPARENS,'(',0,0)
followed by:
LexToken(TOKEN,'or',0,0)
LexToken(TOKEN,'any',0,0)
LexToken(TOKEN,'of',0,0)
LexToken(TOKEN,'the',0,0)
LexToken(TOKEN,'parent',0,0)

WARNING: /home/dev/poky_sdk/layers/poky/meta-openembedded/meta-python/recipes-devtools/python/python3-strict-rfc3339_0.7.bb: Exception during build_dependencies for sysroot_stage_dirs
WARNING: /home/dev/poky_sdk/layers/poky/meta-openembedded/meta-python/recipes-devtools/python/python3-strict-rfc3339_0.7.bb: Error during finalise of virtual:nativesdk:/home/dev/poky_sdk/layers/poky/meta-openembedded/meta-python/recipes-devtools/python/python3-strict-rfc3339_0.7.bb
WARNING: /home/dev/poky_sdk/layers/poky/meta-openembedded/meta-python/recipes-devtools/python/python3-webcolors_1.8.1.bb: Exception during build_dependencies for sysroot_stage_dirs
WARNING: /home/dev/poky_sdk/layers/poky/meta-openembedded/meta-python/recipes-devtools/python/python3-webcolors_1.8.1.bb: Error during finalise of virtual:nativesdk:/home/dev/poky_sdk/layers/poky/meta-openembedded/meta-python/recipes-devtools/python/python3-webcolors_1.8.1.bb
WARNING: /home/dev/poky_sdk/layers/poky/meta-openembedded/meta-python/recipes-devtools/python/python3-wcwidth_0.1.7.bb: Exception during build_dependencies for sysroot_stage_dirs
WARNING: /home/dev/poky_sdk/layers/poky/meta-openembedded/meta-python/recipes-devtools/python/python3-wcwidth_0.1.7.bb: Error during finalise of virtual:nativesdk:/home/dev/poky_sdk/layers/poky/meta-openembedded/meta-python/recipes-devtools/python/python3-wcwidth_0.1.7.bb

2.4+snapshot-fatal: Not a git repository (or any of the parent directories):
というディレクトリが生成されている状況でしょうか?
空白が含まれるディレクトリがbuild system内部に存在するため

bb.pysh.sherrors.ShellSyntaxError: LexToken(LPARENS,'(',0,0)
followed by:
LexToken(TOKEN,'or',0,0)
LexToken(TOKEN,'any',0,0)
LexToken(TOKEN,'of',0,0)
LexToken(TOKEN,'the',0,0)
LexToken(TOKEN,'parent',0,0)

上記のShellSyntaxErrorが発生し、エラーとなっているように見受けられます。

因みに
”2.4+snapshot-fatal: Not a git repository (or any of the parent directories)”
というディレクトリが生成される要因は、git が何らかの原因で正しく動作していない
場合に生成されますので、git 環境の見直しが必要かと。

ありがとうございました。解決できました。

SDKインストーラ名にタグ名を付与するため、
__anonymous関数のなかでgitコマンドを発行するコードを追加しておりました。
SDKのインストール時に、インストール先でgitコマンドを発行したため、
"2.4+snapshot-fatal: Not a git repository (or any of the parent directories)"
となっていたようです。