contrib/uci: apply patch series during host uci build

This commit is contained in:
Jo-Philipp Wich 2009-10-07 23:12:27 +00:00
parent da2b40c9e3
commit f6164c6955

View file

@ -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