[U-Boot] [PATCH] MIPS: Add board_early_init_f() to init_sequence

Shinya Kuribayashi shinya.kuribayashi at necel.com
Tue Nov 18 03:41:09 CET 2008


Stefan Roese wrote:
>> This is ok.  I don't know why people prefers alias, though :-)
> 
> Just because we don't need the ugly #ifdef's by using weak aliases. It has 
> some drawbacks of course but in general the resulting source code 
> looks "cleaner".

I was being vague.  I prefers something like below, because I don't want
to have a dummy & empty function just for the `alias'.

int __attribute__((weak)) board_early_init_f(void)
{
	return 0;
}

But that's not a big deal.  Using weak function is ok, of course.  Sorry
for the noise.

Thanks,

-- 
Shinya Kuribayashi
NEC Electronics


More information about the U-Boot mailing list