Skip to content

Instantly share code, notes, and snippets.

View pepe2k's full-sized avatar

Piotr Dymacz pepe2k

  • RTS/Freelancer
  • Warsaw, Poland
View GitHub Profile
@pepe2k
pepe2k / compile_all_boards.sh
Created October 5, 2017 14:32 — forked from mkresin/compile_all_boards.sh
compiles all targets or a whitespace seperated list of targets
#!/bin/bash
CPUS=9
function build {
cat << EOF > .config
CONFIG_TARGET_${TARGET}=y
CONFIG_TARGET_MULTI_PROFILE=y
CONFIG_TARGET_ALL_PROFILES=y
CONFIG_TARGET_PER_DEVICE_ROOTFS=y
@pepe2k
pepe2k / patchwork-apply.sh
Created August 20, 2017 14:48 — forked from jow-/patchwork-apply.sh
Script to fetch patchwork patch, apply it and confirm it in patchwork and via email.
#!/usr/bin/env bash
yesno() {
local prompt="$1"
local default="${2:-n}"
local input
while [ 1 ]; do
printf "%s y/n [%s] > " "$prompt" "$default"
read input
#!/bin/sh
KERNEL=$1
PATCHVER=$2
[ -z "$1" -o -z "$2" ] && {
echo "usage: refresh_kernel.sh <version> <release>"
echo "example: refresh_kernel.sh 3.18 3.18.30"
exit 1
}