From patchwork Wed Apr 22 13:28:11 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nicola Soranzo X-Patchwork-Id: 19355 Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id n3MDl7Sc012765 for ; Wed, 22 Apr 2009 13:47:07 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751644AbZDVNrG (ORCPT ); Wed, 22 Apr 2009 09:47:06 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752283AbZDVNrF (ORCPT ); Wed, 22 Apr 2009 09:47:05 -0400 Received: from smtp.sissa.it ([147.122.11.135]:44218 "EHLO smtp.sissa.it" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751644AbZDVNrF (ORCPT ); Wed, 22 Apr 2009 09:47:05 -0400 X-Greylist: delayed 1147 seconds by postgrey-1.27 at vger.kernel.org; Wed, 22 Apr 2009 09:47:04 EDT Received: from ozzy.localnet (dhpc-2-02.sissa.it [147.122.2.182]) by smtp.sissa.it (Postfix) with ESMTP id 243BA1B48093 for ; Wed, 22 Apr 2009 15:27:50 +0200 (CEST) From: Nicola Soranzo To: Linux Media Subject: [PATCH] Make firmware before install Date: Wed, 22 Apr 2009 15:28:11 +0200 User-Agent: KMail/1.11.2 (Linux/2.6.27.21-170.2.56.fc10.i686; KDE/4.2.2; i686; ; ) MIME-Version: 1.0 Content-Disposition: inline Message-Id: <200904221528.13225.nsoranzo@tiscali.it> Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org Presently with the usual: make && sudo make install firmware is not built during make, but in the second step with root privileges, which should be avoided. This patch adds firmware dependency to the default make target. Moreover, one more file (ihex2fw) should be deleted by firmware clean. Priority: normal Signed-off-by: Nicola Soranzo --- -- To unsubscribe from this list: send the line "unsubscribe linux-media" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff -r 2a6d95947fa1 -r bf39a52e7f49 v4l/Makefile --- a/v4l/Makefile Sun Apr 19 20:21:03 2009 +0000 +++ b/v4l/Makefile Wed Apr 22 15:18:13 2009 +0200 @@ -39,7 +39,7 @@ ################################################# # default compilation rule -default:: config-compat.h Makefile.media links oss +default:: config-compat.h Makefile.media links oss firmware @echo Kernel build directory is $(OUTDIR) $(MAKE) -C $(OUTDIR) SUBDIRS=$(PWD) $(MYCFLAGS) modules ./scripts/rmmod.pl check diff -r 2a6d95947fa1 -r bf39a52e7f49 v4l/firmware/Makefile --- a/v4l/firmware/Makefile Sun Apr 19 20:21:03 2009 +0000 +++ b/v4l/firmware/Makefile Wed Apr 22 15:18:13 2009 +0200 @@ -7,6 +7,7 @@ default: $(TARGETS) clean: + -rm -f ihex2fw -rm -f $(TARGETS) distclean: clean