[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Just a thought: Kconfig & architecture command


Hi,

On Sat, 3 Jan 2004, Wim Van Sebroeck wrote:

> Lett me give a simple example: the sa1100 watchdog driver only works for
> the sa1100 architecture. In Kconfig this could then look like:
> -Kconfig------------------------------------------------------------------
> config SA1100_WATCHDOG
>         tristate "SA1100 watchdog"
>         architecture ARCH_SA1100
>         depends on WATCHDOG
>         help
>           Watchdog timer embedded into SA11x0 chips. This will reboot your
>           system when timeout is reached.
>           NOTE, that once enabled, this timer cannot be disabled.
>
>           To compile this driver as a module, choose M here: the
>           module will be called sa1100_wdt.
>
> --------------------------------------------------------------------------
> > The advantage is that you could source driver directory's more easily in
> a lott of architectures (without having to copy general pieces in every
> seperate architecture-dependant Kconfig file, like we do know for sun,
> sh, ...).

I don't really see the need for another keyword, which is basically only
an alias. The ARCH_ prefix already says that it's an arch symbol and you
can already have multiple depends lines (which are connected via '&&'), so
you don't need to mix the arch dependecies with the other dependencies.

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


この情報があなたの探していたものかどうか選択してください。
yes/まさにこれだ!   no/違うなぁ   part/一部見つかった   try/これで試してみる

あなたが探していた情報はどのようなことか、ご自由に記入下さい。特に「まさにこれだ!」と言う場合は記入をお願いします。
例:「複数のマシンからCATV経由でipmasqueradeを利用してWebを参照したい場合の設定について」
References: