Have U-boot detect if user button was pressed and set a boot argument
so that user space can use this information
This solves a couple of problems:
* The user-button doesn't have to be held when userspace loads
* Eliminate the need for userspace scripts that check for the state of the
button
Signed-off-by: Joel A Fernandes
---
I know recently these updates have become fairly noisy and maybe even a chore
for
maintainers to keep applying. Moving to AUTOREV checkout for this recipe (from a
stable branch I maintain) would reduce or eliminate this (I'm not sure how to
trigger
rebuilds though without a PR bump)
If not, I'm sorry for the noise, hopefully this should be the last change as
this script
hasn't moved for a few days now.
.../beagleboard/beagleboard-test-scripts_git.bb|9 ++---
1 files changed, 2 insertions(+), 7 deletions(-)
diff --git a/recipes/beagleboard/beagleboard-test-scripts_git.bb
b/recipes/beagleboard/beagleboard-test-scripts_git.bb
index bb0e6e4..6b676de 100644
--- a/recipes/beagleboard/beagleboard-test-scripts_git.bb
+++ b/recipes/beagleboard/beagleboard-test-scripts_git.bb
@@ -1,22 +1,18 @@
## Reminder: The correct spacing for a variable is FOO = "BAR" in : PR="r1"
DESCRIPTION = "BeagleBoard test scripts"
HOMEPAGE = "http://beagleboad.org/support";
-PR = "r4"
+PR = "r5"
SRC_URI =
"git://gitorious.org/~joelf/beagleboard-validation/validation-scripts.git;protocol=git
\
"
-SRCREV = "f7ba1b49190003af524f1a768ec887955a9994a0"
+SRCREV = "4c129ee73698bfb14cfa4c77c2796e871b21"
S = "${WORKDIR}/git"
inherit update-rc.d
INITSCRIPT_NAME = "flash-nand-fs.sh"
INITSCRIPT_PARAMS = "start 99 2 3 4 5 ."
-do_compile() {
-${CC} -o userbutton-pressed ${CFLAGS} ${LDFLAGS}
flashing/userbutton-pressed.c
-}
-
do_install() {
TEST_FILES=" \
testaudio \
@@ -40,7 +36,6 @@ do_install() {
# 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 -m 0755 userbutton-pressed ${D}/${bindir}/userbutton-pressed
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
--
1.7.0.4
___
Openembedded-devel mailing list
Openembedded-devel@lists.openembedded.org
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel