Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1761646AbYFHKtS (ORCPT ); Sun, 8 Jun 2008 06:49:18 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1756185AbYFHKtH (ORCPT ); Sun, 8 Jun 2008 06:49:07 -0400 Received: from bombadil.infradead.org ([18.85.46.34]:39862 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755494AbYFHKtG (ORCPT ); Sun, 8 Jun 2008 06:49:06 -0400 Subject: Re: [PATCH] Speed up "make headers_*" From: David Woodhouse To: Sam Ravnborg Cc: Vegard Nossum , linux-kbuild , LKML , Linus Torvalds , Jan Engelhardt In-Reply-To: <20080608104122.GA10545@uranus.ravnborg.org> References: <20080608094730.GA30098@uranus.ravnborg.org> <19f34abd0806080312j2b09179cpa384a0460af5874e@mail.gmail.com> <20080608104122.GA10545@uranus.ravnborg.org> Content-Type: text/plain Date: Sun, 08 Jun 2008 11:49:01 +0100 Message-Id: <1212922141.32207.495.camel@pmac.infradead.org> Mime-Version: 1.0 X-Mailer: Evolution 2.22.1 (2.22.1-2.fc9) Content-Transfer-Encoding: 7bit X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org See http://www.infradead.org/rpr.html Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 870 Lines: 22 On Sun, 2008-06-08 at 12:41 +0200, Sam Ravnborg wrote: > headers_install.pl looks like this now. > I am not happy about the way I call unifdef - can it be > done better? Possibly. unifdef only actually handles "#ifdef __KERNEL__" and "#ifndef __KERNEL__", doesn't it? It shouldn't be too hard to recreate at least that much functionality in perl, surely? Bonus points for making it handle more interesting constructs like "#if defined (KERNEL) || defined (FOO)", and for warning/erroring whenever any ifdefs on CONFIG_xxx would be visible in userspace. But those can come later; we don't have those yet anyway. -- dwmw2 -- 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/