From bf25cb6f5468f4fa5aea0e7b38bd6b65884fdad1 Mon Sep 17 00:00:00 2001
From: Robert Nelson <robertcnelson@gmail.com>
Date: Thu, 25 Sep 2014 08:55:55 -0500
Subject: [PATCH] install kernel modules

Signed-off-by: Robert Nelson <robertcnelson@gmail.com>
---
 configs/rcn-ee_console_debian_stable_armhf.conf  | 3 ++-
 configs/rcn-ee_console_debian_testing_armhf.conf | 3 ++-
 configs/rcn-ee_console_ubuntu_stable_armhf.conf  | 2 +-
 configs/rcn-ee_console_ubuntu_testing_armhf.conf | 2 +-
 scripts/chroot.sh                                | 7 +++++++
 5 files changed, 13 insertions(+), 4 deletions(-)

diff --git a/configs/rcn-ee_console_debian_stable_armhf.conf b/configs/rcn-ee_console_debian_stable_armhf.conf
index 6260c917d..badb74300 100644
--- a/configs/rcn-ee_console_debian_stable_armhf.conf
+++ b/configs/rcn-ee_console_debian_stable_armhf.conf
@@ -31,7 +31,8 @@ rfs_default_locale="en_US.UTF-8"
 ##
 ##enable kernel repo: http://repos.rcn-ee.net/(debian|ubuntu)
 repo_rcnee="enable"
-repo_rcnee_pkg_list="linux-image-3.16.3-armv7-lpae-x2 linux-image-3.16.3-armv7-x4 linux-image-3.14.19-ti-r25 tiomapconf"
+repo_rcnee_pkg_list="linux-image-3.16.3-armv7-lpae-x2 linux-image-3.16.3-armv7-x4 linux-image-3.14.19-ti-r26 tiomapconf"
+repo_rcnee_pkg_version="3.14.19-ti-r26"
 include_firmware="enable"
 #
 chroot_COPY_SETUP_SDCARD="enable"
diff --git a/configs/rcn-ee_console_debian_testing_armhf.conf b/configs/rcn-ee_console_debian_testing_armhf.conf
index a4797cae8..018014888 100644
--- a/configs/rcn-ee_console_debian_testing_armhf.conf
+++ b/configs/rcn-ee_console_debian_testing_armhf.conf
@@ -32,7 +32,8 @@ rfs_default_locale="en_US.UTF-8"
 ##
 ##enable kernel repo: http://repos.rcn-ee.net/(debian|ubuntu)
 repo_rcnee="enable"
-repo_rcnee_pkg_list="linux-image-3.16.3-armv7-lpae-x2 linux-image-3.16.3-armv7-x4 linux-image-3.14.19-ti-r25 tiomapconf"
+repo_rcnee_pkg_list="linux-image-3.16.3-armv7-lpae-x2 linux-image-3.16.3-armv7-x4 linux-image-3.14.19-ti-r26 tiomapconf"
+repo_rcnee_pkg_version="3.14.19-ti-r26"
 include_firmware="enable"
 #
 chroot_COPY_SETUP_SDCARD="enable"
diff --git a/configs/rcn-ee_console_ubuntu_stable_armhf.conf b/configs/rcn-ee_console_ubuntu_stable_armhf.conf
index 4e59e282a..730520368 100644
--- a/configs/rcn-ee_console_ubuntu_stable_armhf.conf
+++ b/configs/rcn-ee_console_ubuntu_stable_armhf.conf
@@ -31,7 +31,7 @@ rfs_default_locale="en_US.UTF-8"
 ##
 ##enable kernel repo: http://repos.rcn-ee.net/(debian|ubuntu)
 repo_rcnee="enable"
-repo_rcnee_pkg_list="linux-image-3.16.3-armv7-lpae-x2 linux-image-3.16.3-armv7-x4 linux-image-3.14.19-ti-r25"
+repo_rcnee_pkg_list="linux-image-3.16.3-armv7-lpae-x2 linux-image-3.16.3-armv7-x4 linux-image-3.14.19-ti-r26"
 include_firmware="enable"
 #
 chroot_COPY_SETUP_SDCARD="enable"
diff --git a/configs/rcn-ee_console_ubuntu_testing_armhf.conf b/configs/rcn-ee_console_ubuntu_testing_armhf.conf
index f2bf4523f..6ef50df5c 100644
--- a/configs/rcn-ee_console_ubuntu_testing_armhf.conf
+++ b/configs/rcn-ee_console_ubuntu_testing_armhf.conf
@@ -31,7 +31,7 @@ rfs_default_locale="en_US.UTF-8"
 ##
 ##enable kernel repo: http://repos.rcn-ee.net/(debian|ubuntu)
 repo_rcnee="enable"
-repo_rcnee_pkg_list="linux-image-3.16.3-armv7-lpae-x2 linux-image-3.16.3-armv7-x4 linux-image-3.14.19-ti-r25"
+repo_rcnee_pkg_list="linux-image-3.16.3-armv7-lpae-x2 linux-image-3.16.3-armv7-x4 linux-image-3.14.19-ti-r26"
 include_firmware="enable"
 #
 chroot_COPY_SETUP_SDCARD="enable"
diff --git a/scripts/chroot.sh b/scripts/chroot.sh
index 38af5e2c7..8c51bd936 100755
--- a/scripts/chroot.sh
+++ b/scripts/chroot.sh
@@ -410,6 +410,13 @@ cat > ${DIR}/chroot_script.sh <<-__EOF__
 			apt-get -y --force-yes install ${deb_additional_pkgs}
 		fi
 
+		if [ ! "x${repo_rcnee_pkg_version}" = "x" ] ; then
+			echo "Log: (chroot) Installing modules for: ${repo_rcnee_pkg_version}"
+			apt-get -y --force-yes install mt7601u-modules-${repo_rcnee_pkg_version} || true
+			apt-get -y --force-yes install ti-sgx-es8-modules-${repo_rcnee_pkg_version} || true
+			depmod -a ${repo_rcnee_pkg_version}
+		fi
+
 		if [ "x${chroot_enable_debian_backports}" = "xenable" ] ; then
 			if [ ! "x${chroot_debian_backports_pkg_list}" = "x" ] ; then
 				echo "Log: (chroot) Installing (from backports): ${chroot_debian_backports_pkg_list}"
-- 
GitLab