You license the ECM regardless of the OS.

When you flash an OS, you have to make sure it is compatible with the ECM (in particular, year/model).