This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: |
NewerOlder