Opened 10 years ago

Closed 9 years ago

Last modified 9 years ago

#46477 closed submission (fixed)

stm32flash 0.4

Reported by: ranauei@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc: kurthindenburg (Kurt Hindenburg)
Port: stm32flash

Description

Open source flash program for the STM32 ARM processors using the ST serial bootloader over UART or I2C

Attachments (4)

patch-stm32.c.diff (1.1 KB) - added by ranauei@… 10 years ago.
Portfile.2 (1.4 KB) - added by ranauei@… 10 years ago.
Different arrangement to accomodate universal build
Portfile2 (1.4 KB) - added by ranauei@… 9 years ago.
Updated source location. Different arrangement to accomodate universal building
Portfile (1.4 KB) - added by ranauei@… 9 years ago.
Removed unnecessary pre-build section, universal building still works

Download all attachments as: .zip

Change History (14)

comment:1 Changed 10 years ago by mf2k (Frank Schima)

Keywords: maintainer haspatch removed
Version: 2.3.3

comment:2 Changed 10 years ago by ryandesign (Ryan Carsten Schmidt)

Thanks.

The reinplace "s|s_err == STM32_NACK|s_err == STM32_ERR_NACK|g" should be changed to a patchfile. The patch block will then need to be changed to a post-patch block.

Because you are using use_configure no, additional code needs to be added to ensure you're UsingTheRightCompiler, using -arch flags, and if possible, add a working universal variant.

Changed 10 years ago by ranauei@…

Attachment: patch-stm32.c.diff added

Changed 10 years ago by ranauei@…

Attachment: Portfile.2 added

Different arrangement to accomodate universal build

comment:3 Changed 10 years ago by ranauei@…

I attached a second portfile that implements building the universal variant in a slight different way so chose which one is preferred.

comment:4 Changed 9 years ago by kurthindenburg (Kurt Hindenburg)

Cc: khindenburg@… added

Cc Me!

comment:5 Changed 9 years ago by kurthindenburg (Kurt Hindenburg)

looks like it has moved to http://sourceforge.net/projects/stm32flash/ - if you want to update, I will commit it for you.

Also, I'm not sure if the pre-build block is needed.

Changed 9 years ago by ranauei@…

Attachment: Portfile2 added

Updated source location. Different arrangement to accomodate universal building

comment:6 Changed 9 years ago by ranauei@…

I updated both Portfiles, I don't know about the prebuild phase, how else would you configure those parameters and allow universal building since this utility doesn't have a configure script?

comment:7 Changed 9 years ago by kurthindenburg (Kurt Hindenburg)

I meant I'm not sure those lines have to be inside the pre-build {} - it seems to work either way.

comment:8 in reply to:  7 Changed 9 years ago by ranauei@…

Replying to khindenburg@…:

I meant I'm not sure those lines have to be inside the pre-build {} - it seems to work either way.

If I remove the pre-build section leaving just the commands inside it, universal building stops working with Portfile. However the with Portfile2 doing the same leaves universal building working

Changed 9 years ago by ranauei@…

Attachment: Portfile added

Removed unnecessary pre-build section, universal building still works

comment:9 Changed 9 years ago by kurthindenburg (Kurt Hindenburg)

Resolution: fixed
Status: newclosed

I asked in IRC about the best way to handle this - I changed that part - let me know if it doesn't work for you = r138533

comment:10 in reply to:  9 Changed 9 years ago by ranauei@…

Replying to khindenburg@…:

I asked in IRC about the best way to handle this - I changed that part - let me know if it doesn't work for you = r138533

Nice it works thanks :)

Note: See TracTickets for help on using tickets.