]> git.proxmox.com Git - pve-kernel-jessie.git/blob - Makefile
update drbd9 driver (and remove custom fixes)
[pve-kernel-jessie.git] / Makefile
1 RELEASE=4.0
2
3 KERNEL_VER=4.2.0
4 PKGREL=10
5 # also i7clude firmware of previous versrion into
6 # the fw package: fwlist-2.6.32-PREV-pve
7 KREL=1
8
9 KERNEL_SRC=ubuntu-wily
10 KERNELSRCTAR=${KERNEL_SRC}.tgz
11
12 EXTRAVERSION=-${KREL}-pve
13 KVNAME=${KERNEL_VER}${EXTRAVERSION}
14 PACKAGE=pve-kernel-${KVNAME}
15 HDRPACKAGE=pve-headers-${KVNAME}
16
17 ARCH=amd64
18 GITVERSION:=$(shell cat .git/refs/heads/master)
19
20 TOP=$(shell pwd)
21
22 KERNEL_CFG_ORG=config-${KERNEL_VER}.org
23
24 FW_VER=1.1
25 FW_REL=7
26 FW_DEB=pve-firmware_${FW_VER}-${FW_REL}_all.deb
27
28 # does not compile with kernel 3.19.8
29 #E1000EDIR=e1000e-3.1.0.2
30 #E1000ESRC=${E1000EDIR}.tar.gz
31
32 #IGBDIR=igb-5.3.2
33 #IGBSRC=${IGBDIR}.tar.gz
34
35 # does not compile with kernel 4.1
36 #IXGBEDIR=ixgbe-4.1.2
37 #IXGBESRC=${IXGBEDIR}.tar.gz
38
39 # does not compile with kernel 3.19.8
40 #I40EDIR=i40e-1.2.38
41 #I40ESRC=${I40EDIR}.tar.gz
42
43 # looks up to date with kernel 3.19.8
44 #BNX2DIR=netxtreme2-7.11.05
45 #BNX2SRC=${BNX2DIR}.tar.gz
46
47 # does not compile with kernel 3.19.8
48 #AACRAIDVER=1.2.1-40700
49 #AACRAIDDIR=aacraid-${AACRAIDVER}.src
50 #AACRAIDSRC=aacraid-linux-src-${AACRAIDVER}.tgz
51
52 # does not compile with kernel 3.19.8
53 HPSAVER=3.4.8
54 HPSADIR=hpsa-${HPSAVER}
55 HPSASRC=${HPSADIR}-140.tar.bz2
56
57 # driver does not compile
58 #MEGARAID_DIR=megaraid_sas-06.703.11.00
59 #MEGARAID_SRC=${MEGARAID_DIR}-src.tar.gz
60
61 #ARECADIR=arcmsr-1.30.0X.19-140509
62 #ARECASRC=${ARECADIR}.zip
63
64 # this one does not compile with newer 3.10 kernels!
65 #RR272XSRC=RR272x_1x-Linux-Src-v1.5-130325-0732.tar.gz
66 #RR272XDIR=rr272x_1x-linux-src-v1.5
67
68 SPLDIR=pkg-spl
69 SPLSRC=pkg-spl.tar.gz
70 ZFSDIR=pkg-zfs
71 ZFSSRC=pkg-zfs.tar.gz
72 ZFS_MODULES=zfs.ko zavl.ko znvpair.ko zunicode.ko zcommon.ko zpios.ko
73 SPL_MODULES=spl.ko splat.ko
74
75 # DRBD9
76 DRBDVER=9.0.0
77 DRBDDIR=drbd-${DRBDVER}
78 DRBDSRC=${DRBDDIR}.tar.gz
79 DRBD_MODULES=drbd.ko drbd_transport_tcp.ko
80
81 DST_DEB=${PACKAGE}_${KERNEL_VER}-${PKGREL}_${ARCH}.deb
82 HDR_DEB=${HDRPACKAGE}_${KERNEL_VER}-${PKGREL}_${ARCH}.deb
83 PVEPKG=proxmox-ve
84 PVE_DEB=${PVEPKG}_${RELEASE}-${PKGREL}_all.deb
85
86 all: check_gcc ${DST_DEB} ${FW_DEB} ${HDR_DEB} ${PVE_DEB}
87
88 ${PVE_DEB} pve: proxmox-ve/control proxmox-ve/postinst
89 rm -rf proxmox-ve/data
90 mkdir -p proxmox-ve/data/DEBIAN
91 mkdir -p proxmox-ve/data/usr/share/doc/${PVEPKG}/
92 install -m 0644 proxmox-ve/proxmox-release\@proxmox.com.pubkey proxmox-ve/data/usr/share/doc/${PVEPKG}
93 sed -e 's/@KVNAME@/${KVNAME}/' -e 's/@KERNEL_VER@/${KERNEL_VER}/' -e 's/@RELEASE@/${RELEASE}/' -e 's/@PKGREL@/${PKGREL}/' <proxmox-ve/control >proxmox-ve/data/DEBIAN/control
94 install -m 0755 proxmox-ve/postinst proxmox-ve/data/DEBIAN/postinst
95 echo "git clone git://git.proxmox.com/git/pve-kernel-4.0.git\\ngit checkout ${GITVERSION}" > proxmox-ve/data/usr/share/doc/${PVEPKG}/SOURCE
96 install -m 0644 proxmox-ve/copyright proxmox-ve/data/usr/share/doc/${PVEPKG}
97 install -m 0644 proxmox-ve/changelog.Debian proxmox-ve/data/usr/share/doc/${PVEPKG}
98 gzip --best proxmox-ve/data/usr/share/doc/${PVEPKG}/changelog.Debian
99 dpkg-deb --build proxmox-ve/data ${PVE_DEB}
100
101 # see https://wiki.ubuntu.com/Kernel/Dev/KernelGitGuide
102 # changelog: https://git.launchpad.net/~ubuntu-kernel/ubuntu/+source/linux/+git/wily/log/
103 .PHONY: download
104 download:
105 rm -rf ${KERNEL_SRC} ${KERNELSRCTAR}
106 #git clone git://kernel.ubuntu.com/ubuntu/ubuntu-vivid.git
107 git clone git://git.launchpad.net/~ubuntu-kernel/ubuntu/+source/linux/+git/wily ${KERNEL_SRC}
108 tar czf ${KERNELSRCTAR} --exclude .git ${KERNEL_SRC}
109
110 check_gcc:
111 ifeq ($(CC), cc)
112 gcc --version|grep "4\.9" || false
113 else
114 $(CC) --version|grep "4\.9" || false
115 endif
116
117 ${DST_DEB}: data control.in prerm.in postinst.in postrm.in copyright changelog.Debian
118 mkdir -p data/DEBIAN
119 sed -e 's/@KERNEL_VER@/${KERNEL_VER}/' -e 's/@KVNAME@/${KVNAME}/' -e 's/@PKGREL@/${PKGREL}/' <control.in >data/DEBIAN/control
120 sed -e 's/@@KVNAME@@/${KVNAME}/g' <prerm.in >data/DEBIAN/prerm
121 chmod 0755 data/DEBIAN/prerm
122 sed -e 's/@@KVNAME@@/${KVNAME}/g' <postinst.in >data/DEBIAN/postinst
123 chmod 0755 data/DEBIAN/postinst
124 sed -e 's/@@KVNAME@@/${KVNAME}/g' <postrm.in >data/DEBIAN/postrm
125 chmod 0755 data/DEBIAN/postrm
126 install -D -m 644 copyright data/usr/share/doc/${PACKAGE}/copyright
127 install -D -m 644 changelog.Debian data/usr/share/doc/${PACKAGE}/changelog.Debian
128 echo "git clone git://git.proxmox.com/git/pve-kernel-3.2.0.git\\ngit checkout ${GITVERSION}" > data/usr/share/doc/${PACKAGE}/SOURCE
129 gzip -f --best data/usr/share/doc/${PACKAGE}/changelog.Debian
130 rm -f data/lib/modules/${KVNAME}/source
131 rm -f data/lib/modules/${KVNAME}/build
132 dpkg-deb --build data ${DST_DEB}
133 lintian ${DST_DEB}
134
135
136 fwlist-${KVNAME}: data
137 ./find-firmware.pl data/lib/modules/${KVNAME} >fwlist.tmp
138 mv fwlist.tmp $@
139
140 data: .compile_mark ${SPL_MODULES} ${ZFS_MODULES} ${DRBD_MODULES}
141 rm -rf data tmp; mkdir -p tmp/lib/modules/${KVNAME}
142 mkdir tmp/boot
143 install -m 644 ${KERNEL_SRC}/.config tmp/boot/config-${KVNAME}
144 install -m 644 ${KERNEL_SRC}/System.map tmp/boot/System.map-${KVNAME}
145 install -m 644 ${KERNEL_SRC}/arch/x86_64/boot/bzImage tmp/boot/vmlinuz-${KVNAME}
146 cd ${KERNEL_SRC}; make INSTALL_MOD_PATH=../tmp/ modules_install
147 ## install latest ibg driver
148 #install -m 644 igb.ko tmp/lib/modules/${KVNAME}/kernel/drivers/net/ethernet/intel/igb/
149 ## install latest ixgbe driver
150 #install -m 644 ixgbe.ko tmp/lib/modules/${KVNAME}/kernel/drivers/net/ethernet/intel/ixgbe/
151 ## install hpsa driver
152 #install -m 644 hpsa.ko tmp/lib/modules/${KVNAME}/kernel/drivers/scsi/
153 # install zfs drivers
154 install -d -m 0755 tmp/lib/modules/${KVNAME}/zfs
155 install -m 644 ${SPL_MODULES} ${ZFS_MODULES} tmp/lib/modules/${KVNAME}/zfs
156 # install drbd9
157 install -m 644 ${DRBD_MODULES} tmp/lib/modules/${KVNAME}/kernel/drivers/block/drbd
158 # remove firmware
159 rm -rf tmp/lib/firmware
160 # strip debug info
161 find tmp/lib/modules -name \*.ko -print | while read f ; do strip --strip-debug "$$f"; done
162 # finalize
163 depmod -b tmp/ ${KVNAME}
164 mv tmp data
165
166 PVE_CONFIG_OPTS= \
167 -m CONFIG_CEPH_FS \
168 -m CONFIG_BLK_DEV_NBD \
169 -m CONFIG_BLK_DEV_RBD \
170 -m CONFIG_BCACHE \
171 -m CONFIG_JFS_FS \
172 -m CONFIG_HFS_FS \
173 -m CONFIG_HFSPLUS_FS \
174 -e CONFIG_BRIDGE \
175 -e CONFIG_BRIDGE_NETFILTER \
176 -e CONFIG_BLK_DEV_SD \
177 -e CONFIG_BLK_DEV_SR \
178 -e CONFIG_BLK_DEV_DM \
179 -d CONFIG_INPUT_EVBUG \
180 -d CONFIG_CPU_FREQ_DEFAULT_GOV_ONDEMAND \
181 -e CONFIG_CPU_FREQ_DEFAULT_GOV_PERFORMANCE \
182 -d CONFIG_MODULE_SIG \
183 -d CONFIG_MEMCG_DISABLED \
184 -e CONFIG_MEMCG_SWAP_ENABLED \
185 -e CONFIG_MEMCG_KMEM \
186 -d CONFIG_DEFAULT_CFQ \
187 --set-str CONFIG_DEFAULT_IOSCHED deadline \
188 -d CONFIG_DEFAULT_SECURITY_DAC \
189 -e CONFIG_DEFAULT_SECURITY_APPARMOR \
190 --set-str CONFIG_DEFAULT_SECURITY apparmor
191
192 .compile_mark: ${KERNEL_SRC}/README ${KERNEL_CFG_ORG}
193 cp ${KERNEL_CFG_ORG} ${KERNEL_SRC}/.config
194 cd ${KERNEL_SRC}; ./scripts/config ${PVE_CONFIG_OPTS}
195 cd ${KERNEL_SRC}; make oldconfig
196 cd ${KERNEL_SRC}; make -j 8
197 touch $@
198
199 ${KERNEL_SRC}/README ${KERNEL_CFG_ORG}: ${KERNELSRCTAR}
200 rm -rf ${KERNEL_SRC}
201 tar xf ${KERNELSRCTAR}
202 cat ${KERNEL_SRC}/debian.master/config/config.common.ubuntu ${KERNEL_SRC}/debian.master/config/amd64/config.common.amd64 ${KERNEL_SRC}/debian.master/config/amd64/config.flavour.generic > ${KERNEL_CFG_ORG}
203 # see https://github.com/zfsonlinux/zfs/issues/3511
204 # should be fixed with zfs 0.6.5
205 cd ${KERNEL_SRC}; patch -p1 <../0001-Revert-block-loop-switch-to-VFS-ITER_BVEC.patch
206 cd ${KERNEL_SRC}; patch -p1 <../bridge-patch.diff
207 #cd ${KERNEL_SRC}; patch -p1 <../bridge-forward-ipv6-neighbor-solicitation.patch
208 #cd ${KERNEL_SRC}; patch -p1 <../add-empty-ndo_poll_controller-to-veth.patch
209 #cd ${KERNEL_SRC}; patch -p1 <../override_for_missing_acs_capabilities.patch
210 #cd ${KERNEL_SRC}; patch -p1 <../vhost-net-extend-device-allocation-to-vmalloc.patch
211 sed -i ${KERNEL_SRC}/Makefile -e 's/^EXTRAVERSION.*$$/EXTRAVERSION=${EXTRAVERSION}/'
212 touch $@
213
214 aacraid.ko: .compile_mark ${AACRAIDSRC}
215 rm -rf ${AACRAIDDIR}
216 mkdir ${AACRAIDDIR}
217 cd ${AACRAIDDIR};tar xzf ../${AACRAIDSRC}
218 cd ${AACRAIDDIR};rpm2cpio aacraid-${AACRAIDVER}.src.rpm|cpio -i
219 cd ${AACRAIDDIR};tar xf aacraid_source.tgz
220 mkdir -p /lib/modules/${KVNAME}
221 ln -sf ${TOP}/${KERNEL_SRC} /lib/modules/${KVNAME}/build
222 make -C ${TOP}/${KERNEL_SRC} M=${TOP}/${AACRAIDDIR} modules
223 cp ${AACRAIDDIR}/aacraid.ko .
224
225 hpsa.ko hpsa: .compile_mark ${HPSASRC}
226 rm -rf ${HPSADIR}
227 tar xf ${HPSASRC}
228 # sed -i ${HPSADIR}/drivers/scsi/hpsa_kernel_compat.h -e 's/^\/\* #define RHEL7.*/#define RHEL7/'
229 mkdir -p /lib/modules/${KVNAME}
230 ln -sf ${TOP}/${KERNEL_SRC} /lib/modules/${KVNAME}/build
231 make -C ${TOP}/${KERNEL_SRC} M=${TOP}/${HPSADIR}/drivers/scsi modules
232 cp ${HPSADIR}/drivers/scsi/hpsa.ko hpsa.ko
233
234 e1000e.ko e1000e: .compile_mark ${E1000ESRC}
235 rm -rf ${E1000EDIR}
236 tar xf ${E1000ESRC}
237 mkdir -p /lib/modules/${KVNAME}
238 ln -sf ${TOP}/${KERNEL_SRC} /lib/modules/${KVNAME}/build
239 cd ${E1000EDIR}/src; make BUILD_KERNEL=${KVNAME}
240 cp ${E1000EDIR}/src/e1000e.ko e1000e.ko
241
242 igb.ko igb: .compile_mark ${IGBSRC}
243 rm -rf ${IGBDIR}
244 tar xf ${IGBSRC}
245 mkdir -p /lib/modules/${KVNAME}
246 ln -sf ${TOP}/${KERNEL_SRC} /lib/modules/${KVNAME}/build
247 cd ${IGBDIR}/src; make BUILD_KERNEL=${KVNAME}
248 cp ${IGBDIR}/src/igb.ko igb.ko
249
250 ixgbe.ko ixgbe: .compile_mark ${IXGBESRC}
251 rm -rf ${IXGBEDIR}
252 tar xf ${IXGBESRC}
253 mkdir -p /lib/modules/${KVNAME}
254 ln -sf ${TOP}/${KERNEL_SRC} /lib/modules/${KVNAME}/build
255 cd ${IXGBEDIR}/src; make CFLAGS_EXTRA="-DIXGBE_NO_LRO" BUILD_KERNEL=${KVNAME}
256 cp ${IXGBEDIR}/src/ixgbe.ko ixgbe.ko
257
258 i40e.ko i40e: .compile_mark ${I40ESRC}
259 rm -rf ${I40EDIR}
260 tar xf ${I40ESRC}
261 mkdir -p /lib/modules/${KVNAME}
262 ln -sf ${TOP}/${KERNEL_SRC} /lib/modules/${KVNAME}/build
263 cd ${I40EDIR}/src; make BUILD_KERNEL=${KVNAME}
264 cp ${I40EDIR}/src/i40e.ko i40e.ko
265
266 bnx2.ko cnic.ko bnx2x.ko: ${BNX2SRC}
267 rm -rf ${BNX2DIR}
268 tar xf ${BNX2SRC}
269 mkdir -p /lib/modules/${KVNAME}
270 ln -sf ${TOP}/${KERNEL_SRC} /lib/modules/${KVNAME}/build
271 cd ${BNX2DIR}; make -C bnx2/src KVER=${KVNAME}
272 cd ${BNX2DIR}; make -C bnx2x/src KVER=${KVNAME}
273 cp `find ${BNX2DIR} -name bnx2.ko -o -name cnic.ko -o -name bnx2x.ko` .
274
275 arcmsr.ko: .compile_mark ${ARECASRC}
276 rm -rf ${ARECADIR}
277 mkdir ${ARECADIR}; cd ${ARECADIR}; unzip ../${ARECASRC}
278 mkdir -p /lib/modules/${KVNAME}
279 ln -sf ${TOP}/${KERNEL_SRC} /lib/modules/${KVNAME}/build
280 cd ${ARECADIR}; make -C ${TOP}/${KERNEL_SRC} SUBDIRS=${TOP}/${ARECADIR} modules
281 cp ${ARECADIR}/arcmsr.ko arcmsr.ko
282
283 ${SPL_MODULES}: .compile_mark ${SPLSRC}
284 rm -rf ${SPLDIR}
285 tar xf ${SPLSRC}
286 cd ${SPLDIR}; ./autogen.sh
287 cd ${SPLDIR}; ./configure --with-config=kernel --with-linux=${TOP}/${KERNEL_SRC} --with-linux-obj=${TOP}/${KERNEL_SRC}
288 cd ${SPLDIR}; make
289 cp ${SPLDIR}/module/spl/spl.ko spl.ko
290 cp ${SPLDIR}/module/splat/splat.ko splat.ko
291
292 ${ZFS_MODULES}: .compile_mark ${ZFSSRC}
293 rm -rf ${ZFSDIR}
294 tar xf ${ZFSSRC}
295 cd ${ZFSDIR}; ./autogen.sh
296 cd ${ZFSDIR}; ./configure --with-spl=${TOP}/${SPLDIR} --with-spl-obj=${TOP}/${SPLDIR} --with-config=kernel --with-linux=${TOP}/${KERNEL_SRC} --with-linux-obj=${TOP}/${KERNEL_SRC}
297 cd ${ZFSDIR}; make
298 cp ${ZFSDIR}/module/zfs/zfs.ko zfs.ko
299 cp ${ZFSDIR}/module/avl/zavl.ko zavl.ko
300 cp ${ZFSDIR}/module/nvpair/znvpair.ko znvpair.ko
301 cp ${ZFSDIR}/module/unicode/zunicode.ko zunicode.ko
302 cp ${ZFSDIR}/module/zcommon/zcommon.ko zcommon.ko
303 cp ${ZFSDIR}/module/zpios/zpios.ko zpios.ko
304
305 .PHONY: update-drbd
306 update-drbd:
307 rm -rf ${DRBDDIR} ${DRBDSRC} drbd-9.0
308 git clone --recursive git://git.drbd.org/drbd-9.0
309 cd drbd-9.0; make tarball
310 mv drbd-9.0/${DRBDSRC} ${DRBDSRC}
311
312 .PHONY: drbd
313 drbd ${DRBD_MODULES}: .compile_mark ${DRBDSRC}
314 rm -rf ${DRBDDIR}
315 tar xzf ${DRBDSRC}
316 mkdir -p /lib/modules/${KVNAME}
317 ln -sf ${TOP}/${KERNEL_SRC} /lib/modules/${KVNAME}/build
318 cd ${DRBDDIR}; make KVER=${KVNAME}
319 mv ${DRBDDIR}/drbd/drbd.ko drbd.ko
320 mv ${DRBDDIR}/drbd/drbd_transport_tcp.ko drbd_transport_tcp.ko
321
322 #iscsi_trgt.ko: .compile_mark ${ISCSITARGETSRC}
323 # rm -rf ${ISCSITARGETDIR}
324 # tar xf ${ISCSITARGETSRC}
325 # cd ${ISCSITARGETDIR}; make KSRC=${TOP}/${KERNEL_SRC}
326 # cp ${ISCSITARGETDIR}/kernel/iscsi_trgt.ko iscsi_trgt.ko
327
328 headers_tmp := $(CURDIR)/tmp-headers
329 headers_dir := $(headers_tmp)/usr/src/linux-headers-${KVNAME}
330
331 ${HDR_DEB} hdr: .compile_mark headers-control.in headers-postinst.in
332 rm -rf $(headers_tmp)
333 install -d $(headers_tmp)/DEBIAN $(headers_dir)/include/
334 sed -e 's/@KERNEL_VER@/${KERNEL_VER}/' -e 's/@KVNAME@/${KVNAME}/' -e 's/@PKGREL@/${PKGREL}/' <headers-control.in >$(headers_tmp)/DEBIAN/control
335 sed -e 's/@@KVNAME@@/${KVNAME}/g' <headers-postinst.in >$(headers_tmp)/DEBIAN/postinst
336 chmod 0755 $(headers_tmp)/DEBIAN/postinst
337 install -D -m 644 copyright $(headers_tmp)/usr/share/doc/${HDRPACKAGE}/copyright
338 install -D -m 644 changelog.Debian $(headers_tmp)/usr/share/doc/${HDRPACKAGE}/changelog.Debian
339 echo "git clone git://git.proxmox.com/git/pve-kernel-3.10.0.git\\ngit checkout ${GITVERSION}" > $(headers_tmp)/usr/share/doc/${HDRPACKAGE}/SOURCE
340 gzip -f --best $(headers_tmp)/usr/share/doc/${HDRPACKAGE}/changelog.Debian
341 install -m 0644 ${KERNEL_SRC}/.config $(headers_dir)
342 install -m 0644 ${KERNEL_SRC}/Module.symvers $(headers_dir)
343 cd ${KERNEL_SRC}; find . -path './debian/*' -prune -o -path './include/*' -prune -o -path './Documentation' -prune \
344 -o -path './scripts' -prune -o -type f \
345 \( -name 'Makefile*' -o -name 'Kconfig*' -o -name 'Kbuild*' -o \
346 -name '*.sh' -o -name '*.pl' \) \
347 -print | cpio -pd --preserve-modification-time $(headers_dir)
348 cd ${KERNEL_SRC}; cp -a include scripts $(headers_dir)
349 cd ${KERNEL_SRC}; (find arch/x86 -name include -type d -print | \
350 xargs -n1 -i: find : -type f) | \
351 cpio -pd --preserve-modification-time $(headers_dir)
352 dpkg-deb --build $(headers_tmp) ${HDR_DEB}
353 #lintian ${HDR_DEB}
354
355 dvb-firmware.git/README:
356 git clone https://github.com/OpenELEC/dvb-firmware.git dvb-firmware.git
357
358 linux-firmware.git/WHENCE:
359 git clone git://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git linux-firmware.git
360
361 ${FW_DEB} fw: control.firmware linux-firmware.git/WHENCE dvb-firmware.git/README changelog.firmware fwlist-2.6.18-2-pve fwlist-2.6.24-12-pve fwlist-2.6.32-3-pve fwlist-2.6.32-4-pve fwlist-2.6.32-6-pve fwlist-2.6.32-13-pve fwlist-2.6.32-14-pve fwlist-2.6.32-20-pve fwlist-2.6.32-21-pve fwlist-3.10.0-3-pve fwlist-3.10.0-7-pve fwlist-3.10.0-8-pve fwlist-3.19.8-1-pve fwlist-${KVNAME}
362 rm -rf fwdata
363 mkdir -p fwdata/lib/firmware
364 ./assemble-firmware.pl fwlist-${KVNAME} fwdata/lib/firmware
365 # include any files from older/newer kernels here
366 ./assemble-firmware.pl fwlist-2.6.18-2-pve fwdata/lib/firmware
367 ./assemble-firmware.pl fwlist-2.6.24-12-pve fwdata/lib/firmware
368 ./assemble-firmware.pl fwlist-2.6.32-3-pve fwdata/lib/firmware
369 ./assemble-firmware.pl fwlist-2.6.32-4-pve fwdata/lib/firmware
370 ./assemble-firmware.pl fwlist-2.6.32-6-pve fwdata/lib/firmware
371 ./assemble-firmware.pl fwlist-2.6.32-13-pve fwdata/lib/firmware
372 ./assemble-firmware.pl fwlist-2.6.32-14-pve fwdata/lib/firmware
373 ./assemble-firmware.pl fwlist-2.6.32-20-pve fwdata/lib/firmware
374 ./assemble-firmware.pl fwlist-2.6.32-21-pve fwdata/lib/firmware
375 ./assemble-firmware.pl fwlist-3.10.0-3-pve fwdata/lib/firmware
376 ./assemble-firmware.pl fwlist-3.10.0-7-pve fwdata/lib/firmware
377 ./assemble-firmware.pl fwlist-3.10.0-8-pve fwdata/lib/firmware
378 ./assemble-firmware.pl fwlist-3.19.8-1-pve fwdata/lib/firmware
379 install -d fwdata/usr/share/doc/pve-firmware
380 cp linux-firmware.git/WHENCE fwdata/usr/share/doc/pve-firmware/README
381 install -d fwdata/usr/share/doc/pve-firmware/licenses
382 cp linux-firmware.git/LICEN[CS]E* fwdata/usr/share/doc/pve-firmware/licenses
383 install -D -m 0644 changelog.firmware fwdata/usr/share/doc/pve-firmware/changelog.Debian
384 gzip -9 fwdata/usr/share/doc/pve-firmware/changelog.Debian
385 echo "git clone git://git.proxmox.com/git/pve-kernel-2.6.32.git\\ngit checkout ${GITVERSION}" >fwdata/usr/share/doc/pve-firmware/SOURCE
386 install -d fwdata/DEBIAN
387 sed -e 's/@VERSION@/${FW_VER}-${FW_REL}/' <control.firmware >fwdata/DEBIAN/control
388 dpkg-deb --build fwdata ${FW_DEB}
389
390 .PHONY: upload
391 upload: ${DST_DEB} ${HDR_DEB} ${FW_DEB} ${PVE_DEB}
392 umount /pve/${RELEASE}; mount /pve/${RELEASE} -o rw
393 mkdir -p /pve/${RELEASE}/extra
394 mkdir -p /pve/${RELEASE}/install
395 rm -rf /pve/${RELEASE}/extra/${PACKAGE}_*.deb
396 rm -rf /pve/${RELEASE}/extra/${HDRPACKAGE}_*.deb
397 rm -rf /pve/${RELEASE}/extra/${PVEPKG}_*.deb
398 rm -rf /pve/${RELEASE}/extra/pve-firmware*.deb
399 rm -rf /pve/${RELEASE}/extra/Packages*
400 cp ${DST_DEB} ${FW_DEB} ${HDR_DEB} ${PVE_DEB} /pve/${RELEASE}/extra
401 cd /pve/${RELEASE}/extra; dpkg-scanpackages . /dev/null | gzip -9c > Packages.gz
402 umount /pve/${RELEASE}; mount /pve/${RELEASE} -o ro
403
404 .PHONY: distclean
405 distclean: clean
406 rm -rf linux-firmware.git dvb-firmware.git ${KERNEL_SRC}.org
407
408 .PHONY: clean
409 clean:
410 rm -rf *~ .compile_mark ${KERNEL_CFG_ORG} ${KERNEL_SRC} ${KERNEL_SRC}.tmp ${KERNEL_CFG_ORG} ${KERNEL_SRC}.org orig tmp data proxmox-ve/data *.deb ${headers_tmp} fwdata fwlist.tmp *.ko fwlist-${KVNAME} ${ZFSDIR} ${SPLDIR} ${SPL_MODULES} ${ZFS_MODULES} hpsa.ko ${HPSADIR} ${DRBDDIR} drbd-9.0 ${IGBDIR} igb.ko ${IXGBEDIR} ixgbe.ko
411
412
413
414
415