]>
Commit | Line | Data |
---|---|---|
908abd91 DM |
1 | RELEASE=3.1 |
2 | ||
3 | KERNEL_VER=3.10.0 | |
4 | PKGREL=1 | |
5 | # also include firmware of previous versrion into | |
6 | # the fw package: fwlist-2.6.32-PREV-pve | |
7 | KREL=1 | |
8 | ||
9 | RHKVER=54.0.1.el7 | |
10 | ||
11 | KERNELSRCRPM=kernel-${KERNEL_VER}-${RHKVER}.src.rpm | |
12 | ||
13 | EXTRAVERSION=-${KREL}-pve | |
14 | KVNAME=${KERNEL_VER}${EXTRAVERSION} | |
15 | PACKAGE=pve-kernel-${KVNAME} | |
16 | HDRPACKAGE=pve-headers-${KVNAME} | |
17 | ||
18 | ARCH=amd64 | |
19 | GITVERSION:=$(shell cat .git/refs/heads/master) | |
20 | ||
21 | TOP=$(shell pwd) | |
22 | ||
23 | KERNEL_SRC=linux-2.6-${KERNEL_VER} | |
24 | RHKERSRCDIR=rh-kernel-src | |
25 | KERNEL_CFG=config-${KERNEL_VER} | |
26 | ||
27 | KERNEL_CFG_ORG=${RHKERSRCDIR}/kernel-${KERNEL_VER}-x86_64.config | |
28 | ||
29 | FW_VER=1.0 | |
30 | FW_REL=23 | |
31 | FW_DEB=pve-firmware_${FW_VER}-${FW_REL}_all.deb | |
32 | ||
33 | #AOEDIR=aoe6-77 | |
34 | #AOESRC=${AOEDIR}.tar.gz | |
35 | ||
36 | #E1000EDIR=e1000e-2.5.4 | |
37 | #E1000ESRC=${E1000EDIR}.tar.gz | |
38 | ||
39 | #IGBDIR=igb-5.0.6 | |
40 | #IGBSRC=${IGBDIR}.tar.gz | |
41 | ||
42 | #IXGBEDIR=ixgbe-3.18.7 | |
43 | #IXGBESRC=${IXGBEDIR}.tar.gz | |
44 | ||
45 | #BNX2DIR=netxtreme2-7.6.62 | |
46 | #BNX2SRC=${BNX2DIR}.tar.gz | |
47 | ||
48 | #AACRAIDSRC=aacraid-1.2.1-30300.src.rpm | |
49 | #AACRAIDDIR=aacraid-1.2.1 | |
50 | ||
51 | #MEGARAID_DIR=megaraid_sas-06.600.18.00 | |
52 | #MEGARAID_SRC=${MEGARAID_DIR}-src.tar.gz | |
53 | ||
54 | #ARECADIR=arcmsr-1.30.0X.16-20131206 | |
55 | #ARECASRC=${ARECADIR}.zip | |
56 | ||
57 | #RR272XSRC=RR272x_1x-Linux-Src-v1.5-130325-0732.tar.gz | |
58 | #RR272XDIR=rr272x_1x-linux-src-v1.5 | |
59 | ||
60 | #ISCSITARGETDIR=iscsitarget-1.4.20.2 | |
61 | #ISCSITARGETSRC=${ISCSITARGETDIR}.tar.gz | |
62 | ||
63 | DST_DEB=${PACKAGE}_${KERNEL_VER}-${PKGREL}_${ARCH}.deb | |
64 | HDR_DEB=${HDRPACKAGE}_${KERNEL_VER}-${PKGREL}_${ARCH}.deb | |
65 | PVEPKG=proxmox-ve-${KERNEL_VER} | |
66 | PVE_DEB=${PVEPKG}_${RELEASE}-${PKGREL}_all.deb | |
67 | ||
68 | all: check_gcc ${DST_DEB} | |
69 | #${PVE_DEB} ${FW_DEB} ${HDR_DEB} | |
70 | ||
71 | ${PVE_DEB} pve: proxmox-ve/control proxmox-ve/postinst | |
72 | rm -rf proxmox-ve/data | |
73 | mkdir -p proxmox-ve/data/DEBIAN | |
74 | mkdir -p proxmox-ve/data/usr/share/doc/${PVEPKG}/ | |
75 | install -m 0644 proxmox-ve/proxmox-release\@proxmox.com.pubkey proxmox-ve/data/usr/share/doc/${PVEPKG} | |
76 | 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 | |
77 | sed -e 's/@KERNEL_VER@/${KERNEL_VER}/' <proxmox-ve/postinst >proxmox-ve/data/DEBIAN/postinst | |
78 | chmod 0755 proxmox-ve/data/DEBIAN/postinst | |
79 | echo "git clone git://git.proxmox.com/git/pve-kernel-2.6.32.git\\ngit checkout ${GITVERSION}" > proxmox-ve/data/usr/share/doc/${PVEPKG}/SOURCE | |
80 | install -m 0644 proxmox-ve/copyright proxmox-ve/data/usr/share/doc/${PVEPKG} | |
81 | install -m 0644 proxmox-ve/changelog.Debian proxmox-ve/data/usr/share/doc/${PVEPKG} | |
82 | gzip --best proxmox-ve/data/usr/share/doc/${PVEPKG}/changelog.Debian | |
83 | dpkg-deb --build proxmox-ve/data ${PVE_DEB} | |
84 | ||
85 | check_gcc: | |
86 | gcc --version|grep "4.7.2" || false | |
87 | ||
88 | ${DST_DEB}: data control.in postinst.in copyright changelog.Debian | |
89 | mkdir -p data/DEBIAN | |
90 | sed -e 's/@KERNEL_VER@/${KERNEL_VER}/' -e 's/@KVNAME@/${KVNAME}/' -e 's/@PKGREL@/${PKGREL}/' <control.in >data/DEBIAN/control | |
91 | sed -e 's/@@KVNAME@@/${KVNAME}/g' <postinst.in >data/DEBIAN/postinst | |
92 | chmod 0755 data/DEBIAN/postinst | |
93 | install -D -m 644 copyright data/usr/share/doc/${PACKAGE}/copyright | |
94 | install -D -m 644 changelog.Debian data/usr/share/doc/${PACKAGE}/changelog.Debian | |
95 | echo "git clone git://git.proxmox.com/git/pve-kernel-3.2.0.git\\ngit checkout ${GITVERSION}" > data/usr/share/doc/${PACKAGE}/SOURCE | |
96 | gzip -f --best data/usr/share/doc/${PACKAGE}/changelog.Debian | |
97 | rm -f data/lib/modules/${KVNAME}/source | |
98 | rm -f data/lib/modules/${KVNAME}/build | |
99 | dpkg-deb --build data ${DST_DEB} | |
100 | lintian ${DST_DEB} | |
101 | ||
102 | ||
103 | fwlist-${KVNAME}: data | |
104 | ./find-firmware.pl data/lib/modules/${KVNAME} >fwlist.tmp | |
105 | mv fwlist.tmp $@ | |
106 | ||
107 | # aoe.ko e1000e.ko igb.ko ixgbe.ko bnx2.ko cnic.ko bnx2x.ko iscsi_trgt.ko aacraid.ko megaraid_sas.ko rr272x_1x.ko arcmsr.ko | |
108 | data: .compile_mark ${KERNEL_CFG} | |
109 | rm -rf data tmp; mkdir -p tmp/lib/modules/${KVNAME} | |
110 | mkdir tmp/boot | |
111 | install -m 644 ${KERNEL_CFG} tmp/boot/config-${KVNAME} | |
112 | install -m 644 ${KERNEL_SRC}/System.map tmp/boot/System.map-${KVNAME} | |
113 | install -m 644 ${KERNEL_SRC}/arch/x86_64/boot/bzImage tmp/boot/vmlinuz-${KVNAME} | |
114 | cd ${KERNEL_SRC}; make INSTALL_MOD_PATH=../tmp/ modules_install | |
115 | ## install latest aoe driver | |
116 | #install -m 644 aoe.ko tmp/lib/modules/${KVNAME}/kernel/drivers/block/aoe/aoe.ko | |
117 | ## install latest ixgbe driver | |
118 | #install -m 644 ixgbe.ko tmp/lib/modules/${KVNAME}/kernel/drivers/net/ixgbe/ | |
119 | ## install latest e1000e driver | |
120 | #install -m 644 e1000e.ko tmp/lib/modules/${KVNAME}/kernel/drivers/net/e1000e/ | |
121 | ## install latest ibg driver | |
122 | #install -m 644 igb.ko tmp/lib/modules/${KVNAME}/kernel/drivers/net/igb/ | |
123 | ## install bnx2 drivers | |
124 | #install -m 644 bnx2.ko tmp/lib/modules/${KVNAME}/kernel/drivers/net/ | |
125 | #install -m 644 cnic.ko tmp/lib/modules/${KVNAME}/kernel/drivers/net/ | |
126 | #install -m 644 bnx2x.ko tmp/lib/modules/${KVNAME}/kernel/drivers/net/bnx2x/ | |
127 | ## install aacraid drivers | |
128 | #install -m 644 aacraid.ko tmp/lib/modules/${KVNAME}/kernel/drivers/scsi/aacraid/ | |
129 | ## install megaraid_sas driver | |
130 | #install -m 644 megaraid_sas.ko tmp/lib/modules/${KVNAME}/kernel/drivers/scsi/megaraid/ | |
131 | ## install Highpoint 2710 RAID driver | |
132 | #install -m 644 rr272x_1x.ko -D tmp/lib/modules/${KVNAME}/kernel/drivers/scsi/rr272x_1x/rr272x_1x.ko | |
133 | # install areca driver | |
134 | #install -m 644 arcmsr.ko tmp/lib/modules/${KVNAME}/kernel/drivers/scsi/arcmsr/ | |
135 | ## install iscsitarget module | |
136 | #install -m 644 -D iscsi_trgt.ko tmp/lib/modules/${KVNAME}/kernel/drivers/scsi/iscsi_trgt.ko | |
137 | # remove firmware | |
138 | rm -rf tmp/lib/firmware | |
139 | # strip debug info | |
140 | find tmp/lib/modules -name \*.ko -print | while read f ; do strip --strip-debug "$$f"; done | |
141 | # finalize | |
142 | depmod -b tmp/ ${KVNAME} | |
143 | mv tmp data | |
144 | ||
145 | .compile_mark: ${KERNEL_SRC}/README ${KERNEL_CFG} | |
146 | cp ${KERNEL_CFG} ${KERNEL_SRC}/.config | |
147 | cd ${KERNEL_SRC}; make oldconfig | |
148 | cd ${KERNEL_SRC}; make -j 8 | |
149 | touch $@ | |
150 | ||
151 | ${KERNEL_CFG}: ${KERNEL_CFG_ORG} config-${KERNEL_VER}.diff | |
152 | cp ${KERNEL_CFG_ORG} ${KERNEL_CFG}.new | |
153 | #patch --no-backup ${KERNEL_CFG}.new config-${KERNEL_VER}.diff | |
154 | mv ${KERNEL_CFG}.new ${KERNEL_CFG} | |
155 | ||
156 | ${KERNEL_SRC}/README: ${KERNEL_SRC}.org/README | |
157 | rm -rf ${KERNEL_SRC} | |
158 | cp -a ${KERNEL_SRC}.org ${KERNEL_SRC} | |
159 | #cd ${KERNEL_SRC}; patch -p1 <../bootsplash-3.8.diff | |
160 | #cd ${KERNEL_SRC}; patch -p1 <../${RHKERSRCDIR}/patch-042stab083 | |
161 | #cd ${KERNEL_SRC}; patch -p1 <../do-not-use-barrier-on-ext3.patch | |
162 | #cd ${KERNEL_SRC}; patch -p1 <../bridge-patch.diff | |
163 | #cd ${KERNEL_SRC}; patch -p1 <../kvm-fix-invalid-secondary-exec-controls.patch | |
164 | #cd ${KERNEL_SRC}; patch -p1 <../fix-aspm-policy.patch | |
165 | #cd ${KERNEL_SRC}; patch -p1 <../kbuild-generate-mudules-builtin.patch | |
166 | #cd ${KERNEL_SRC}; patch -p1 <../add-tiocgdev-ioctl.patch | |
167 | #cd ${KERNEL_SRC}; patch -p1 <../fix-nfs-block-count.patch | |
168 | #cd ${KERNEL_SRC}; patch -p1 <../fix-idr-header-for-drbd-compilation.patch | |
169 | sed -i ${KERNEL_SRC}/Makefile -e 's/^EXTRAVERSION.*$$/EXTRAVERSION=${EXTRAVERSION}/' | |
170 | touch $@ | |
171 | ||
172 | ${KERNEL_SRC}.org/README: ${RHKERSRCDIR}/kernel.spec ${RHKERSRCDIR}/linux-${KERNEL_VER}-${RHKVER}.tar.xz | |
173 | rm -rf ${KERNEL_SRC}.org linux-${KERNEL_VER}-${RHKVER} | |
174 | tar xf ${RHKERSRCDIR}/linux-${KERNEL_VER}-${RHKVER}.tar.xz | |
175 | mv linux-${KERNEL_VER}-${RHKVER} ${KERNEL_SRC}.org | |
176 | touch $@ | |
177 | ||
178 | ${RHKERSRCDIR}/kernel.spec: ${KERNELSRCRPM} | |
179 | rm -rf ${RHKERSRCDIR} | |
180 | mkdir ${RHKERSRCDIR} | |
181 | cd ${RHKERSRCDIR};rpm2cpio ../${KERNELSRCRPM} |cpio -i | |
182 | touch $@ | |
183 | ||
184 | #rr272x_1x.ko: .compile_mark ${RR272XSRC} | |
185 | # rm -rf ${RR272XDIR} | |
186 | # tar xf ${RR272XSRC} | |
187 | # mkdir -p /lib/modules/${KVNAME} | |
188 | # ln -sf ${TOP}/${KERNEL_SRC} /lib/modules/${KVNAME}/build | |
189 | # make -C ${TOP}/${RR272XDIR}/product/rr272x/linux KERNELDIR=${TOP}/${KERNEL_SRC} | |
190 | # cp ${RR272XDIR}/product/rr272x/linux/$@ . | |
191 | ||
192 | #megaraid_sas.ko: .compile_mark ${MEGARAID_SRC} | |
193 | # rm -rf ${MEGARAID_DIR} | |
194 | # tar xf ${MEGARAID_SRC} | |
195 | # mkdir -p /lib/modules/${KVNAME} | |
196 | # ln -sf ${TOP}/${KERNEL_SRC} /lib/modules/${KVNAME}/build | |
197 | # make -C ${TOP}/${KERNEL_SRC} M=${TOP}/${MEGARAID_DIR} modules | |
198 | # cp ${MEGARAID_DIR}/megaraid_sas.ko . | |
199 | ||
200 | #aacraid.ko: .compile_mark ${AACRAIDSRC} | |
201 | # rm -rf ${AACRAIDDIR} | |
202 | # mkdir ${AACRAIDDIR} | |
203 | # cd ${AACRAIDDIR};rpm2cpio ../${AACRAIDSRC} |cpio -i | |
204 | # cd ${AACRAIDDIR};tar xzf aacraid_source.tgz | |
205 | # mkdir -p /lib/modules/${KVNAME} | |
206 | # ln -sf ${TOP}/${KERNEL_SRC} /lib/modules/${KVNAME}/build | |
207 | # make -C ${TOP}/${KERNEL_SRC} M=${TOP}/${AACRAIDDIR} modules | |
208 | # cp ${AACRAIDDIR}/aacraid.ko . | |
209 | ||
210 | #aoe.ko aoe: .compile_mark ${AOESRC} | |
211 | # # aoe driver updates | |
212 | # rm -rf ${AOEDIR} aoe.ko | |
213 | # tar xf ${AOESRC} | |
214 | # mkdir -p /lib/modules/${KVNAME} | |
215 | # ln -sf ${TOP}/${KERNEL_SRC} /lib/modules/${KVNAME}/build | |
216 | # cd ${AOEDIR}; make KVER=${KVNAME} | |
217 | # cp ${AOEDIR}/linux/drivers/block/aoe/aoe.ko aoe.ko | |
218 | ||
219 | #e1000e.ko e1000e: .compile_mark ${E1000ESRC} | |
220 | # rm -rf ${E1000EDIR} | |
221 | # tar xf ${E1000ESRC} | |
222 | # mkdir -p /lib/modules/${KVNAME} | |
223 | # ln -sf ${TOP}/${KERNEL_SRC} /lib/modules/${KVNAME}/build | |
224 | # cd ${E1000EDIR}/src; make BUILD_KERNEL=${KVNAME} | |
225 | # cp ${E1000EDIR}/src/e1000e.ko e1000e.ko | |
226 | ||
227 | #igb.ko igb: .compile_mark ${IGBSRC} | |
228 | # rm -rf ${IGBDIR} | |
229 | # tar xf ${IGBSRC} | |
230 | # mkdir -p /lib/modules/${KVNAME} | |
231 | # ln -sf ${TOP}/${KERNEL_SRC} /lib/modules/${KVNAME}/build | |
232 | # cd ${IGBDIR}/src; make BUILD_KERNEL=${KVNAME} | |
233 | # cp ${IGBDIR}/src/igb.ko igb.ko | |
234 | ||
235 | #ixgbe.ko ixgbe: .compile_mark ${IXGBESRC} | |
236 | # rm -rf ${IXGBEDIR} | |
237 | # tar xf ${IXGBESRC} | |
238 | # mkdir -p /lib/modules/${KVNAME} | |
239 | # ln -sf ${TOP}/${KERNEL_SRC} /lib/modules/${KVNAME}/build | |
240 | # cd ${IXGBEDIR}/src; make CFLAGS_EXTRA="-DIXGBE_NO_LRO" BUILD_KERNEL=${KVNAME} | |
241 | # cp ${IXGBEDIR}/src/ixgbe.ko ixgbe.ko | |
242 | ||
243 | #bnx2.ko cnic.ko bnx2x.ko: ${BNX2SRC} | |
244 | # rm -rf ${BNX2DIR} | |
245 | # tar xf ${BNX2SRC} | |
246 | # mkdir -p /lib/modules/${KVNAME} | |
247 | # ln -sf ${TOP}/${KERNEL_SRC} /lib/modules/${KVNAME}/build | |
248 | # cd ${BNX2DIR}; make -C bnx2/src KVER=${KVNAME} | |
249 | # cd ${BNX2DIR}; make -C bnx2x/src KVER=${KVNAME} | |
250 | # cp `find ${BNX2DIR} -name bnx2.ko -o -name cnic.ko -o -name bnx2x.ko` . | |
251 | ||
252 | #arcmsr.ko: .compile_mark ${ARECASRC} | |
253 | # rm -rf ${ARECADIR} | |
254 | # mkdir ${ARECADIR}; cd ${ARECADIR}; unzip ../${ARECASRC} | |
255 | # mkdir -p /lib/modules/${KVNAME} | |
256 | # ln -sf ${TOP}/${KERNEL_SRC} /lib/modules/${KVNAME}/build | |
257 | # cd ${ARECADIR}; make -C ${TOP}/${KERNEL_SRC} SUBDIRS=${TOP}/${ARECADIR} modules | |
258 | # cp ${ARECADIR}/arcmsr.ko arcmsr.ko | |
259 | ||
260 | #iscsi_trgt.ko: .compile_mark ${ISCSITARGETSRC} | |
261 | # rm -rf ${ISCSITARGETDIR} | |
262 | # tar xf ${ISCSITARGETSRC} | |
263 | # cd ${ISCSITARGETDIR}; make KSRC=${TOP}/${KERNEL_SRC} | |
264 | # cp ${ISCSITARGETDIR}/kernel/iscsi_trgt.ko iscsi_trgt.ko | |
265 | ||
266 | headers_tmp := $(CURDIR)/tmp-headers | |
267 | headers_dir := $(headers_tmp)/usr/src/linux-headers-${KVNAME} | |
268 | ||
269 | ${HDR_DEB} hdr: .compile_mark headers-control.in headers-postinst.in | |
270 | rm -rf $(headers_tmp) | |
271 | install -d $(headers_tmp)/DEBIAN $(headers_dir)/include/ | |
272 | sed -e 's/@KERNEL_VER@/${KERNEL_VER}/' -e 's/@KVNAME@/${KVNAME}/' -e 's/@PKGREL@/${PKGREL}/' <headers-control.in >$(headers_tmp)/DEBIAN/control | |
273 | sed -e 's/@@KVNAME@@/${KVNAME}/g' <headers-postinst.in >$(headers_tmp)/DEBIAN/postinst | |
274 | chmod 0755 $(headers_tmp)/DEBIAN/postinst | |
275 | install -D -m 644 copyright $(headers_tmp)/usr/share/doc/${HDRPACKAGE}/copyright | |
276 | install -D -m 644 changelog.Debian $(headers_tmp)/usr/share/doc/${HDRPACKAGE}/changelog.Debian | |
277 | echo "git clone git://git.proxmox.com/git/pve-kernel-2.6.32.git\\ngit checkout ${GITVERSION}" > $(headers_tmp)/usr/share/doc/${HDRPACKAGE}/SOURCE | |
278 | gzip -f --best $(headers_tmp)/usr/share/doc/${HDRPACKAGE}/changelog.Debian | |
279 | install -m 0644 ${KERNEL_SRC}/.config $(headers_dir) | |
280 | install -m 0644 ${KERNEL_SRC}/Module.symvers $(headers_dir) | |
281 | cd ${KERNEL_SRC}; find . -path './debian/*' -prune -o -path './include/*' -prune -o -path './Documentation' -prune \ | |
282 | -o -path './scripts' -prune -o -type f \ | |
283 | \( -name 'Makefile*' -o -name 'Kconfig*' -o -name 'Kbuild*' -o \ | |
284 | -name '*.sh' -o -name '*.pl' \) \ | |
285 | -print | cpio -pd --preserve-modification-time $(headers_dir) | |
286 | cd ${KERNEL_SRC}; cp -a include scripts $(headers_dir) | |
287 | cd ${KERNEL_SRC}; (find arch/x86 -name include -type d -print | \ | |
288 | xargs -n1 -i: find : -type f) | \ | |
289 | cpio -pd --preserve-modification-time $(headers_dir) | |
290 | dpkg-deb --build $(headers_tmp) ${HDR_DEB} | |
291 | #lintian ${HDR_DEB} | |
292 | ||
293 | linux-firmware.git/WHENCE: | |
294 | git clone git://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git linux-firmware.git | |
295 | ||
296 | ${FW_DEB} fw: control.firmware linux-firmware.git/WHENCE 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-5-pve fwlist-2.6.32-6-pve fwlist-2.6.35-1-pve fwlist-2.6.32-13-pve fwlist-2.6.32-14-pve fwlist-2.6.32-15-pve fwlist-2.6.32-20-pve fwlist-${KVNAME} | |
297 | rm -rf fwdata | |
298 | mkdir -p fwdata/lib/firmware | |
299 | ./assemble-firmware.pl fwlist-${KVNAME} fwdata/lib/firmware | |
300 | # include any files from older/newer kernels here | |
301 | ./assemble-firmware.pl fwlist-2.6.24-12-pve fwdata/lib/firmware | |
302 | ./assemble-firmware.pl fwlist-2.6.18-2-pve fwdata/lib/firmware | |
303 | ./assemble-firmware.pl fwlist-2.6.32-3-pve fwdata/lib/firmware | |
304 | ./assemble-firmware.pl fwlist-2.6.32-4-pve fwdata/lib/firmware | |
305 | ./assemble-firmware.pl fwlist-2.6.32-5-pve fwdata/lib/firmware | |
306 | ./assemble-firmware.pl fwlist-2.6.32-6-pve fwdata/lib/firmware | |
307 | ./assemble-firmware.pl fwlist-2.6.35-1-pve fwdata/lib/firmware | |
308 | ./assemble-firmware.pl fwlist-2.6.32-13-pve fwdata/lib/firmware | |
309 | ./assemble-firmware.pl fwlist-2.6.32-14-pve fwdata/lib/firmware | |
310 | ./assemble-firmware.pl fwlist-2.6.32-15-pve fwdata/lib/firmware | |
311 | ./assemble-firmware.pl fwlist-2.6.32-16-pve fwdata/lib/firmware | |
312 | ./assemble-firmware.pl fwlist-2.6.32-20-pve fwdata/lib/firmware | |
313 | install -d fwdata/usr/share/doc/pve-firmware | |
314 | cp linux-firmware.git/WHENCE fwdata/usr/share/doc/pve-firmware/README | |
315 | install -d fwdata/usr/share/doc/pve-firmware/licenses | |
316 | cp linux-firmware.git/LICEN[CS]E* fwdata/usr/share/doc/pve-firmware/licenses | |
317 | install -D -m 0644 changelog.firmware fwdata/usr/share/doc/pve-firmware/changelog.Debian | |
318 | gzip -9 fwdata/usr/share/doc/pve-firmware/changelog.Debian | |
319 | echo "git clone git://git.proxmox.com/git/pve-kernel-2.6.32.git\\ngit checkout ${GITVERSION}" >fwdata/usr/share/doc/pve-firmware/SOURCE | |
320 | install -d fwdata/DEBIAN | |
321 | sed -e 's/@VERSION@/${FW_VER}-${FW_REL}/' <control.firmware >fwdata/DEBIAN/control | |
322 | dpkg-deb --build fwdata ${FW_DEB} | |
323 | ||
324 | .PHONY: upload | |
5ce26175 | 325 | upload: ${DST_DEB} # ${PVE_DEB} ${HDR_DEB} ${FW_DEB} |
908abd91 DM |
326 | umount /pve/${RELEASE}; mount /pve/${RELEASE} -o rw |
327 | mkdir -p /pve/${RELEASE}/extra | |
328 | mkdir -p /pve/${RELEASE}/install | |
329 | rm -rf /pve/${RELEASE}/extra/${PACKAGE}_*.deb | |
330 | rm -rf /pve/${RELEASE}/extra/${HDRPACKAGE}_*.deb | |
331 | rm -rf /pve/${RELEASE}/extra/${PVEPKG}_*.deb | |
5ce26175 | 332 | # rm -rf /pve/${RELEASE}/extra/pve-firmware*.deb |
908abd91 | 333 | rm -rf /pve/${RELEASE}/extra/Packages* |
5ce26175 DM |
334 | # cp ${DST_DEB} ${PVE_DEB} ${HDR_DEB} ${FW_DEB} /pve/${RELEASE}/extra |
335 | cp ${DST_DEB} /pve/${RELEASE}/extra | |
908abd91 DM |
336 | cd /pve/${RELEASE}/extra; dpkg-scanpackages . /dev/null | gzip -9c > Packages.gz |
337 | umount /pve/${RELEASE}; mount /pve/${RELEASE} -o ro | |
338 | ||
339 | .PHONY: distclean | |
340 | distclean: clean | |
341 | rm -rf linux-firmware.git linux-firmware-from-kernel.git ${KERNEL_SRC}.org ${RHKERSRCDIR} | |
342 | ||
343 | .PHONY: clean | |
344 | clean: | |
345 | rm -rf *~ .compile_mark ${KERNEL_CFG} ${KERNEL_SRC} tmp data proxmox-ve/data *.deb ${AOEDIR} aoe.ko ${headers_tmp} fwdata fwlist.tmp *.ko ${IXGBEDIR} ${E1000EDIR} e1000e.ko ${IGBDIR} igb.ko fwlist-${KVNAME} iscsi_trgt.ko ${ISCSITARGETDIR} ${BNX2DIR} bnx2.ko cnic.ko bnx2x.ko aacraid.ko ${AACRAIDDIR} megaraid_sas.ko ${MEGARAID_DIR} rr272x_1x.ko ${RR272XDIR} ${ARECADIR}.ko ${ARECADIR} | |
346 | ||
347 | ||
348 | ||
349 |