this is quite a hack, but the only way i know of by which firmware can be uploaded to the efm32tg-stk until OpenOCD supports SWD on jlink
unless sources are explicitly given, the linker scripts and make files were copied over from the stm32/f1 port.