Set TE flag in legacy -> mcore conversion script
#9585 was merged to the main branch two weeks ago so the release branch should already have the commit? @cuichenx You're right, I'm actually surprised github said we could make this MR. When I look at the `0ec7e90` commit history for that conversion script it actually doesn't even show this commit. So the git history on the conversion script looks okay:

![image](https://github.com/user-attachments/assets/71985909-127c-4e2c-8162-66477dc5d37c)

Same as #9585, but into release branch