From 9fb0b6b045e4319bd94e62f7da596b8282de027f Mon Sep 17 00:00:00 2001
From: Tim Niemeyer <tim@tn-x.org>
Date: Sat, 8 Jul 2017 13:00:07 +0200
Subject: [PATCH] buildscript: patch source before generating feeds

.. otherwise the applied patches are not used while generating the
openwrt config.

Signed-off-by: Tim Niemeyer <tim@tn-x.org>
Reviewed-by: Tobias Klaus <tk+ff@meskal.net>
---
 buildscript | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/buildscript b/buildscript
index afa77f8e..c6af21ea 100755
--- a/buildscript
+++ b/buildscript
@@ -135,6 +135,8 @@ prepare() {
     /bin/rm -rf "$target"
     cp -a src/openwrt "$target"
 
+    patch_target
+
     ## generate own feeds.conf
     #this local variable should be globally configure variable used in get_source and here
     local PACKAGEBASE=${PWD}/src/packages
@@ -166,8 +168,6 @@ prepare() {
         fi
     done
 
-    patch_target
-
     #saves ~200MB for each build
     test -d ./src/dl || mkdir ./src/dl
     ln -s ../../src/dl "$target"/dl
-- 
GitLab