Subject: Re: how to detect at runtime which system you're running on...
To: None <firstname.lastname@example.org>
From: Robert Swindells <email@example.com>
Date: 06/20/2001 18:48:03
Ben Harris wrote:
>>On Tue, 19 Jun 2001, Chris Gilbert wrote:
>> I suppose I'm just looking for consistency and that we don't end up with a
>> pile of flags just to indicate which platform you're on.
>Why shouldn't we have such a pile of flags? I'd certainly prefer
>if (iomd_id() == IOMD7500)
>if (plat == A7000 || plat == NC || plat == MICO || plat == R7500 ||
> plat == IBX101)
Arm Linux tests for platform instead of features and ends up rather
messy as a result.
The biggest problem is when you add a new port, you have to go through
all the source and add your new platform to the conditional expressions.