PLATFORM_LINUX is evil

Denys Vlasenko vda.linux at googlemail.com
Sat Feb 26 21:24:04 UTC 2011


On Thu, Feb 24, 2011 at 3:16 AM, Rob Landley <rob at landley.net> wrote:
>> What do you propose to do?
>
> I propose making allnoconfig useful again.
>
> If you're going to support Linux targets, the best thing to do is
> probably have a defconfig for each non-linux target that's the maximum
> sane config for THAT platform.  (Otherwise you're going to be annotating
> for newlib+libgloss in the config and it's a horrible can of worms.)  So
> a defconfig.mac and a defconfig.netbsd and a defconfig.cygwin and a
> defconfig.mingw and so on.  It gives people a starting point, and we can
> even have a checkconfig that compares the config you made with the
> target defconfig and warn you about symbols you've enabled that it
> doesn't have, and if they do work please tell us so we can update that
> target's defconfig.
>
> If you really don't want to do that for some reason, the "selects"
> suggestion is less painful than the current setup, it annotates Linux
> dependencies without breaking allnoconfig.

I changed all "depends on PLATFORM_LINUX" to "select PLATFORM_LINUX".
Please let me know if current git still has a problem with PLATFORM_LINUX.

-- 
vda


More information about the busybox mailing list