ar71xx: split tp-link image building code into a separate file