summaryrefslogtreecommitdiff
path: root/Makefile
AgeCommit message (Collapse)Author
2021-01-20Add initial RP2040 supportScott Shawcroft
The RP2040 is new microcontroller from Raspberry Pi that features two Cortex M0s and eight PIO state machines that are good for crunching lots of data. It has 264k RAM and a built in UF2 bootloader too. Datasheet: https://pico.raspberrypi.org/files/rp2040_datasheet.pdf
2021-01-07Makefile: Remove POT-Creation-Date from circuitpython.potJeff Epler
This line is only a magnet for conflicts; the date that circuitpython.pot was modified can be extracted from git metadata. Additionally, when we add "make translate" checking to pre-commit, this will avoid spurious changes since the most straightforward implementation would otherwise update this line every time pre-commit executed.
2020-12-08Add `board_deinit` for use with sleepScott Shawcroft
This changes lots of files to unify `board.h` across ports. It adds `board_deinit` when CIRCUITPY_ALARM is set. `main.c` uses it to deinit the board before deep sleeping (even when pretending.) Deep sleep is now a two step process for the port. First, the port should prepare to deep sleep based on the given alarms. It should set alarms for both deep and pretend sleep. In particular, the pretend versions should be set immediately so that we don't miss an alarm as we shutdown. These alarms should also wake from `port_idle_until_interrupt` which is used when pretending to deep sleep. Second, when real deep sleeping, `alarm_enter_deep_sleep` is called. The port should set any alarms it didn't during prepare based on data it saved internally during prepare. ESP32-S2 sleep is a bit reorganized to locate more logic with TimeAlarm. This will help it scale to more alarm types. Fixes #3786
2020-10-01Makefile: translate: exclude e.g., ports/unix/build as wellJeff Epler
2020-09-29Makefile: Correct and expand translation excluded directoriesJeff Epler
As originally written, the TRANSLATE_SOURCES_EXC was incorrect. If more than one build directory existed, "make translate" (and make check-translate) would error. I corrected the problem, commented it, and added a number of additional exclude directives. I reviewed the PR and should have caught this, but did not.
2020-09-29Update make translate scriptmicroDev
2020-08-04Add `make check-stubs` for validating Python stubsTaku Fukada
2020-07-28Upgrade ulabJeff Epler
This version * moves source files to reflect module structure * adds inline documentation suitable for extract_pyi * incompatibly moves spectrogram to fft * incompatibly removes "extras" There are some remaining markup errors in the specific revision of extmod/ulab but they do not prevent the doc building process from completing.
2020-07-06Add license to some obvious files.Diego Elio Pettenò
2020-06-30Add one-of-each build target at the top level.Scott Shawcroft
2020-06-24Add UART supportScott Shawcroft
2020-06-01Makefile: "make translate" will only update circuitpython.potJeff Epler
We can now rely on weblate to regularly update the individual language files from the template, so "make translate" only needs to update the template file circuitpython.pot. This is advantageous because updating the other files in locale/ was a frequent source of merge conflicts; resolving the conflict incorrectly was something that could easily occur (and did).
2020-05-29Fix merge-translate by starting with 'theirs'Scott Shawcroft
2020-05-20Add top level merge-translate targetScott Shawcroft
2020-05-14Fix ulab, math and template.Scott Shawcroft
2020-05-12Swap sphinx to autoapi and the inline stubsScott Shawcroft
2020-04-27Add verification scriptScott Shawcroft
2020-03-17Translations: follow stm port rename, run 'make translate'Jeff Epler
2020-01-18Update translations and translation sourcesScott Shawcroft
2019-11-17Makefile: Fix a problem where `xargs` invoked `xgettext` 2xJeff Epler
On a Debian 10 system, the number of arguments to xargs was such that it would not fit in a single invocation (xargs --show-limits prints "bytes: Size of command buffer we are actually using: 131072"). In this situation, the output from the second invocation of xgettext would replace the output of the first one, so messages that appeared only in files early in the list would be lost. Strings in "extmod" were most frequently the victim, including "incorrect padding" from modubinascii.c. Unfortunately, when the github environment was similar enough to the environment where "make translate" was invoked, the problem was not found by "check-translate", because the same (incorrect, truncated) potfile would be generated on both systems. Apparently Ubuntu and Debian were different enough that the problem could become visible. xgettext has a mode where it reads files from stdin ('-f-'), but this does not have a zero-delimited variant documented. Still, we will assume that files with adversarial names are not committed to circuitpython or created by the build process, and print newline-delimited filenames from `find` to be processed by `xgettext -f-`.
2019-06-18Explicitly set the locale when sorting translation files.Craig Forbes
2019-06-11Merge latest 4.0.x fixes into masterDan Halbert
2019-06-02Clean up egg-info directory as wellJohn Reese
2019-05-28Add top-level Makefile target to update frozen libs easily; Update CPX libDan Halbert
2019-05-25Use rst2pyi to generate type stubs and packageJohn Reese
2019-05-14Have xargs expect null terminationScott Shawcroft
2019-05-13Update translations and sort input filesScott Shawcroft
This should stabilize the sort of files in the .po files. Fixes #1871
2019-03-27restrict 'make translate' to include only those directories we have portsDan Halbert
2019-03-08Add translation file locations back.Scott Shawcroft
Skip line numbers because they cause diff churn. Also, keep sorting by msgid to prevent churn from adding new files.
2019-02-22Update translations based on git historyScott Shawcroft
2019-02-22Remove file locationsScott Shawcroft
2018-08-30Clean up duplicates and have make translate produce a stable ordering.Scott Shawcroft
2018-08-07Support internationalisation.Scott Shawcroft
2018-05-14Cleaning up and fixing the docs generation Makefile and README instructionsKarin Hawley
- moving Makefile to parent folder. This resolves some of the weird path/build issues - remove trace references to cpydiff and original file (no longer used anywhere) - converting SOURCEDIR to a changeable variable, passed through all sphinx-build calls - adding path to conf.py, in case it moves again - making `-v` default with VERBOSE - making `-E` default with FORCE - creating BASEOPTS to store all the dirs, paths, and settings, passing them to sphinx-build in one long chain, instead of individually - updating README to use the make command as default. Also added text explaining some of the customization you can add into a make command