From: Jo-Philipp Wich Date: Wed, 7 Oct 2009 23:12:27 +0000 (+0000) Subject: contrib/uci: apply patch series during host uci build X-Git-Tag: 0.10.0~1119 X-Git-Url: https://git.archive.openwrt.org/?p=project%2Fluci.git;a=commitdiff_plain;h=f6164c6955d6704b587c16f1572c9806c7f11c07;ds=sidebyside contrib/uci: apply patch series during host uci build --- diff --git a/contrib/uci/Makefile b/contrib/uci/Makefile index 19625aa72..98e5ed439 100644 --- a/contrib/uci/Makefile +++ b/contrib/uci/Makefile @@ -23,9 +23,12 @@ $(UCI_FILE): $(UCI_PATCHDIR)/series: (cd $(UCI_PATCHDIR); ls *.patch | sort > series) -$(UCI_DIR)/.prepared: $(UCI_FILE) +$(UCI_DIR)/.prepared: $(UCI_PATCHDIR)/series $(UCI_FILE) rm -rf $(UCI_DIR) tar xvfz $(UCI_FILE) + while read patch; do \ + patch -d $(UCI_DIR) -p1 < $(UCI_PATCHDIR)/$$patch; \ + done < $(UCI_PATCHDIR)/series touch $@ compile: $(UCI_DIR)/.prepared