Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755324AbZFNHUr (ORCPT ); Sun, 14 Jun 2009 03:20:47 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1754746AbZFNHTz (ORCPT ); Sun, 14 Jun 2009 03:19:55 -0400 Received: from mail-bw0-f213.google.com ([209.85.218.213]:47489 "EHLO mail-bw0-f213.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754049AbZFNHTx (ORCPT ); Sun, 14 Jun 2009 03:19:53 -0400 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; b=Nmh5ynYNA12jLxLSBwI+meVJ6APuIdyXAoZepvUICCvzP5lPbRPPVwY6f+KmYqjGHd Jg/ZHqKOkvy/3JIUi0hA0r7rdn9M62CLGdaboeToqsQYvARhpObGSbvOvnppQRSxx14T jnkQI0Hn2LstDImvoPHdELCkHKy+9NZ9zXkss= Message-ID: <4A34A3AF.5060900@gmail.com> Date: Sun, 14 Jun 2009 09:15:59 +0200 From: Marco User-Agent: Thunderbird 2.0.0.19 (X11/20081227) MIME-Version: 1.0 To: Sam Ravnborg CC: Linux Embedded , Linux Kernel , Linux FS Devel , Daniel Walker Subject: Re: [PATCH 08/14] Pramfs: Makefile and Kconfig References: <4A33A802.8040507@gmail.com> <20090613135604.GB30053@uranus.ravnborg.org> In-Reply-To: <20090613135604.GB30053@uranus.ravnborg.org> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1364 Lines: 56 Sam Ravnborg wrote: >> + >> +config PRAMFS_NOWP >> + bool "Disable PRAMFS write protection" >> + depends on PRAMFS >> + default n >> + help >> + Say Y here to disable the write protect feature of PRAMFS. > n is default so "default n" is not needed. > If you reverse the logic (and add a default y) then.. > >> +ifneq ($(CONFIG_PRAMFS_NOWP),y) >> +pramfs-objs += wprotect.o >> +endif > This is a trivial: > pramfs-$(PRAMFS_WRITE_PROTECT) += wprotect.o > > (I renamed the option to something more descriptive - please do so in the abvoe). > > >> +++ linux-2.6.30/fs/pramfs/Makefile 2009-04-19 11:58:51.000000000 +0200 >> @@ -0,0 +1,13 @@ >> +# >> +# Makefile for the linux pram-filesystem routines. >> +# >> + >> +obj-$(CONFIG_PRAMFS) += pramfs.o >> +obj-$(CONFIG_TEST_MODULE) += pramfs_test.o >> + >> +pramfs-objs := balloc.o dir.o file.o inode.o namei.o super.o symlink.o > > Use: > pramfs-y := balloc.o ... > > This match usa later in this file. > >> + >> +ifneq ($(CONFIG_PRAMFS_NOWP),y) >> +pramfs-objs += wprotect.o >> +endif >> +pramfs-$(CONFIG_PRAMFS_XIP) += xip.o > > > Sam > Ok, thanks. Marco -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/