ti-tisdk-setup: add recipe to install setup scripts
PATCH 1/1 ti-tisdk-setup: add recipe to install setup scripts
* Added recipe that installs setup scripts for the development host. i.e. configurating nfs and tftp.
* Adds script to setup u-boot environment variables.
Signed-off-by Chase Maupin <[email protected]>
--- recipes/ti/ti-tisdk-setup.bb | 30 +++ .../am37x-evm/setup/setup-uboot-env.sh | 217 ++++++++++++++++++ .../dm365-evm/setup/setup-uboot-env.sh | 237 ++++++++++++++++++++ .../dm37x-evm/setup/setup-uboot-env.sh | 217 ++++++++++++++++++ .../omap3evm/setup/setup-uboot-env.sh | 217 ++++++++++++++++++ .../omapl138/setup/setup-uboot-env.sh | 213 ++++++++++++++++++ recipes/ti/ti-tisdk-setup/setup/common.sh | 9 + .../ti/ti-tisdk-setup/setup/setup-host-check.sh | 13 + recipes/ti/ti-tisdk-setup/setup/setup-minicom.sh | 51 +++++ .../ti-tisdk-setup/setup/setup-package-install.sh | 21 ++ .../ti/ti-tisdk-setup/setup/setup-targetfs-nfs.sh | 79 +++++++ recipes/ti/ti-tisdk-setup/setup/setup-tftp.sh | 81 +++++++ recipes/ti/ti-tisdk-setup/setup/setup.sh | 35 +++ 13 files changed, 1420 insertions(+), 0 deletions(-) create mode 100644 recipes/ti/ti-tisdk-setup.bb create mode 100644 recipes/ti/ti-tisdk-setup/am37x-evm/setup/setup-uboot-env.sh create mode 100644 recipes/ti/ti-tisdk-setup/dm365-evm/setup/setup-uboot-env.sh create mode 100644 recipes/ti/ti-tisdk-setup/dm37x-evm/setup/setup-uboot-env.sh create mode 100644 recipes/ti/ti-tisdk-setup/omap3evm/setup/setup-uboot-env.sh create mode 100644 recipes/ti/ti-tisdk-setup/omapl138/setup/setup-uboot-env.sh create mode 100644 recipes/ti/ti-tisdk-setup/setup/common.sh create mode 100644 recipes/ti/ti-tisdk-setup/setup/setup-host-check.sh create mode 100644 recipes/ti/ti-tisdk-setup/setup/setup-minicom.sh create mode 100644 recipes/ti/ti-tisdk-setup/setup/setup-package-install.sh create mode 100644 recipes/ti/ti-tisdk-setup/setup/setup-targetfs-nfs.sh create mode 100644 recipes/ti/ti-tisdk-setup/setup/setup-tftp.sh create mode 100644 recipes/ti/ti-tisdk-setup/setup/setup.sh
recipes/ti/ti-tisdk-setup.bb new file +30 -0
@@ -0,0 +1,30 @@ +DESCRIPTION = "Package containing scripts to setup the development host and target board" +LICENSE = "TI" + +COMPATIBLE_MACHINE = "(omap3evm|am37x-evm|dm37x-evm|dm365-evm|da830-omapl138-evm.conf)" + +require ti-paths.inc + +SRC_URI = "\ + file://setup/setup.sh \ + file://setup/common.sh \ + file://setup/setup-host-check.sh \ + file://setup/setup-minicom.sh \ + file://setup/setup-package-install.sh \ + file://setup/setup-targetfs-nfs.sh \ + file://setup/setup-tftp.sh \ + file://setup/setup-uboot-env.sh \ +" + +PR = "r11" + +do_install () { + install -d ${D}/${installdir}/bin + install -m 0755 ${WORKDIR}/setup/* ${D}/${installdir}/bin/ + # Place the setup.sh script one directory higher + mv ${D}/${installdir}/bin/setup.sh ${D}/${installdir}/setup.sh +} + +PACKAGE_ARCH = "${MACHINE_ARCH}" + +FILES_${PN} = "${installdir}/*"
recipes/ti/ti-tisdk-setup/am37x-evm/setup/setup-uboot-env.sh new file +217 -0
217 lines not on this page · raw message
recipes/ti/ti-tisdk-setup/dm365-evm/setup/setup-uboot-env.sh new file +237 -0
237 lines not on this page · raw message
recipes/ti/ti-tisdk-setup/dm37x-evm/setup/setup-uboot-env.sh new file +217 -0
217 lines not on this page · raw message
recipes/ti/ti-tisdk-setup/omap3evm/setup/setup-uboot-env.sh new file +217 -0
217 lines not on this page · raw message
recipes/ti/ti-tisdk-setup/omapl138/setup/setup-uboot-env.sh new file +213 -0
213 lines not on this page · raw message
recipes/ti/ti-tisdk-setup/setup/common.sh new file +9 -0
@@ -0,0 +1,9 @@ +#!/bin/sh + +check_status() { + ret=$? + if [ "$ret" -ne "0" ]; then + echo "Failed setup, aborting.." + exit 1 + fi +}
recipes/ti/ti-tisdk-setup/setup/setup-host-check.sh new file +13 -0
@@ -0,0 +1,13 @@ +#!/bin/sh + +echo +echo "--------------------------------------------------------------------------------" +echo "Verifying Linux host distribution" +host=`lsb_release -a 2>/dev/null | grep Codename: | awk {'print $2'}` +if [ "$host" != "lucid" ]; then + echo "Unsupported host machine, only Ubuntu 10.04 LTS supported" + exit 1 +fi +echo "Ubuntu 10.04 LTS found successfully, continuing.." +echo "--------------------------------------------------------------------------------" +echo
recipes/ti/ti-tisdk-setup/setup/setup-minicom.sh new file +51 -0
51 lines not on this page · raw message
recipes/ti/ti-tisdk-setup/setup/setup-package-install.sh new file +21 -0
@@ -0,0 +1,21 @@ +#!/bin/sh + +. `dirname $0`/common.sh + +cmd="sudo apt-get install xinetd tftpd nfs-kernel-server minicom build-essential libncurses5-dev" +echo "--------------------------------------------------------------------------------" +echo "This step will make sure you have the proper host support packages installed" +echo "using the following command: $cmd" +echo +echo "Note! This command requires you to have administrator priviliges (sudo access) " +echo "on your host." +echo -n "Press return to continue" +read + +echo +$cmd +check_status +echo +echo "Package verification and installation successfully completed" +echo "--------------------------------------------------------------------------------" +echo
recipes/ti/ti-tisdk-setup/setup/setup-targetfs-nfs.sh new file +79 -0
79 lines not on this page · raw message
recipes/ti/ti-tisdk-setup/setup/setup-tftp.sh new file +81 -0
81 lines not on this page · raw message
recipes/ti/ti-tisdk-setup/setup/setup.sh new file +35 -0
@@ -0,0 +1,35 @@ +#!/bin/sh + +echo +echo "--------------------------------------------------------------------------------" +echo "DVSDK setup script" +echo +echo "This script will set up your development host for dvsdk development." +echo "Parts of this script require administrator priviliges (sudo access)." +echo "--------------------------------------------------------------------------------" + +cwd=`dirname $0` +. $cwd/bin/common.sh + +$cwd/bin/setup-host-check.sh +check_status + +$cwd/bin/setup-package-install.sh +check_status + +$cwd/bin/setup-targetfs-nfs.sh +check_status + +$cwd/bin/setup-tftp.sh +check_status + +$cwd/bin/setup-minicom.sh +check_status + +$cwd/bin/setup-uboot-env.sh +check_status + +echo +echo "DVSDK setup completed!" +echo "Please continue reading the Software Developer's Guide for more information on" +echo "how to develop software on the EVM"
Signature · 1 line
1.7.0.4