compiling on ubuntu 18.04

C programming, build, interpreter/VM.
Target audience: MicroPython Developers.
Post Reply
v923z
Posts: 168
Joined: Mon Dec 28, 2015 6:19 pm

compiling on ubuntu 18.04

Post by v923z » Tue May 22, 2018 6:44 pm

Hi all,

I was just wondering, whether there is a workaround for compiling on ubuntu 18.04. According to the guidelines (https://github.com/micropython/micropyt ... d-variants), one would have to add ppa:terry.guo/gcc-arm-embedded, but that ppa hasn't been updated. Nor has team-gcc-arm-embedded's (which is probably a related issue).

I could compile the firmware by setting up a virtual machine with ubuntu 16.04, but I would prefer a native solution, even if that means having to edit some config files.

Are there alternatives?

Thanks,

Zoltán

User avatar
dhylands
Posts: 3821
Joined: Mon Jan 06, 2014 6:08 pm
Location: Peachland, BC, Canada
Contact:

Re: compiling on ubuntu 18.04

Post by dhylands » Tue May 22, 2018 7:55 pm

I went to https://developer.arm.com/open-source/g ... /downloads and downloaded the "Linux 64-bit" tarball.

It seems to be working fine under ubuntu 18.04.

v923z
Posts: 168
Joined: Mon Dec 28, 2015 6:19 pm

Re: compiling on ubuntu 18.04

Post by v923z » Wed May 23, 2018 9:10 am

dhylands wrote:
Tue May 22, 2018 7:55 pm
I went to https://developer.arm.com/open-source/g ... /downloads and downloaded the "Linux 64-bit" tarball.

It seems to be working fine under ubuntu 18.04.
Indeed. Thanks for the pointer! For reference, here are the steps required:

1. Download the tarball from the address above, and unpack it somewhere.
2. When you compile the firmware, pass the CROSS_COMPILE variable to make as

Code: Select all

make BOARD=PYBV11 CROSS_COMPILE=<Path where you uncompressed the toolchain>/bin/arm-none-eabi-
as described here: viewtopic.php?t=2613

User avatar
dhylands
Posts: 3821
Joined: Mon Jan 06, 2014 6:08 pm
Location: Peachland, BC, Canada
Contact:

Re: compiling on ubuntu 18.04

Post by dhylands » Wed May 23, 2018 2:49 pm

You can also put the bin directory from the unpacked tarball into your PATH and then you don't need to use CROSS_COMPILE

Post Reply