#!/usr/bin/make -f

%:
	dh $@

# The files under /usr/share/rpiboot/ are Raspberry Pi GPU firmware/data
# blobs (e.g. start.elf, bootcode*.bin). They are not host binaries, so
# skip strip/dwz on them -- otherwise dh_strip fails on the non-ELF blobs.
override_dh_strip:
	dh_strip -Xusr/share/rpiboot

override_dh_dwz:
	dh_dwz -Xusr/share/rpiboot

override_dh_auto_install:
	dh_auto_install
	# Remove redundant boot.img to reduce package size
	find ./debian/tmp/usr/share -type f -name boot.img -delete

get-orig-source:
	uscan --force-download
