From owner-freebsd-hackers@FreeBSD.ORG Mon Oct 27 22:22:37 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 89F831065670 for ; Mon, 27 Oct 2008 22:22:37 +0000 (UTC) (envelope-from mboxindia@gmail.com) Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.170]) by mx1.freebsd.org (Postfix) with ESMTP id 1C8CD8FC1F for ; Mon, 27 Oct 2008 22:22:36 +0000 (UTC) (envelope-from mboxindia@gmail.com) Received: by ug-out-1314.google.com with SMTP id 30so76091ugs.39 for ; Mon, 27 Oct 2008 15:22:35 -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:mime-version:content-type:content-transfer-encoding :content-disposition; bh=daKc0TtZ5LQAbpHnL4rmAQGIYnff0t5IEq+ub/klXtU=; b=o0vwCqZ+1sigKgO1ehrpfwylNh6FOm0gNtwHcv8zMesj/LXjwnNsWvt70+1vYopM4w dQkGojI1jCJoyMI6bsNcAoxPXBE87O/mcfjS6J0QvUfIuHeLvxbWuB/f2Y5lo3FHu/ZO WWEoh67UBakfibvOURMsDRUi7gxOhCnLAXRcY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type :content-transfer-encoding:content-disposition; b=VXcc/FU0fURrPXdqZbw8f4KFCpxbrkf+pTXVJxeRefgTEcQ6mZrwgU5bMMB9wYHwFi llWeULV1Lseam7GQwZ7QuzUf1pabbSv/4A+22aeu1JZsuveAeuB7Mey+17f7dU3b++kr pIkQnVcnT6nEBEWS/22OqR+mPp3mGzvqc1oLs= Received: by 10.103.206.12 with SMTP id i12mr3029919muq.33.1225146155410; Mon, 27 Oct 2008 15:22:35 -0700 (PDT) Received: by 10.103.141.5 with HTTP; Mon, 27 Oct 2008 15:22:35 -0700 (PDT) Message-ID: Date: Tue, 28 Oct 2008 03:52:35 +0530 From: Srinivas To: freebsd-hackers@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Subject: 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: Mon, 27 Oct 2008 22:22:37 -0000 Hello, I am a beginner of freebsd kernel. I have some doubts regarding the Makefile generation using "files" by config. Could you plz answer the following doubts: 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. I have read makefile(of mkmakefile.c in config). What is the usage of "standard", "optional" and "mandatory" and why it is followed by device. What are .m files? What are they used for? Why are some of the rules in the generated makefile *.ln like scsi_all.ln? What is ${NORMAL_LINT} and ${NORMAL_C} in the generated makefile mean? Thanks, Srinivas