Re: Linux 2.4.17-pre5

Keith Owens (kaos@ocs.com.au)
Sat, 08 Dec 2001 00:35:14 +1100


On Fri, 7 Dec 2001 12:55:30 +0100,
Stephan von Krawczynski <skraw@ithnet.com> wrote:
>There is a problem: I made a (really small) patch to Config.in saying:
>
> int ' Maximum number of cards supported by HiSax' CONFIG_HISAX_MAX_CARDS 8
>
>If I check this in the source, it gives me CONFIG_HISAX_MAX_CARDS as (8)

Yuck! CML1 outputs integers as #define CONFIG_foo (number) instead of
just number. CML2 does not do that, I was looking at CML2. Add this
to drivers/isdn/Makefile

CFLAGS_foo.o += -DMAX_CARDS=$(subst (,,$(subst ),,$(CONFIG_HISAX_MAX_CARDS)))

In foo.c, use MAX_CARDS instead of CONFIG_HISAX_MAX_CARDS. Change foo
to the name of the object that you are working on. When you build, it
should say -DMAX_CARDS=8.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/