ath79: move Netgear build code into a common makefile