#!/usr/bin/make -f
# -*- makefile -*-

# Uncomment this to turn on verbose mode.
export DH_VERBOSE=1

DEB_BUILD_OPTIONS=noautodbgsym

#wfile="ti_cgt_pru_2.1.5_armlinuxa8hf_busybox_installer.sh"
# TODO: Handle more than just amd64 arch
ver=2.3.3
ti_installer=ti_cgt_pru_$(ver)_linux_installer_x86.bin

%:
	dh $@

override_dh_auto_configure: $(ti_installer)
	chmod +x $<
	./$< --mode unattended --installdir $(shell pwd)

$(ti_installer):
	wget https://dr-download.ti.com/software-development/ide-configuration-compiler-or-debugger/MD-FaNNGkDH7s/$(ver)/$@

override_dh_strip_nondeterminism:
	true

override_dh_strip:
	true
