Ticket #8725: DeviceBuild.txt

File DeviceBuild.txt, 1.2 KB (added by SF/robinwatts, 17 years ago)

Suggested patch to introduce DEVICE_BUILD

Line 
1Index: tools/module.mk
2===================================================================
3--- tools/module.mk (revision 29131)
4+++ tools/module.mk (working copy)
5@@ -8,12 +8,18 @@
6 # Tools directory
7 #######################################################################
8
9+# If we are doing a device build, then we'd better not build the tools.
10+ifdef DEVICE_BUILD
11+TOOLS :=
12+else
13 TOOLS := \
14 tools/convbdf$(EXEEXT) \
15 tools/md5table$(EXEEXT)
16
17 include $(srcdir)/tools/*/module.mk
18
19+endif
20+
21 # Make sure the 'all' / 'clean' targets build/clean the tools, too
22 all: tools
23 clean: clean-tools
24Index: backends/platform/wince/Makefile
25===================================================================
26--- backends/platform/wince/Makefile (revision 29131)
27+++ backends/platform/wince/Makefile (working copy)
28@@ -34,7 +34,12 @@
29 #DISABLE_PARALLACTION = 1
30 DISABLE_CRUISE = 1
31
32+########################################################################
33+## Tell the make system that we are a device build (so don't build
34+## things like the tools).
35
36+DEVICE_BUILD = 1
37+
38 ########################################################################
39 ## Pick which libraries you want to use here
40