source: branches/philmoz/makefile.fw @ 1340

Revision 1340, 1020 bytes checked in by philmoz, 20 months ago (diff)

Update development branch (merged from main trunk + updates to makefile for batch building).

Line 
1
2# Define empty recipes for all the included makefiles (including this one)
3# This stops gmake from attempting to see if the makefiles need to be rebuilt
4makefile.fw: ;
5
6# Define the list of camera/firmware vresions that are not included in the 'autobuild'
7# Entries here should be in the form CAMERA-FIRMWARE - e.g. g12-100c
8# To exclude all firmware versions for a specific camera add the camera
9# to the list in makefile.cam
10SKIP_AUTOBUILD=""
11
12# Read list of camera firmware directories under platform/$(CAM)/sub
13FW = $(shell ls platform/$(CAM)/sub)
14
15.PHONY: all $(FW)
16
17# Batch build target - build all the firmware directories
18all: $(FW)
19
20# Build target for each entry found in platform/$(CAM)/sub
21# If it's a directory then use the main Makefile to build using the supplied $(ACTION)
22$(FW):
23        if [ -d platform/$(CAM)/sub/$@ ] && [ $(CAM)-$@ != "$(findstring $(CAM)-$@,$(SKIP_AUTOBUILD))" ]; then \
24                $(MAKE) -s --no-print-directory FASTLOAD=$(FASTLOAD) PLATFORM=$(CAM) PLATFORMSUB=$@ NO_INC_BUILD=1 $(ACTION); \
25        fi
Note: See TracBrowser for help on using the repository browser.