You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Replacing stm/string0.c with code from the musl c library #15
The copyright/readme from musl was copied to micromusl, then a small edit to the README was made to describe the micromusl directory.
The original make system that musl uses has some steps that build header files and such, so some header files were copied over to the micromusl directory to satisfy the build system.
Some changes were made to the Makefile to include the same CFLAGS that stm uses to build.
Then a select handful of c files from src/string were brought over, these are the functions that micromusl replaces in stm/string0.c
Finally the stm/Makefile was altered to remove string0.c and to link against the libc.a archive in micromusl.
How to build/test (assumes cross compiler in your $PATH)
cd micromusl
export CROSS_COMPILE=arm-none-eabi-
./configure --disable-shared --prefix=build
make
make install
cd ../stm
make clean
make
Should build a binary that can be uploaded with dfu-utils
Quickly tested here. Comments and questions welcome.
Note: this is a first run preliminary test, not ready to merge with master, until fully tested.
Activity
hagenkaye commentedon Jan 1, 2014
I'm rethinking on how to get the changes back into micro python. Cherry picking them from a branch is probably not the best way to go about this.
dpgeorge#9 (comment)
Seems it would be easier to put the micromusl specific code in a separate repo and then do pull requests on code that goes into micro python.
I can see this becoming a hand merge nightmare as the project continues.
hagenkaye commentedon Jan 1, 2014
I'm closing this issue, as a new method of bringing in changes is being developed.
Merge pull request micropython#26 from adafruit/ssd1306_hardware_i2c
Merge pull request micropython#15 from emfcamp/ugfx-tear-commands
Merge pull request #15 from adafruit/main
Merge pull request micropython#15 from robert-hh1/w600_gccollect
Merge pull request micropython#15 from stepansnigirev/lvgl_javascript
Merge pull request micropython#15 from kwagyeman/openmv
Add DMA for SPI Module and IRQ for Pins (#15)
Fix 2 buffer safety issues in VFS and binary parsing
extmod/zephyr_ble: Fix crash by making CONFIG_BT_L2CAP_DYNAMIC_CHANNE…
extmod/zephyr_ble: Fix Issue #15 soft reset hang by moving net_buf to…