Re: RFC: Sentosa boot fix

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, 1 Feb 2007, Franck Bui-Huu wrote:

> It gives good default behaviours without both user's intervention or
> configuration:
> 
> 	if CONFIG_64BITS
> 		ifndef sym32
> 			if load-y in XKPHYS
> 				sym32 = ''		[1]
> 			elif load-y in CKSEG0
> 				sym32 = '-msym32'	[2]
> 		else
> 			if sym32 eq 'yes'
> 				sym32 = '-msym32'	[3]
> 		endef
> 	fi
> 	cflags-y += $(sym32)
> 
> [1] since there is no reason to add '-msym32' and it would generate
>    wrong code anyways.
> [2] since it's used by all platforms to generate smaller code.
>    Warn if this option is not supported by the tool chains.
> [3] if you really want to generate code loaded in CKSEG0 without
>    -msym32 switch you could always do:
> 
> 		$ make sym32=no

 Well, it seems fair enough indeed, as long as the availability of 
"-msym32" is verified as suggested by Atsushi-san.

>    IMHO, for normal users, this case is probably a configuration
>    bug and that's the reason we should request for a user to ask for
>    it explicitly.

 Hmm, that just raises the question for a definition of who a "normal 
user" is.  And in general -- what "normality" is and why exactly that and 
not something else. ;-)

  Maciej


[Index of Archives]     [Linux MIPS Home]     [LKML Archive]     [Linux ARM Kernel]     [Linux ARM]     [Linux]     [Git]     [Yosemite News]     [Linux SCSI]     [Linux Hams]

  Powered by Linux