summarylogtreecommitdiffstats
path: root/xtensa-lx106-elf-gcc.install
diff options
context:
space:
mode:
Diffstat (limited to 'xtensa-lx106-elf-gcc.install')
-rwxr-xr-xxtensa-lx106-elf-gcc.install18
1 files changed, 18 insertions, 0 deletions
diff --git a/xtensa-lx106-elf-gcc.install b/xtensa-lx106-elf-gcc.install
new file mode 100755
index 000000000000..a8c956fa5799
--- /dev/null
+++ b/xtensa-lx106-elf-gcc.install
@@ -0,0 +1,18 @@
+
+post_install() {
+ echo "To use the toolchain, environment variables have to be set in your shell."
+ echo "Files setting them for POSIX compatible shells (bash, zsh, ...)"
+ echo "provided and should be used automatically for shells opened from now on."
+ echo "To use the toolchain right away, use"
+ echo " $ source /etc/profile.d/xtensa-lx106-elf-gcc.sh # (for POSIX compatible)"
+ echo "You may add /opt/xtensa-lx106-elf-gcc/bin to your \$PATH for selected shells."
+}
+
+post_upgrade() {
+ post_install
+
+ if [[ $(vercmp "$2" "r47-2") -ne 1 && $(vercmp "r47-3" "$1") -ne 1 ]]; then
+ echo "Note: The provided tools are not added to the \$PATH automatically anymore."
+ echo " This caused problems with other toolchains using the same executable names."
+ fi
+}