Wolfgang Denk wrote:
> In message <[EMAIL PROTECTED]> you wrote:
>> Didnt know this ... so we must change something in common/main.c :-(
>
> Yes.
>
>> Whats with something like this?
>
> Looks way too complicated to me. What do you think about the PATCH /
> RFC I posted yesterday?
>
> Best regards,
>
> Wolfgang Denk
I presume you considered and discarded using a special #define (e.g.
CONFIG_AUTOBOOT_PROMPT_0) for the no value case. It only hurts our
#ifdef hellcount a little and changes our "touch" count from <all> to 5
(4 if I fix sacsng).
diff --git a/common/main.c b/common/main.c
index 79ad291..09e6033 100644
--- a/common/main.c
+++ b/common/main.c
@@ -115,8 +115,10 @@ static __inline__ int abortboot(int bootdelay)
u_int presskey_max = 0;
u_int i;
-# ifdef CONFIG_AUTOBOOT_PROMPT
+# if defined(CONFIG_AUTOBOOT_PROMPT)
printf(CONFIG_AUTOBOOT_PROMPT, bootdelay);
+# elif defined(CONFIG_AUTOBOOT_PROMPT_0)
+ c
# endif
# ifdef CONFIG_AUTOBOOT_DELAY_STR
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
U-Boot-Users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/u-boot-users