Skip to content
Snippets Groups Projects
Commit 1cc09485 authored by Matthias Schiffer's avatar Matthias Schiffer
Browse files

Add update-patches target

parent 1117cc39
No related branches found
No related tags found
No related merge requests found
......@@ -28,6 +28,10 @@ patch: FORCE
unpatch: FORCE
$(GLUONDIR)/scripts/unpatch.sh $(GLUONDIR)
update-patches: FORCE
$(GLUONDIR)/scripts/update-patches.sh $(GLUONDIR)
$(GLUONDIR)/scripts/patch.sh $(GLUONDIR)
-include $(TOPDIR)/include/host.mk
_SINGLE=export MAKEFLAGS=$(space);
......
From 9331b9e86ff3cd1a368ba61721c1555807fa772e Mon Sep 17 00:00:00 2001
Message-Id: <9331b9e86ff3cd1a368ba61721c1555807fa772e.1388167228.git.mschiffer@universe-factory.net>
From e541a190d4f54d35043a804f42af746793181405 Mon Sep 17 00:00:00 2001
Message-Id: <e541a190d4f54d35043a804f42af746793181405.1388240789.git.mschiffer@universe-factory.net>
From: Matthias Schiffer <mschiffer@universe-factory.net>
Date: Fri, 27 Dec 2013 18:48:19 +0100
Subject: [PATCH] Make Unifi images flashable
......
......@@ -3,12 +3,12 @@
set -e
shopt -s nullglob
. $1/modules
. "$1"/modules
for module in $GLUON_MODULES; do
dir=$1/$module
dir="$1"/$module
git -C $dir checkout -B patched base
if [ -z $1/patches/$module/*.patch ]; then continue; fi
git -C $dir am $1/patches/$module/*.patch
if [ -z "$1"/patches/$module/*.patch ]; then continue; fi
git -C "$dir" am "$1"/patches/$module/*.patch
done
......@@ -2,9 +2,9 @@
set -e
. $1/modules
. "$1"/modules
for module in $GLUON_MODULES; do
dir=$1/$module
git -C $dir checkout base
dir="$1"/$module
git -C "$dir" checkout base
done
#!/bin/bash
set -e
shopt -s nullglob
. "$1"/modules
for module in $GLUON_MODULES; do
dir="$1"/$module
git -C "$dir" checkout patched
rm -f "$1"/patches/$module/*.patch
mkdir -p "$1"/patches/$module
git -C "$dir" format-patch -o "$1"/patches/$module base
done
......@@ -2,15 +2,15 @@
set -e
. $1/modules
. "$1"/modules
for module in $GLUON_MODULES; do
dir=$1/$module
mkdir -p $dir
var=$(echo "$module" | tr '[:lower:]/' '[:upper:]_')
dir="$1"/$module
mkdir -p "$dir"
var=$(echo $module | tr '[:lower:]/' '[:upper:]_')
eval repo=\${MODULE_${var}_REPO}
eval commit=\${MODULE_${var}_COMMIT}
git -C $dir init
git -C $dir fetch $repo
git -C $dir checkout -B base $commit
git -C "$dir" init
git -C "$dir" fetch $repo
git -C "$dir" checkout -B base $commit
done
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment