summaryrefslogtreecommitdiff
path: root/debian/rules
blob: 097991063e9e35860ca6e8beb23b2864c3e2c951 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/usr/bin/make -f

%:
	dh $@

override_dh_auto_build: cert.h
	dh_auto_build -- EFI_PATH=/usr/lib

cert.h: cert.der
	echo 'static UINT8 vendor_cert[] = {' > $@.new
	od -tx1 -w12 cert.der | cut -b9- | sed -e's/\([0-9a-f][0-9a-f]\)/0x\1,/g' >> $@.new
	echo '};' >> $@.new
	mv $@.new $@