-
Notifications
You must be signed in to change notification settings - Fork 159
gnu: Add legacy Zephyr compatibility #989
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
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -69,6 +69,7 @@ usage() | |||||
echo " all Install all GNU toolchains" | ||||||
echo " -l Install LLVM toolchain" | ||||||
echo " -h Install host tools" | ||||||
echo " -o Old zephyr version compatibility" | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
echo " -c Register Zephyr SDK CMake package" | ||||||
echo | ||||||
echo "Supported GNU Toolchains:" | ||||||
|
@@ -117,6 +118,8 @@ user_prompt() | |||||
# Environment Configurations | ||||||
ask_yn "Register Zephyr SDK CMake package" && do_cmake_pkg="y" | ||||||
|
||||||
ask_yn "Old zephyr version compatibility" && do_old_zephyr="y" | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
|
||||||
echo | ||||||
} | ||||||
|
||||||
|
@@ -159,6 +162,9 @@ else | |||||
-c) | ||||||
do_cmake_pkg="y" | ||||||
;; | ||||||
-o) | ||||||
do_old_zephyr="y" | ||||||
;; | ||||||
'-?') | ||||||
usage | ||||||
exit 0 | ||||||
|
@@ -301,6 +307,14 @@ if [ "${do_cmake_pkg}" = "y" ]; then | |||||
echo | ||||||
fi | ||||||
|
||||||
# Create compatibility links for old Zephyr versions | ||||||
if [ "${do_old_zephyr}" = "y" ]; then | ||||||
echo "Creating links for old Zephyr compatibility ..." | ||||||
ln -sr gnu/* . || assert_rc "ERROR: Creating toolchain links" 50 | ||||||
ln -sr cmake/zephyr/gnu/* cmake/zephyr || assert_rc "ERROR: Creating cmake links" 50 | ||||||
Comment on lines
+313
to
+314
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We also need to symlink |
||||||
echo | ||||||
fi | ||||||
|
||||||
echo "All done." | ||||||
if [ "${interactive}" = "y" ]; then | ||||||
read -n 1 -s -r -p "Press any key to exit ..." | ||||||
|
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.
What about using Zephyr version?
SDK 1.0.0 support will be available from Zephyr 4.3.0 (well, 4.2.99/main at this time), so we can set the default
ZEPHYR_TOOLCHAIN_VARIANT=zephyr
whenZephyr_VERSION VERSION_LESS 4.2.99