public inbox for linux-8086@vger.kernel.org
 help / color / mirror / Atom feed
* Config.in help needed
@ 2002-05-24 18:36 Stefke
  2002-05-24 20:37 ` Riley Williams
  0 siblings, 1 reply; 12+ messages in thread
From: Stefke @ 2002-05-24 18:36 UTC (permalink / raw)
  To: linux-8086

hi,

If I have the following code in config.in (in drivers/block)

   bool 'SSD disk support' CONFIG_BLK_DEV_SSD
   bool 'Internal disk support' CONFIG_BLK_DEV_ID
   define_bool CONFIG_BLK_DEV_BIOS n

   if [ "$CONFIG_BLK_DEV_SSD" = "y" ]; then
      choice 'Size off SSD (in Kb)' \
             "128 CONFIG_BLK_DEV_SSD_128\
              256 CONFIG_BLK_DEV_SSD_256\
              512 CONFIG_BLK_DEV_SSD_512\
             1024 CONFIG_BLK_DEV_SSD_1024\
             2048 CONFIG_BLK_DEV_SSD_2048" 512
   fi

can I use the following code in a program ? (wrt_dsk.c)


#ifdef CONFIG_BLK_DEV_SSD

#ifdef CONFIG_BLK_DEV_SSD_128
#define BLOCKS 2
#endif

#ifdef CONFIG_BLK_DEV_SSD_256
#define BLOCKS 4
#endif

#ifdef CONFIG_BLK_DEV_SSD_512
#define BLOCKS 8
#endif

#ifdef CONFIG_BLK_DEV_SSD_1024
#define BLOCKS 16
#endif

#ifdef CONFIG_BLK_DEV_SSD_2048
#define BLOCKS 32
#endif

#endif

Or do I need to do more ? Can someone give me some feedback on how those
config.in files work ?

Stefaan


^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2002-05-26 19:38 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-05-24 18:36 Config.in help needed Stefke
2002-05-24 20:37 ` Riley Williams
2002-05-24 21:43   ` Stefke
2002-05-24 22:04     ` pauln
2002-05-25  9:37       ` Stefke
2002-05-25 10:40         ` pauln
2002-05-25 21:05         ` Riley Williams
2002-05-25 22:06           ` Stefke
2002-05-26  8:53           ` Stefke
2002-05-26  9:39             ` Riley Williams
2002-05-26 19:21               ` Stefke
2002-05-26 19:38                 ` Stefke

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox