On Mon, 2026-06-15 at 14:16 +0200, Jaipaul Cheernam via lists.openembedded.org wrote: > The environment setup script installed by a buildtools tarball is named > environment-setup-<arch>-<sdk-name>-linux. The script hardcodes "pokysdk" > for this component, so any distro that ships buildtools under a different > SDK name gets a FileNotFoundError after an otherwise successful install. > > Add --sdk-name to let callers specify the SDK name. Defaults to "pokysdk" > so all existing usage is unaffected. Invalid values (empty string or a > value containing path separators) are rejected early with a clear error. > A friendly error message is also emitted when the resolved path does not > exist, pointing the user at the --sdk-name option as the likely cause. > > Signed-off-by: Jaipaul Cheernam <[email protected]> > --- > scripts/install-buildtools | 41 ++++++++++++++++++++++++++++---------- > 1 file changed, 30 insertions(+), 11 deletions(-)
Given we're installing this and there should be only one of them, perhaps we should just use glob.glob to find the name? We could error if more than one is found? Cheers, Richard
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#238871): https://lists.openembedded.org/g/openembedded-core/message/238871 Mute This Topic: https://lists.openembedded.org/mt/119814299/21656 Group Owner: [email protected] Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
