From eea5e74da6f8c1ca2b0670f75c16c690808ce023 Mon Sep 17 00:00:00 2001 From: Mauro Carvalho Chehab Date: Wed, 22 Apr 2009 13:28:11 +0000 Subject: Make firmware before install From: Nicola Soranzo 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 Signed-off-by: Mauro Carvalho Chehab --- v4l/Makefile | 2 +- v4l/firmware/Makefile | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/v4l/Makefile b/v4l/Makefile index ed9cdcbe6..aea333c9c 100644 --- a/v4l/Makefile +++ b/v4l/Makefile @@ -39,7 +39,7 @@ endif # TOPDIR ################################################# # 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 --git a/v4l/firmware/Makefile b/v4l/firmware/Makefile index d108dd0f7..6c6e88ed2 100644 --- a/v4l/firmware/Makefile +++ b/v4l/firmware/Makefile @@ -7,6 +7,7 @@ FW_DIR = /lib/firmware default: $(TARGETS) clean: + -rm -f ihex2fw -rm -f $(TARGETS) distclean: clean -- cgit v1.2.3