tegra: move common features to a common makefile