summaryrefslogtreecommitdiff
path: root/packages/uboot/u-boot-mkimage-gta01-native/dontask.patch
diff options
context:
space:
mode:
authorKoen Kooi <koen@openembedded.org>2007-06-13 10:30:07 +0000
committerKoen Kooi <koen@openembedded.org>2007-06-13 10:30:07 +0000
commit17e73f44c043e98722fb0220457cbc845b95fc37 (patch)
tree05ac66bc8f4b852b8ff697d4f401b3b747ca6f7d /packages/uboot/u-boot-mkimage-gta01-native/dontask.patch
parent21b6863a4b2d6ed5bd11949de415b817057303e6 (diff)
u-boot-mkimage-gta01-native: add a static git tag and put patches in OE to stop breakage
Diffstat (limited to 'packages/uboot/u-boot-mkimage-gta01-native/dontask.patch')
-rw-r--r--packages/uboot/u-boot-mkimage-gta01-native/dontask.patch22
1 files changed, 22 insertions, 0 deletions
diff --git a/packages/uboot/u-boot-mkimage-gta01-native/dontask.patch b/packages/uboot/u-boot-mkimage-gta01-native/dontask.patch
new file mode 100644
index 0000000000..23d4b13626
--- /dev/null
+++ b/packages/uboot/u-boot-mkimage-gta01-native/dontask.patch
@@ -0,0 +1,22 @@
+common/cmd_nand.c (yes): if the environment variable "dontask" is set to "y" or
+ "Y", non-interactively assume the answer was "yes". In all other cases, ask.
+
+- Werner Almesberger <werner@openmoko.org>
+
+Index: u-boot/common/cmd_nand.c
+===================================================================
+--- u-boot.orig/common/cmd_nand.c
++++ u-boot/common/cmd_nand.c
+@@ -165,8 +165,12 @@ out:
+
+ static int yes(void)
+ {
++ char *s;
+ char c;
+
++ s = getenv("dontask");
++ if (s && (s[0] =='y' || s[0] == 'Y') && !s[1])
++ return 1;
+ c = getc();
+ if (c != 'y' && c != 'Y')
+ return 0;