Discussion:
[meta-arago] [tisdk-setup-scripts][PATCH] setup: add support for Ubuntu 18.04
Jacob Stiffler
2018-09-17 16:49:24 UTC
Permalink
* Add support for Ubuntu 18.04 LTS (Bionix Beaver)

Signed-off-by: Jacob Stiffler <j-***@ti.com>
---
setup-host-check.sh | 4 ++--
setup-package-install.sh | 4 ++--
2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/setup-host-check.sh b/setup-host-check.sh
index f1d63d0..45b4c71 100644
--- a/setup-host-check.sh
+++ b/setup-host-check.sh
@@ -39,8 +39,8 @@ echo "Verifying Linux host distribution"

get_host_type host

-if [ "$host" != "lucid" -a "$host" != "precise" -a "$host" != "trusty" -a "$host" != "xenial" ]; then
- echo "Unsupported host machine, only Ubuntu 12.04 LTS, Ubuntu 14.04 LTS, and Ubuntu 16.04 LTS are supported"
+if [ "$host" != "precise" -a "$host" != "trusty" -a "$host" != "xenial" -a "$host" != "bionic" ]; then
+ echo "Unsupported host machine, only Ubuntu 12.04 LTS, Ubuntu 14.04 LTS, Ubuntu 16.04 LTS, and Ubuntu 18.04 LTS are supported"
exit 1
fi
echo "Ubuntu 12.04 LTS, Ubuntu 14.04, or Ubuntu 14.04 LTS is being used, continuing.."
diff --git a/setup-package-install.sh b/setup-package-install.sh
index 77f235a..1e9fedb 100644
--- a/setup-package-install.sh
+++ b/setup-package-install.sh
@@ -58,12 +58,12 @@ entry_header

packages_to_install="xinetd tftpd nfs-kernel-server minicom build-essential libncurses5-dev autoconf automake dos2unix screen lrzsz lzop"

-get_host_type host
+get_major_host_version host_major_version

# Starting with Ubuntu 14.04 the package name for uboot-mkimage has changed
# to u-boot-tools

-if [ "$host" = "trusty" -o "$host" = "xenial" ]; then
+if [ $host_major_version -ge 14 ]; then
packages_to_install="$packages_to_install u-boot-tools"
else
packages_to_install="$packages_to_install uboot-mkimage"
--
1.9.1
Loading...