From 74b6c4074b3ba61fb1fbd4f4b036693c95eeeee1 Mon Sep 17 00:00:00 2001 From: Qi Luo Date: Thu, 16 Mar 2017 14:24:43 -0700 Subject: [PATCH] Support submodule patching if provided (#403) * Support submodule patching if provided * Replace stg with quilt, working without git branch --- slave.mk | 2 ++ 1 file changed, 2 insertions(+) diff --git a/slave.mk b/slave.mk index ef4cf58924..fd05c26620 100644 --- a/slave.mk +++ b/slave.mk @@ -229,7 +229,9 @@ $(SONIC_INSTALL_TARGETS) : $(DEBS_PATH)/%-install : .platform $$(addsuffix -inst $(addprefix $(PYTHON_WHEELS_PATH)/, $(SONIC_PYTHON_WHEELS)) : $(PYTHON_WHEELS_PATH)/% : .platform $$(addsuffix -install,$$(addprefix $(PYTHON_WHEELS_PATH)/,$$($$*_DEPENDS))) $(HEADER) pushd $($*_SRC_PATH) $(LOG) + if [ -f ../$(notdir $($*_SRC_PATH)).patch/series ]; then QUILT_PATCHES=../$(notdir $($*_SRC_PATH)).patch/series quilt push -a; fi python$($*_PYTHON_VERSION) setup.py bdist_wheel $(LOG) + if [ -f ../$(notdir $($*_SRC_PATH)).patch/series ]; then quilt pop -a; fi popd $(LOG) mv $($*_SRC_PATH)/dist/$* $(PYTHON_WHEELS_PATH) $(LOG) $(FOOTER)