From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: From: Juergen Beisert Date: Fri, 13 Jul 2012 07:33:45 +0200 References: In-Reply-To: MIME-Version: 1.0 Content-Disposition: inline Message-Id: <201207130733.45561.jbe@pengutronix.de> Subject: Re: [ptxdist] How to apply a patch from internet? Reply-To: ptxdist@pengutronix.de List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: ptxdist-bounces@pengutronix.de Errors-To: ptxdist-bounces@pengutronix.de To: ptxdist@pengutronix.de Cc: Philippe Corbes Hi Philippe, Philippe Corbes wrote: > I would like to know if it's possible to conditionally download and apply a > patch from internet to original sources downloaded from internet.. > If not can you give me a sample code to conditionally apply a patch (I add > a boolean in the .in file and I check this boolean before patch apply) ? > Usually we apply automatically all patch files. You should do it the other way round: apply always the patch, but forward some kind of configure switch or make variable to its build system, to make the patched part compile or not. Regards, Juergen -- Pengutronix e.K. | Juergen Beisert | Linux Solutions for Science and Industry | http://www.pengutronix.de/ | -- ptxdist mailing list ptxdist@pengutronix.de