From patchwork Sat Mar 19 10:56:40 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [v2, 2/2] Changed patch behavior because if was not comfortable. Now you don't need to add every patch into buildscript. From: Jan Kraus X-Patchwork-Id: 27 Message-Id: <1458385000-7805-3-git-send-email-mayosemmel@gmail.com> To: franken-dev@freifunk.net Cc: Jan Kraus Date: Sat, 19 Mar 2016 11:56:40 +0100 Signed-off-by: Jan Kraus --- buildscript | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/buildscript b/buildscript index 8bfa1e2..c174e8b 100755 --- a/buildscript +++ b/buildscript @@ -116,6 +116,12 @@ get_source() { cd .. # src } +patch_target() { + for patch in "$PWD"/build_patches/openwrt/*.patch; do + patch -p0 -d "$target" -i "$patch" + done +} + prepare() { get_source @@ -155,15 +161,7 @@ prepare() { fi done - # todo evaluate this with the new openwrt - # This changes the default behavior of sysupgrade to not save the config - patch -p0 -d "$target" -i "$PWD"/build_patches/sysupgrade_no_config_save.patch - - # set default password to 'ffol' - patch -p0 -d "$target" -i "$PWD"/build_patches/set_root_password.patch - - #add Support for GL-AR150 see also http://git.openwrt.org/?p=openwrt.git;a=commit;h=8211e81bce57392635fa3ad6572514387118e4a5 - patch -p0 -d "$target" -i "$PWD"/build_patches/ar71xx-add-support-for-GL-AR150.patch + patch_target #saves ~200MB for each build test -d ./src/dl || mkdir ./src/dl