From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Stefke" Subject: Config.in help needed Date: Fri, 24 May 2002 20:36:31 +0200 Sender: linux-8086-owner@vger.kernel.org Message-ID: Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Return-path: List-Id: Content-Type: text/plain; charset="us-ascii" To: linux-8086@vger.kernel.org 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