* Add support for Ubuntu 18.04 LTS (Bionix Beaver)

Signed-off-by: Jacob Stiffler <[email protected]>
---
 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

_______________________________________________
meta-arago mailing list
[email protected]
http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago

Reply via email to