-
Notifications
You must be signed in to change notification settings - Fork 45
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
sof_remove.sh: make lib.sh optional #1220
Conversation
ACE and CAVS all green. Two totally unrelated errors in LNL and stable-v2.2 |
else | ||
printf '%s warning: %s not found, not sourced\n' "$0" "$libsh" | ||
fi | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think you misunderstand what #1169 intends to do. The intend was to 'dumb' down the sof_remove.sh
to be comparable with sof_insert.sh
, to not check for PA, to not check for booted firmware, to do exactly what the script should do: remove the modules.
I don't think it makes much sense to have this workflow to just remove the modules when initially booted to legacy or DSPless mode:
cp ~/sof-test/tools/kmod/sof_remove.sh ~/
~/sof_remove.sh
rm ~/sof_remove.sh
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I did understand.
This is software: it can be BOTH dumb and smart and this is what this PR does. Try it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The moved sof_remove.sh
do work now.
Apparently it also works in place as well, not failing anymore if the device were booted in legacy or DSPless mode..
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
tools/kmod/sof_remove.sh
Outdated
# shellcheck source=case-lib/lib.sh | ||
source "$libsh" | ||
else | ||
printf '%s warning: %s not found, not sourced\n' "$0" "$libsh" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
do we need to print this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Depends... would that be enough to get your approval? :-)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Depends... would that be enough to get your approval? :-)
yes ;)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ujfalusi done.
else | ||
printf '%s warning: %s not found, not sourced\n' "$0" "$libsh" | ||
fi | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The moved sof_remove.sh
do work now.
Apparently it also works in place as well, not failing anymore if the device were booted in legacy or DSPless mode..
This makes is possible to use this file separately from sof-test, as requested in thesofproject#1169. Signed-off-by: Marc Herbert <marc.herbert@intel.com>
MTL stopped booting in https://sof-ci.01.org/softestpr/PR1220/build662/devicetest/index.html, unrelated issue sof # 9308. Everything else is green. |
This makes is possible to use this file separately from sof-test, as requested in #1169.