Skip to content

Instantly share code, notes, and snippets.

@Ekanar-Eklectic
Ekanar-Eklectic / build_cross_gcc
Created April 15, 2021 05:24 — 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
#-------------------------------------------------------------------------------------------
# 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.
# If you get an error and need to resume the script from some point in the middle,
# just delete/comment the preceding lines before running it again.
@Ekanar-Eklectic
Ekanar-Eklectic / bldgcc.sh
Created April 26, 2021 09:02 — forked from kdrag0n/bldgcc.sh
A script to build compact bare-metal toolchains with GCC and binutils. Thanks to @nathanchance for the base.
#!/usr/bin/env zsh
#
# Builds GCC and binutils for exclusively building kernels
#
# Modified by @kdrag0n for building compact toolchains.
# Thanks to Nathan Chancellor for the original bldgcc script:
# https://github.com/nathanchance/scripts/blob/master/funcs/bldgcc
#
# Example usage:
@Ekanar-Eklectic
Ekanar-Eklectic / build-gcc.sh
Created July 1, 2021 20:11 — forked from jeetsukumaran/build-gcc.sh
Build and Install GCC Suite from Scratch
#! /bin/bash
GCC_VERSION="5.2.0"
WORKDIR="$HOME/src/"
INSTALLDIR="/platform"
## NOTE: XCode must be installed (through App Store) and the following run to install command-line tools.
## THIS IS IMPORTANT! Among other things, it creates '/usr/include' and installs the system header files.
# xcode-select --install
@Ekanar-Eklectic
Ekanar-Eklectic / build-arm-none-eabi.sh
Created July 12, 2021 20:44 — forked from Darchiv/build-arm-none-eabi.sh
Build script for a GNU toolchain
#!/bin/bash
# What this script does:
# - downloads sources of GCC, Binutils, and GDB;
# - unpacks them;
# - configures for local static build;
# - builds;
# - packs into (primitive) .deb files.
set -e
#!/bin/sh
#
# file: build-bleeding-edge-toolchain.sh
#
# author: Copyright (C) 2016-2017 Freddie Chopin http://www.freddiechopin.info http://www.distortec.com
#
# This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not
# distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/.
#
#!/bin/bash
iatest=$(expr index "$-" i)
#######################################################
# SOURCED ALIAS'S AND SCRIPTS BY zachbrowne.me
#######################################################
# Source global definitions
if [ -f /etc/bashrc ]; then
. /etc/bashrc
@Ekanar-Eklectic
Ekanar-Eklectic / example-unbound.conf
Created June 17, 2022 04:40 — forked from kevinoid/example-unbound.conf
Setup Unbound with Dnsmasq on OpenWrt
server:
do-not-query-localhost: no
domain-insecure: "0.168.192.in-addr.arpa"
domain-insecure: "example.local"
local-zone: "168.192.in-addr.arpa." nodefault
private-address: 10.0.0.0/8
private-address: 169.254.0.0/16
private-address: 172.16.0.0/12
private-address: 192.168.0.0/16
private-address: fd00::/8