Revert "Move ecm_generate_pri_file below the definition of the target"

Authored by mlaurent on Feb 9 2020, 8:11 AM.