This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

PROCESSOR-SDK-AM64X: Image build improperly fails on incorrect MACHINE definition

Part Number: PROCESSOR-SDK-AM64X

Image build improperly fails on incorrect MACHINE definition.  Emitted error leads user in wrong direction to solve the problem.  Please follow what the poky distribution does when emitting the error.

SDK version: 

/worktree/tisdk/sources/meta-arago$ git status
HEAD detached at 08.00.00.004
nothing to commit, working tree clean

Expected error (represented from poky distribution):

MACHINE=bogus bitbake core-image-minimal
ERROR: OE-core's config sanity checker detected a potential misconfiguration.
Either fix the cause of this error or at your own risk disable the checker (see sanity.conf).
Following is the list of potential problems / advisories:

MACHINE=bogus is invalid. Please set a valid MACHINE in your local.conf, environment or other configuration file.


Summary: There was 1 ERROR message shown, returning a non-zero exit code.

Realized error

/worktree/tisdk/build$ MACHINE=bogus bitbake tisdk-base-image
ERROR: Unable to start bitbake server (None)
ERROR: Server log for this session (/worktree/tisdk/build/bitbake-cookerdaemon.log):
--- Starting bitbake server pid 19406 at 2021-08-19 09:50:02.563576 ---
ERROR: Failed to obtain external Arm toolchain version: Execution of '${DEF_TOOLCHAIN_PATH}/bin/INVALID-linux-gcc -v' failed: command not found
ERROR: Failed to obtain external Arm toolchain version: Execution of '${DEF_TOOLCHAIN_PATH}/bin/INVALID-linux-gcc -v' failed: command not found
ERROR: Error: EXTERNAL_TOOLCHAIN path '${DEF_TOOLCHAIN_PATH}' does not exist

Toolchain directory configured in local.conf

/worktree/tisdk/build$ tail conf/local.conf
RM_OLD_IMAGE = "1"

# Enable local PR service for binary feeds
PRSERV_HOST = "localhost:0"

# It is recommended to activate "buildhistory" for testing the PR service
INHERIT += "buildhistory"
BUILDHISTORY_COMMIT = "1"
TOOLCHAIN_BASE = "/worktree/toolchains"

Expected toolchain resident in /worktree/toolchains

/worktree/tisdk/build$ ls /worktree/toolchains/
cmake-3.18.0-rc4-Linux-x86_64
gcc-arm-8.3-2019.03-x86_64-aarch64-linux-gnu
gcc-arm-9.2-2019.12-x86_64-aarch64-none-linux-gnu
gcc-arm-9.2-2019.12-x86_64-arm-none-linux-gnueabihf
gcc-arm-9.2-2019.12-x86_64-arm-none-linux-gnueabihf.tar.xz
gcc-arm-none-eabi-6_2-2016q4
gcc-arm-none-eabi-7-2017-q4-major
gcc-arm-none-eabi-7-2018-q2-update
gcc-arm-none-eabi-9-2019-q4-major