ar71xx: sync seama image build code with ramips