Re: [PyInstaller] creating an EXE for MIPS (OpenWRT)

160 views
Skip to first unread message

Hartmut Goebel

unread,
Jul 19, 2012, 2:35:07 PM7/19/12
to pyins...@googlegroups.com
Am 18.07.2012 19:40, schrieb j_vinegar:
I would create an executable for a mips16 architecture:
as it does not seem to be directly supported at the moment, I would like to understand how hard would it be (I would try and and do it, of course sharing the outcome).
Should parts of pyinstaller be modified? What is missing at the moment?
Does anybody have hints about how to make this work?

You need to build a loader, which is the only part not implemented in Python. AFSIK OpenWRT is a Linux system, so ther should be no need for changes -- but one never knows ;-)

Please have a look into the appendix of the manual (doc/Manual.(html|pdf)). It should be described there how to build the loader. It could be as simple as calling:

     cd source
     python ./waf configure build install

Any enhancements are welcome :-) If you are doing changes, best is to fork at github and when finished submit a pull request.

--
Schönen Gruß
Hartmut Goebel
Dipl.-Informatiker (univ), CISSP, CSSLP

Goebel Consult
http://www.goebel-consult.de

Monatliche Kolumne: http://www.cissp-gefluester.de/2011-10-aus-der-schublade-in-die-koepfe
Blog: http://www.goebel-consult.de/blog/20050620

Goebel Consult ist Mitglied bei http://www.7-it.de/

j_vinegar

unread,
Jul 19, 2012, 4:05:44 PM7/19/12
to pyins...@googlegroups.com
Il giorno giovedì 19 luglio 2012 14:35:07 UTC-4, Hartmut Goebel ha scritto:
Am 18.07.2012 19:40, schrieb j_vinegar:
I would create an executable for a mips16 architecture:
as it does not seem to be directly supported at the moment, I would like to understand how hard would it be (I would try and and do it, of course sharing the outcome).
Should parts of pyinstaller be modified? What is missing at the moment?
Does anybody have hints about how to make this work?

You need to build a loader, which is the only part not implemented in Python. AFSIK OpenWRT is a Linux system, so ther should be no need for changes -- but one never knows ;-)

Please have a look into the appendix of the manual (doc/Manual.(html|pdf)). It should be described there how to build the loader. It could be as simple as calling:

     cd source
     python ./waf configure build install

Any enhancements are welcome :-) If you are doing changes, best is to fork at github and when finished submit a pull request.

Thank you very much for the reply. I hope it'll be as easy as you say, so I could just report that pyInstaller works also on OpenWRT (I was not able to find any info about that up to now)!
As soon as I make it I'll reply here.
Thanks again,
Joe
Reply all
Reply to author
Forward
0 new messages