Patchwork [meta-ti] beagleboard-test-scripts: Imported from OE classic

login
register
mail settings
Submitter Joel A Fernandes
Date Aug. 26, 2011, 12:52 a.m.
Message ID <1314319957-10080-1-git-send-email-joelagnel@ti.com>
Download mbox | patch
Permalink /patch/10565/
State New, archived
Headers show

Comments

Joel A Fernandes - Aug. 26, 2011, 12:52 a.m.
Signed-off-by: Joel A Fernandes <joelagnel@ti.com>
---
 .../beagleboard/beagleboard-test-scripts_git.bb    |   50 ++++++++++++++++++++
 1 files changed, 50 insertions(+), 0 deletions(-)
 create mode 100644 recipes-ti/beagleboard/beagleboard-test-scripts_git.bb

Patch

diff --git a/recipes-ti/beagleboard/beagleboard-test-scripts_git.bb b/recipes-ti/beagleboard/beagleboard-test-scripts_git.bb
new file mode 100644
index 0000000..17c07d8
--- /dev/null
+++ b/recipes-ti/beagleboard/beagleboard-test-scripts_git.bb
@@ -0,0 +1,50 @@ 
+## Reminder:  The correct spacing for a variable is FOO = "BAR"  in : PR="r1"
+DESCRIPTION = "BeagleBoard test scripts"
+HOMEPAGE = "http://beagleboad.org/support"
+PR = "r7"
+
+
+SRC_URI = "git://github.com/joelagnel/validation-scripts.git;protocol=git \
+"
+
+LICENSE = "GPLv2"
+LIC_FILES_CHKSUM="file://gpl.txt;md5=5b122a36d0f6dc55279a0ebc69f3c60b"
+
+SRCREV = "4cc0b0442733c1cc1374267622245f5bd28cd4c2"
+S = "${WORKDIR}/git"
+
+inherit update-rc.d
+INITSCRIPT_NAME = "flash-nand-fs.sh"
+INITSCRIPT_PARAMS = "start 99 2 3 4 5 ."
+
+FILES_${PN} += "/boot/user.txt \
+		/boot/uEnv.txt \
+"
+
+do_install() {
+  TEST_FILES=" \
+    testaudio \
+    testcamera \
+    testdsp \
+    testedid \
+    testled \
+    testmem \
+    testneon \
+    testsvideo \
+    testuserbtn \
+    editbootscr \
+    edituserscr \
+    readgpio \
+  "
+  install -d ${D}/${bindir}
+  for i in ${TEST_FILES}; do
+    install -m 0755 ${S}/${i} ${D}/${bindir}
+  done
+  # A script to flash NAND if the board has it, and if there is valid image to flash on the SD Card.
+  # We also register it as an init script so that the SD Card auto-flashes to NAND during boot.
+  install -d ${D}/${sysconfdir}/init.d/
+  install -m 0755 ${S}/flashing/flash-nand-fs.sh ${D}/${sysconfdir}/init.d/flash-nand-fs.sh
+  install -d ${D}/boot/
+  install -m 0755 ${S}/flashing/user.txt ${D}/boot/user.txt
+  install -m 0755 ${S}/flashing/uEnv.txt ${D}/boot/uEnv.txt
+}