add igb driver
[build.git] / coblitz.mk
1 #
2 # declare the packages to be built and their dependencies
3 # initial version from Mark Huang
4 # Mark Huang <mlhuang@cs.princeton.edu>
5 # Copyright (C) 2003-2006 The Trustees of Princeton University
6 # rewritten by Thierry Parmentelat - INRIA Sophia Antipolis
7 #
8 # $Id: planetlab.mk 14230 2009-07-03 00:58:17Z thierry $
9 #
10 # see doc in Makefile  
11 #
12
13 #
14 # kernel
15 #
16 # use a package name with srpm in it:
17 # so the source rpm is created by running make srpm in the codebase
18 #
19
20 kernel-MODULES := linux-2.6
21 kernel-SPEC := kernel-2.6.spec
22 kernel-BUILD-FROM-SRPM := yes
23 ifeq "$(HOSTARCH)" "i386"
24 kernel-RPMFLAGS:= --target i686
25 else
26 kernel-RPMFLAGS:= --target $(HOSTARCH)
27 endif
28 KERNELS += kernel
29
30 kernels: $(KERNELS)
31 kernels-clean: $(foreach package,$(KERNELS),$(package)-clean)
32
33 ALL += $(KERNELS)
34 # this is to mark on which image a given rpm is supposed to go
35 IN_BOOTCD += $(KERNELS)
36 IN_VSERVER += $(KERNELS)
37 IN_BOOTSTRAPFS += $(KERNELS)
38 # turns out myplc installs kernel-vserver
39 IN_MYPLC += $(KERNELS)
40
41 #
42 # igb : Intel gigabit ethernet driver 
43 #
44
45 # using some other name than myplc-release, as this is a make target already
46 igb-MODULES := igb
47 igb-SPEC := igb.spec
48 ifeq "$(HOSTARCH)" "i386"
49 igb-RPMFLAGS:= --target i686
50 else
51 igb-RPMFLAGS:= --target $(HOSTARCH)
52 endif
53 igb-DEPEND-DEVEL-RPMS := kernel-devel
54 ALL += igb
55 IN_BOOTSTRAPFS += igb
56 IN_BOOTCD += igb
57
58
59 #
60 # madwifi
61 #
62 madwifi-MODULES := madwifi
63 madwifi-SPEC := madwifi.spec
64 madwifi-BUILD-FROM-SRPM := yes
65 madwifi-DEPEND-DEVEL-RPMS := kernel-devel
66 madwifi-SPECVARS = kernel_version=$(kernel.rpm-version) \
67         kernel_release=$(kernel.rpm-release) \
68         kernel_arch=$(kernel.rpm-arch)
69 #ALL += madwifi
70 #IN_BOOTSTRAPFS += madwifi
71
72 #
73 # util-vserver
74 #
75 util-vserver-MODULES := util-vserver
76 util-vserver-SPEC := util-vserver.spec
77 util-vserver-RPMFLAGS:= --without dietlibc
78 ALL += util-vserver
79 IN_BOOTSTRAPFS += util-vserver
80
81 #
82 # libnl - local import
83 # we need either 1.1 or at least 1.0.pre6
84 # rebuild this on centos5 - see kexcludes in build.common
85 #
86 local_libnl=false
87 ifeq "$(DISTRONAME)" "centos5"
88 local_libnl=true
89 endif
90
91 ifeq "$(local_libnl)" "true"
92 libnl-MODULES := libnl
93 libnl-SPEC := libnl.spec
94 libnl-BUILD-FROM-SRPM := yes
95 # this sounds like the thing to do, but in fact linux/if_vlan.h comes with kernel-headers
96 libnl-DEPEND-DEVEL-RPMS := kernel-devel kernel-headers
97 ALL += libnl
98 IN_BOOTSTRAPFS += libnl
99 endif
100
101 #
102 # util-vserver-pl
103 #
104 util-vserver-pl-MODULES := util-vserver-pl
105 util-vserver-pl-SPEC := util-vserver-pl.spec
106 util-vserver-pl-DEPEND-DEVEL-RPMS := util-vserver-lib util-vserver-devel util-vserver-core 
107 ifeq "$(local_libnl)" "true"
108 util-vserver-pl-DEPEND-DEVEL-RPMS += libnl libnl-devel
109 endif
110 ALL += util-vserver-pl
111 IN_BOOTSTRAPFS += util-vserver-pl
112
113 #
114 # NodeUpdate
115 #
116 nodeupdate-MODULES := NodeUpdate
117 nodeupdate-SPEC := NodeUpdate.spec
118 ALL += nodeupdate
119 IN_BOOTSTRAPFS += nodeupdate
120
121 #
122 # ipod
123 #
124 ipod-MODULES := PingOfDeath
125 ipod-SPEC := ipod.spec
126 ALL += ipod
127 IN_BOOTSTRAPFS += ipod
128
129 #
130 # NodeManager
131 #
132 nodemanager-MODULES := NodeManager
133 nodemanager-SPEC := NodeManager.spec
134 ALL += nodemanager
135 IN_BOOTSTRAPFS += nodemanager
136
137 #
138 # pl_sshd
139 #
140 sshd-MODULES := pl_sshd
141 sshd-SPEC := pl_sshd.spec
142 #ALL += sshd
143 #IN_BOOTSTRAPFS += sshd
144
145 #
146 # codemux: Port 80 demux
147 #
148 codemux-MODULES := CoDemux
149 codemux-SPEC   := codemux.spec
150 codemux-RPMBUILD := sudo bash ./rpmbuild.sh
151 ALL += codemux
152 IN_BOOTSTRAPFS += codemux
153
154 #
155 # fprobe-ulog
156 #
157 fprobe-ulog-MODULES := fprobe-ulog
158 fprobe-ulog-SPEC := fprobe-ulog.spec
159 ALL += fprobe-ulog
160 IN_BOOTSTRAPFS += fprobe-ulog
161
162 #
163 # pf2slice
164 #
165 pf2slice-MODULES := pf2slice
166 pf2slice-SPEC := pf2slice.spec
167 ALL += pf2slice
168
169 #
170 # PlanetLab Mom: Cleans up your mess
171 #
172 mom-MODULES := Mom
173 mom-SPEC := pl_mom.spec
174 ALL += mom
175 IN_BOOTSTRAPFS += mom
176
177 #
178 # iptables
179 #
180 iptables-MODULES := iptables
181 iptables-SPEC := iptables.spec
182 iptables-DEPEND-DEVEL-RPMS := kernel-devel kernel-headers
183 ALL += iptables
184 IN_BOOTSTRAPFS += iptables
185
186 #
187 # iproute
188 #
189 iproute-MODULES := iproute2
190 iproute-SPEC := iproute.spec
191 ALL += iproute
192 IN_BOOTSTRAPFS += iproute
193 IN_VSERVER += iproute
194 IN_BOOTCD += iproute
195
196 #
197 # inotify-tools - local import
198 # rebuild this on centos5 (not found) - see kexcludes in build.common
199 #
200 local_inotify_tools=false
201 ifeq "$(DISTRONAME)" "centos5"
202 local_inotify_tools=true
203 endif
204
205 ifeq "$(local_inotify_tools)" "true"
206 inotify-tools-MODULES := inotify-tools
207 inotify-tools-SPEC := inotify-tools.spec
208 inotify-tools-BUILD-FROM-SRPM := yes
209 IN_BOOTSTRAPFS += inotify-tools
210 ALL += inotify-tools
211 endif
212
213 #
214 # vsys
215 #
216 vsys-MODULES := vsys
217 vsys-SPEC := vsys.spec
218 ifeq "$(local_inotify_tools)" "true"
219 vsys-DEPEND-DEVEL-RPMS := inotify-tools inotify-tools-devel
220 endif
221 IN_BOOTSTRAPFS += vsys
222 ALL += vsys
223
224 #
225 # vsys-scripts
226 #
227 vsys-scripts-MODULES := vsys-scripts
228 vsys-scripts-SPEC := vsys-scripts.spec
229 IN_BOOTSTRAPFS += vsys-scripts
230 ALL += vsys-scripts
231
232 #
233 # PLCAPI
234 #
235 PLCAPI-MODULES := PLCAPI
236 PLCAPI-SPEC := PLCAPI.spec
237 ALL += PLCAPI
238 IN_MYPLC += PLCAPI
239
240 #
241 # drupal
242
243 drupal-MODULES := drupal
244 drupal-SPEC := drupal.spec
245 drupal-BUILD-FROM-SRPM := yes
246 ALL += drupal
247 IN_MYPLC += drupal
248
249 #
250 # use the plewww module instead
251 #
252 plewww-MODULES := PLEWWW
253 plewww-SPEC := plewww.spec
254 ALL += plewww
255 IN_MYPLC += plewww
256
257 #
258 # www-register-wizard
259 #
260 www-register-wizard-MODULES := www-register-wizard
261 www-register-wizard-SPEC := www-register-wizard.spec
262 ALL += www-register-wizard
263 IN_MYPLC += www-register-wizard
264
265 #
266 # monitor
267 #
268 monitor-MODULES := Monitor
269 monitor-SPEC := Monitor.spec
270 ALL += monitor
271 IN_BOOTSTRAPFS += monitor
272
273 #
274 # PLC RT
275 #
276 plcrt-MODULES := PLCRT
277 plcrt-SPEC := plcrt.spec
278 ALL += plcrt
279
280 #
281 # zabbix
282 #
283 zabbix-MODULES := Monitor
284 zabbix-SPEC := zabbix.spec
285 zabbix-BUILD-FROM-SRPM := yes
286 ALL += zabbix
287
288 #
289 # pyopenssl
290 #
291 pyopenssl-MODULES := pyopenssl
292 pyopenssl-SPEC := pyOpenSSL.spec
293 pyopenssl-BUILD-FROM-SRPM := yes
294 ALL += pyopenssl
295
296
297 #
298 # sfa - Slice Facility Architecture - fka geniwrapper
299 #
300 sfa-MODULES := sfa
301 sfa-SPEC := sfa.spec
302 ALL += sfa
303
304 #
305 # nodeconfig
306 #
307 nodeconfig-MODULES := nodeconfig build
308 nodeconfig-SPEC := nodeconfig.spec
309 ALL += nodeconfig
310 IN_MYPLC += nodeconfig
311
312 #
313 # bootmanager
314 #
315 bootmanager-MODULES := BootManager
316 bootmanager-SPEC := bootmanager.spec
317 ALL += bootmanager
318 IN_MYPLC += bootmanager
319
320 #
321 # pypcilib : used in bootcd
322
323 pypcilib-MODULES := pypcilib
324 pypcilib-SPEC := pypcilib.spec
325 ALL += pypcilib
326 IN_BOOTCD += pypcilib
327
328 #
329 # pyplnet
330 #
331 pyplnet-MODULES := pyplnet
332 pyplnet-SPEC := pyplnet.spec
333 ALL += pyplnet
334 IN_BOOTSTRAPFS += pyplnet
335 IN_MYPLC += pyplnet
336 IN_BOOTCD += pyplnet
337
338 #
339 # bootcd
340 #
341 bootcd-MODULES := BootCD build
342 bootcd-SPEC := bootcd.spec
343 bootcd-RPMBUILD := sudo bash ./rpmbuild.sh
344 bootcd-DEPEND-PACKAGES := $(IN_BOOTCD)
345 bootcd-DEPEND-FILES := RPMS/yumgroups.xml
346 bootcd-RPMDATE := yes
347 ALL += bootcd
348 IN_MYPLC += bootcd
349
350 #
351 # vserver : reference image for slices
352 #
353 vserver-MODULES := VserverReference build
354 vserver-SPEC := vserver-reference.spec
355 vserver-DEPEND-PACKAGES := $(IN_VSERVER)
356 vserver-DEPEND-FILES := RPMS/yumgroups.xml
357 vserver-RPMDATE := yes
358 ALL += vserver
359 IN_BOOTSTRAPFS += vserver
360
361 #
362 # bootstrapfs
363 #
364 bootstrapfs-MODULES := BootstrapFS build
365 bootstrapfs-SPEC := bootstrapfs.spec
366 bootstrapfs-RPMBUILD := sudo bash ./rpmbuild.sh
367 bootstrapfs-DEPEND-PACKAGES := $(IN_BOOTSTRAPFS)
368 bootstrapfs-DEPEND-FILES := RPMS/yumgroups.xml
369 bootstrapfs-RPMDATE := yes
370 ALL += bootstrapfs
371 IN_MYPLC += bootstrapfs
372
373 #
374 # noderepo
375 #
376 # all rpms resulting from packages marked as being in bootstrapfs and vserver
377 NODEREPO_RPMS = $(foreach package,$(IN_BOOTSTRAPFS) $(IN_VSERVER),$($(package).rpms))
378 # replace space with +++ (specvars cannot deal with spaces)
379 SPACE=$(subst x, ,x)
380 NODEREPO_RPMS_3PLUS = $(subst $(SPACE),+++,$(NODEREPO_RPMS))
381
382 noderepo-MODULES := BootstrapFS 
383 noderepo-SPEC := noderepo.spec
384 noderepo-RPMBUILD := sudo bash ./rpmbuild.sh
385 # package requires all regular packages
386 noderepo-DEPEND-PACKAGES := $(IN_BOOTSTRAPFS) $(IN_VSERVER)
387 noderepo-DEPEND-FILES := RPMS/yumgroups.xml
388 #export rpm list to the specfile
389 noderepo-SPECVARS = node_rpms_plus=$(NODEREPO_RPMS_3PLUS)
390 noderepo-RPMDATE := yes
391 ALL += noderepo
392 IN_MYPLC += noderepo
393
394 #
395 # MyPLC : lightweight packaging, dependencies are yum-installed in a vserver
396 #
397 myplc-MODULES := MyPLC build 
398 myplc-SPEC := myplc.spec
399 myplc-DEPEND-FILES := myplc-release RPMS/yumgroups.xml
400 ALL += myplc
401
402 # myplc-docs only contains docs for PLCAPI and NMAPI, but
403 # we still need to pull MyPLC, as it is where the specfile lies, 
404 # together with the utility script docbook2drupal.sh
405 myplc-docs-MODULES := MyPLC PLCAPI NodeManager Monitor
406 myplc-docs-SPEC := myplc-docs.spec
407 ALL += myplc-docs
408
409 # using some other name than myplc-release, as this is a make target already
410 release-MODULES := MyPLC
411 release-SPEC := myplc-release.spec
412 release-RPMDATE := yes
413 ALL += release