From owner-freebsd-hackers@FreeBSD.ORG Tue Oct 28 09:31:38 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1EC35106566C for ; Tue, 28 Oct 2008 09:31:38 +0000 (UTC) (envelope-from mboxindia@gmail.com) Received: from ey-out-2122.google.com (ey-out-2122.google.com [74.125.78.24]) by mx1.freebsd.org (Postfix) with ESMTP id A1A438FC1F for ; Tue, 28 Oct 2008 09:31:37 +0000 (UTC) (envelope-from mboxindia@gmail.com) Received: by ey-out-2122.google.com with SMTP id 6so966623eyi.7 for ; Tue, 28 Oct 2008 02:31:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=f2U0bwmezq6xvQ7WKz19ttNNfB+t1Q9vPbzJ1jcRU9w=; b=TnuPjQNkNUILJ4KTnZL3+EIxVKD+m7ops7m17fIWJtjWVQY7EXMGmk3Xq21W5H9F31 XRc8qSuublFMgl0o1LzpXhkUu7ZrQor2BYmwsy26wceDw9FYcSeQiiAYqgCqx8J5Q3Fz gAiY7qZSyuKBlHxiaw/zn25wO1w3vNd37qQyU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=Qfh4BumiJkzj6qP1E22tOBzJBFXYT/bjehADRej/VlV8VzJHuUH3Ff1PvXAMb9dBDX a8Jb7IWXXp0p0IXvUC8dcCKJ8yPPKg/OJNu5w7LUs2tVIYoKnd1FzuzRFTJTAUso1AP+ RIVJKMeDNKIjLU8B1fri4JIUjNUWA2z8Lhefc= Received: by 10.103.173.5 with SMTP id a5mr3259436mup.117.1225186296221; Tue, 28 Oct 2008 02:31:36 -0700 (PDT) Received: by 10.103.141.5 with HTTP; Tue, 28 Oct 2008 02:31:36 -0700 (PDT) Message-ID: Date: Tue, 28 Oct 2008 15:01:36 +0530 From: Srinivas To: "Eygene Ryabinkin" In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: Cc: freebsd-hackers@freebsd.org Subject: Re: Usage of "files" for config X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 28 Oct 2008 09:31:38 -0000 Eygene, Your reply is very helpful. Thank you very much. On Tue, Oct 28, 2008 at 1:16 PM, Eygene Ryabinkin wrote: >> I would like to know the usage of files and files.[arch] in sys/conf. >> Basically, I didnt get the advantage of having a common file for >> compilation(like files) rather than an individual Makefile in each >> subdirectory. > > 'files' and 'files.$ARCH' are the input directives for the config(8) > utility. Makefile is produced with the help of these files. The > rationale for having 'files' and 'files.$ARCH' is simple: there are > platform-specific directives and common directives. Still, I didnt get the purpose of having a common "files" file for the kernel to generate Makefile. I am trying to understand the advantage of this approach with the conventional way of having a makefile for each sub-directory(device or module) and recurse from top of kernel with a configuration file dictating what features need to be included in the kernel. Thanks, Srinivas