From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754112AbZBCLsa (ORCPT ); Tue, 3 Feb 2009 06:48:30 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752305AbZBCLsH (ORCPT ); Tue, 3 Feb 2009 06:48:07 -0500 Received: from pfepa.post.tele.dk ([195.41.46.235]:41923 "EHLO pfepa.post.tele.dk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752183AbZBCLsG (ORCPT ); Tue, 3 Feb 2009 06:48:06 -0500 Date: Tue, 3 Feb 2009 12:49:51 +0100 From: Sam Ravnborg To: Victoria Muntean Cc: linux-kernel@vger.kernel.org Subject: Re: [kernel make system] adding pre-check scripts Message-ID: <20090203114951.GA14098@uranus.ravnborg.org> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.1i Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Feb 03, 2009 at 10:28:44AM +0200, Victoria Muntean wrote: > Is there provision in kernel makefiles to execute user-supplied > pre/post add-on scripts ? (by following some convention) > > I have script pre-checks.sh, it checks that .config defines certain parameters > certain way. This is to prevent [build with] accidental redefine of > certain important parameters. > > One possibility is to > ./my-pre-checks.sh && make > But this is not perfect. > It leaves of pre-checks optional easy to forget to run before build. > Is it possible to make "make" execute my pre-script before build. Hi Victoria. We do not have such functionality and unless thre is a broad interest I do not plan to add it either. People usually include this in their 'kmake' scripts or whatever they name it. Sam