Skip to content

Instantly share code, notes, and snippets.

View SteveEasley's full-sized avatar

Steve Easley SteveEasley

  • Fandom
View GitHub Profile
@SteveEasley
SteveEasley / build_cross_gcc
Last active October 15, 2017 12:43 — forked from preshing/build_cross_gcc
A shell script to download packages for, configure, build and install a GCC cross-compiler.
#! /bin/bash
set -e
trap 'previous_command=$this_command; this_command=$BASH_COMMAND' DEBUG
trap 'echo FAILED COMMAND: $previous_command' EXIT
apt-get update && apt-get install -y wget g++ make gawk texinfo xz-utils vim
#-------------------------------------------------------------------------------------------
# This script will download packages for, configure, build and install a GCC cross-compiler.
# Customize the variables (INSTALL_PATH, TARGET, etc.) to your liking before running.