Make firmware before install
PATCH 1/1 Make firmware before install
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 <[email protected]>
---
v4l/Makefile +1 -1
@@ -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
v4l/firmware/Makefile +1 -0
@@ -7,6 +7,7 @@ default: $(TARGETS) clean: + -rm -f ihex2fw -rm -f $(TARGETS) distclean: clean