Re: kbuild: shorthand ym2y, ym2m etc

From: Andreas Gruenbacher
Date: Sun Jan 30 2005 - 20:58:47 EST


On Sunday 30 January 2005 20:37, Sam Ravnborg wrote:
> We have in several cases the need to transpose a i'm' to 'y' in the Kbuild
> files.

I assume you mean what you write in the text rather than what the example
shows. If so, why not use this:

obj-$(CONFIG_SND:m=y) += last.o

> One example is the following snippet from sound/Makefile:
> ifeq ($(CONFIG_SND),y)
> obj-y += last.o
> endif
>
> [...]
>
> To be complete the full set would be:
>
> ym2y
> ym2m
> empty2y
> empty2m
> y2y
> m2y
> y2m
> m2m
> yx2x
> mx2x
>
>
> Would that be considered usefull?

That would take the kbuild makefile obfuscation contest to the next level. Who
should understand that stuff?

Cheers,
--
Andreas Gruenbacher <agruen@xxxxxxx>
SUSE Labs, SUSE LINUX PRODUCTS GMBH
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/