summaryrefslogtreecommitdiff
path: root/packages/uboot/u-boot-mkimage-gta01-native/dontask.patch
diff options
context:
space:
mode:
authorMichael Lauer <mickey@vanille-media.de>2007-06-13 17:31:37 +0000
committerMichael Lauer <mickey@vanille-media.de>2007-06-13 17:31:37 +0000
commit49fc40335631daf60d2ead73ca6e346d52b0f305 (patch)
treef5bd9553945ef5bc014068a389707376b96c5e4b /packages/uboot/u-boot-mkimage-gta01-native/dontask.patch
parent3ddc7888534e1c11c5a64b67aa2276f1baa57811 (diff)
parenta28b3ce0ceda1bb468005d0950cb2f9b453ac68b (diff)
merge of 'bc14395624375a26acbbd5e4c92900e2e5e456f0'
and 'dfe282821bb00a1e4097acfcf4e97e3d5169bdc4'
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;