Skip to content

Instantly share code, notes, and snippets.

View ladislas's full-sized avatar
💭
...

Ladislas de Toldi ladislas

💭
...
View GitHub Profile
FOLDERS='
demos/LPC21xx
demos/SPC5
demos/STM32
demos/various
doc
ext
os/common/abstractions
os/common/ext
os/ex
printf "\nCloning weareleka/chibios to chibios\n"
git clone https://github.com/weareleka/chibios --depth=1
printf "\nChanging directory to chibios\n"
cd chibios
printf "\nChanhing the fetch origin config\n"
git config remote.origin.fetch "+refs/heads/*:refs/remotes/origin/*"
printf "\nFetching the stable branch\n"
diff --git a/Arduino.mk b/Arduino.mk
index 50d60ee..c626697 100644
--- a/Arduino.mk
+++ b/Arduino.mk
@@ -825,6 +825,19 @@ else
endif
+########################################################################
+# Automatically find the libraries needed to compile the sketch
@ladislas
ladislas / avr-binutils-size.patch
Created May 8, 2017 21:25
Patch for AVR Binutils Size
AVR only; support -C for AVR memory usage
Source: http://git.makehackvoid.com/cgi-bin/gitweb.cgi?p=mhvavrtools.git;a=blob_plain;f=mhvavrtools/patches/binutils-001-avr-size.patch;h=e80d28eae46217551d996a2253256c97d10aa4b5;hb=refs/heads/master
===========================================================
--- binutils/size.c
+++ binutils/size.c
@@ -34,10 +34,31 @@
#include "getopt.h"
#include "bucomm.h"
@ladislas
ladislas / auto lib build output
Created April 5, 2015 19:28
Build output for auto lib detection
# ladislas @pc28.home in ~/dev/leka/Bare-Arduino-Project/src/BarProject
± |update-arduino-mk ✗| → make
-------------------------
Arduino.mk Configuration:
- [AUTODETECTED] CURRENT_OS = MAC
- [USER] ARDUINO_DIR = /Applications/Arduino.app/Contents/Java/
- [USER] ARDMK_DIR = /Users/ladislas/dev/leka/Bare-Arduino-Project/Arduino-Makefile
- [AUTODETECTED] ARDUINO_VERSION = 163
- [DEFAULT] ARCHITECTURE = avr
- [DEFAULT] VENDOR = arduino
# ladislas @LadBookPro.local in ~
→ brew cask doctor
==> OS X Release:
10.10
==> OS X Release with Patchlevel:
10.10.2
==> Hardware Architecture:
intel-64
==> Ruby Version:
2.0.0-p481
@ladislas
ladislas / Makefile
Last active August 29, 2015 14:05
Drone.io Makefile
### DISCLAIMER
### This is an example Makefile and it MUST be configured to suit your needs.
### For detailled explanations about all the avalaible options,
### please refer to https://github.com/sudar/Arduino-Makefile/blob/master/arduino-mk-vars.md
### PROJECT_DIR
### This is the path to where you have created/cloned your project
PROJECT_DIR = /home/ubuntu/src/github.com/WeAreLeka/Bare-Arduino-Project
### AVR_GCC_VERSION
@ladislas
ladislas / ttylog-target-destination.patch
Last active August 29, 2015 14:05
ttylog target destination patch
ttylog - change the install target destination from 'sbin' to 'bin' for homebrew formula
===========================================================
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -22,6 +22,6 @@ SET(ttylog_executable_HDRS
ADD_EXECUTABLE(ttylog ${ttylog_executable_SRCS})
# add install targets:
-INSTALL(TARGETS ttylog DESTINATION sbin)
+INSTALL(TARGETS ttylog DESTINATION bin)
@ladislas
ladislas / auto-lib.py
Created August 18, 2014 16:36
Python script to auto-find libraries dependencies for gcc
# !/usr/bin/python
import os
import re
import sys
# Set variables
USER_LIB_PATH = sys.argv[1]
USER_LIBS = [] ;
includeRegex = re.compile("(?<=^\#include\s[\<\"])(.*)(?=\.h[\>\"])", re.DOTALL|re.M)
@ladislas
ladislas / make with std flags
Created August 12, 2014 15:24
Compilation output with std flags
# Ladislas in ~/dev/leka/moti/src/moti
± |dev ✗| → make
-------------------------
Arduino.mk Configuration:
- [AUTODETECTED] CURRENT_OS = MAC
- [USER] ARDMK_DIR = /Users/Ladislas/dev/leka/moti/Arduino-Makefile
- [USER] ARDUINO_DIR = /Applications/Arduino.app/Contents/Resources/Java
- [AUTODETECTED] ARDUINO_VERSION = 105
- [DEFAULT] ARCHITECTURE =
- [DEFAULT] VENDOR = arduino