public inbox for linux-8086@vger.kernel.org
 help / color / mirror / Atom feed
From: "Stefke" <stefke@whoami.be>
To: linux-8086@vger.kernel.org
Subject: Config.in help needed
Date: Fri, 24 May 2002 20:36:31 +0200	[thread overview]
Message-ID: <JKEJIKMKCNGLACIGDMLLMEBICFAA.stefke@whoami.be> (raw)

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


             reply	other threads:[~2002-05-24 18:36 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-05-24 18:36 Stefke [this message]
2002-05-24 20:37 ` Config.in help needed 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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=JKEJIKMKCNGLACIGDMLLMEBICFAA.stefke@whoami.be \
    --to=stefke@whoami.be \
    --cc=linux-8086@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox