Skip to content

Instantly share code, notes, and snippets.

@cjmeyer
cjmeyer / arm-none-eabi-gcc.sh
Last active May 27, 2023 07:47
Bash: Build Binutils, GCC, Newlib, and GDB for ARM EABI (Cross-compiler).
#! /usr/bin/env bash
# Target and build configuration.
TARGET=arm-none-eabi
PREFIX=/opt/arm-none-eabi-4.7.1
# Sources to build from.
BINUTILS=binutils-2.23.1
GCC=gcc-4.7.1
NEWLIB=newlib-1.20.0
@cjmeyer
cjmeyer / setup.py
Created March 7, 2012 15:10
Python: Generate version number from Git commit description.
import time
from subprocess import Popen, PIPE
try:
describe = 'git describe --abbrev=8 --dirty'
version = Popen(describe.split(), stdout=PIPE).communicate()[0].strip()
except:
version = None
else: