From 17e73f44c043e98722fb0220457cbc845b95fc37 Mon Sep 17 00:00:00 2001 From: Koen Kooi Date: Wed, 13 Jun 2007 10:30:07 +0000 Subject: u-boot-mkimage-gta01-native: add a static git tag and put patches in OE to stop breakage --- .../u-boot-mkimage-gta01-native/dontask.patch | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 packages/uboot/u-boot-mkimage-gta01-native/dontask.patch (limited to 'packages/uboot/u-boot-mkimage-gta01-native/dontask.patch') 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 + +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; -- cgit v1.2.3