aboutsummaryrefslogtreecommitdiffstats
path: root/scripts
Commit message (Collapse)AuthorAgeFilesLines
* buildcommands: Match DECL_X names to the actual C macro namesKevin O'Connor2019-08-221-5/+5
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* ctr: Encode negative integers in normal hex notationKevin O'Connor2019-08-221-14/+4
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* command: Allow count parameter of DECL_ENUMERATION_RANGE() to be an expressionKevin O'Connor2019-08-221-6/+3
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* ctr: Encode integers in hexKevin O'Connor2019-08-221-2/+2
| | | | | | | Replace the custom encoding with a hex encoding. This makes it a little easier to inspect the CTR conversions. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* Makefile: Translate null characters to newline characters in ctr requestsKevin O'Connor2019-08-221-1/+1
| | | | | | | | Store the CTR requests in compile_time_request.txt with the null characters removed. This makes it slightly easier to inspect the CTR conversions. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* armcm_boot: Add generic code for early board init on armcm machinesKevin O'Connor2019-08-221-0/+44
| | | | | | | | Add basic ARM Cortex-M C init code and build linker scripts to src/generic/ code. This can be used to simplify the various ARM board code. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* stm32f4: Add support for USB on stm32f103Kevin O'Connor2019-08-051-1/+13
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* check_whitespace: Warn on trailing tabs in MakefilesKevin O'Connor2019-07-211-1/+1
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* scripts: Minor improvement to feedback from travis-install.shKevin O'Connor2019-07-101-2/+3
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* check_whitespace: Add script to run whitespace checksKevin O'Connor2019-06-232-7/+16
| | | | | | | Allow users to run the "travis ci" whitespace check directly from the command-line. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* scripts: Update klippy-requirements.txt (#1744)Alan Lord2019-06-211-1/+1
| | | Signed-off-by: Alan Lord <alanslists@gmail.com>
* graphstats: Add support for interactive graphsKevin O'Connor2019-06-191-22/+36
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* logextract: Update for absolutecoord -> absolute_coord changeKevin O'Connor2019-05-311-2/+2
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* scripts: Use /tmp/klippy.log in install-ubuntu-18.04.shKevin O'Connor2019-05-201-2/+1
| | | | | | | Use /tmp/klippy.log in the install script - all the documentation currently uses that file location. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* klippy-requirements: Update Jinja2 versionKevin O'Connor2019-04-141-1/+1
| | | | | | | | There's a security bulletin for Jinja2 v2.10 (CVE-2019-10906). This wont impact Klipper, but best to upgrade the package requirements to avoid getting security alerts. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* gcode_macro: Evaluate macros using Jinja2 template engineKevin O'Connor2019-04-041-0/+1
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* scripts: Update klippy-requirements.txt to latest version of packagesKevin O'Connor2019-04-041-3/+3
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* scripts: Add a new klippy-requirements.txt file for virtualenv installsKevin O'Connor2019-04-015-4/+11
| | | | | | | | Place all of the host software python requirements into a config file. This makes it easier to update the python requirements without having to update several installation scripts. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* logextract: Add mcu annotation on send/receive shutdown reportsKevin O'Connor2019-03-311-5/+8
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* flash_usb: Improve USB reconnect timingKevin O'Connor2019-03-171-6/+30
| | | | | | | | Instead of waiting one second after entering bootloader mode, wait for the device file to reappear. This should make the flashing more resilient to slight timing difference in the OS. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* initial_pins: Add ability to configure output pins at mcu startupKevin O'Connor2019-03-171-3/+53
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* msgproto: Convert static strings to a more generic enumeration systemKevin O'Connor2019-03-171-9/+29
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* command: Support evaluating C expressions in DECL_CONSTANT()Kevin O'Connor2019-03-171-4/+21
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* buildcommands: Use dictionaries to describe commands, responses, and outputKevin O'Connor2019-03-171-12/+16
| | | | | | | Avoid transmitting lists of message ids for commands and responses - gzip doesn't do a good job of compressing them. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* flash_usb: Run dfu-util via sudoKevin O'Connor2019-03-111-6/+10
| | | | | | | Default to running dfu-util via sudo as most machines will not have the user setup with permissions to access the raw usb device. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* flash_usb: Try to make the bossac atsam reboot logic more stableKevin O'Connor2019-03-101-5/+15
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* flash_usb: Add a helper script for flashing Klipper over USBKevin O'Connor2019-03-082-1/+186
| | | | | | | | Add a script to help flash Klipper over USB. This tool can instruct Klipper to enter into bootloader mode and it can help track changes in device name during that transition. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* check_whitespace: Enforce an 80 column limit on source codeKevin O'Connor2019-02-271-0/+4
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* logextract: Wrap code to 80 columnsKevin O'Connor2019-02-271-2/+4
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* checkstack: Wrap code to 80 columnsKevin O'Connor2019-02-271-1/+1
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* avrsim: Wrap code to 80 columnsKevin O'Connor2019-02-271-2/+2
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* buildcommands: Wrap code to 80 columnsKevin O'Connor2019-02-271-1/+1
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* kconfig: Remove Save and Load buttons from "make menuconfig"Kevin O'Connor2019-02-151-4/+2
| | | | | | | These two options don't provide any value and it is causing confustion with some users. Remove the buttons. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* graphstats: Add option to graph temperatures from logKevin O'Connor2019-01-131-3/+44
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* scripts: Add BASH uninstall Script for RasPiAxMod3DPrint2019-01-101-0/+23
| | | | | Signed-off-by: Ax Smith-Laffin (AxMod3dPrint) <ax@darknetweb.co.uk> Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* Ubuntu 18.04 install scriptNathan2019-01-101-0/+104
| | | | Signed-off-by: Nathan Tsoi <nathan@vertile.com>
* scripts: Add a test case for Ubuntu 18.04 compiler errorKevin O'Connor2018-12-221-0/+18
| | | | | | Attempt to detect a bad build of Klipper and report an error. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* graphstats: Change stats filter to use print_time instead of bytes_write=0Kevin O'Connor2018-11-261-1/+1
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* buildcommands: Make sure to not use 96 or more message idsKevin O'Connor2018-11-181-0/+3
| | | | | | The mcu code assumes the encoder and parser id is always one byte. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* buildcommands: Remove unnecessary spaces from data dictionaryKevin O'Connor2018-11-181-1/+1
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* buildcommands: Detect duplicate strings when generating static string idsKevin O'Connor2018-11-181-1/+4
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* buildcommands: Move data dictionary generation to its own classKevin O'Connor2018-11-181-39/+47
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* buildcommands: Move version generation to its own classKevin O'Connor2018-11-181-18/+27
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* buildcommands: Move command/response code generation to its own classKevin O'Connor2018-11-181-142/+155
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* buildcommands: Move DECL_CONSTANT code to its own classKevin O'Connor2018-11-181-13/+27
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* buildcommands: Move DECL_STATIC_STR code to its own classKevin O'Connor2018-11-181-28/+41
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* buildcommands: Move DECL_CALLLIST code to its own classKevin O'Connor2018-11-181-26/+42
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* util: Fix versioning when gitdir is absent (#809)lf2018-10-271-0/+31
| | | | | | | | | | | | | The gitdir previously could be absent and produce a version of "" in spite of checks for it. Fixed. Parent directories with shlex-interpreted characters in their names could be misinterpreted. Removed shlex parsing. Packagers may want to remove the git history to slim down the package size, so add an option for using a file 'version' in the klippy directory to set version without using git. Signed-Off-By: Lucas Fink <software@lfcode.ca>
* logextract: Make sure config files end with a newlineKevin O'Connor2018-10-241-1/+1
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* logextract: Fix handling of clock reports at end of lineKevin O'Connor2018-10-081-1/+1
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>