On 01/21/2015 10:38 AM, Aaro Koskinen wrote:
Hi,
On Wed, Jan 21, 2015 at 10:22:30AM +0000, Markos Chandras wrote:
I believe this patch is mostly useful for cores that can boot in both LE
and BE so being able to tell the byteorder from cpuinfo can be helpful
at times. Having readelf and other tools in your userland may not always
be the case, but you surely have "cat" :)
So that patch looks good to me but i think the #ifdefs can be avoided.
Can we use
if (config_enabled(CONFIG_CPU_BIG_ENDIAN) {
Kernel has already support making whole .config available in /proc
where you can check such things.
You mean like this?:
~ # zcat /proc/config.gz | grep 'CPU.*ENDIAN='
CONFIG_CPU_BIG_ENDIAN=y