Fix: support submodule patching if provided (#407)
This commit is contained in:
parent
1e07284e7a
commit
36e02f76ee
10
slave.mk
10
slave.mk
@ -132,8 +132,12 @@ $(addprefix $(DEBS_PATH)/, $(SONIC_MAKE_DEBS)) : $(DEBS_PATH)/% : .platform $$(a
|
|||||||
$(HEADER)
|
$(HEADER)
|
||||||
# remove target to force rebuild
|
# remove target to force rebuild
|
||||||
rm -f $(addprefix $(DEBS_PATH)/, $* $($*_DERIVED_DEBS) $($*_EXTRA_DEBS))
|
rm -f $(addprefix $(DEBS_PATH)/, $* $($*_DERIVED_DEBS) $($*_EXTRA_DEBS))
|
||||||
|
# apply series of patches if exist
|
||||||
|
if [ -f $($*_SRC_PATH).patch/series ]; then pushd $($*_SRC_PATH) && QUILT_PATCHES=../$(notdir $($*_SRC_PATH)).patch quilt push -a; popd; fi
|
||||||
# build project and take package
|
# build project and take package
|
||||||
make DEST=$(shell pwd)/$(DEBS_PATH) -C $($*_SRC_PATH) $(shell pwd)/$(DEBS_PATH)/$* $(LOG)
|
make DEST=$(shell pwd)/$(DEBS_PATH) -C $($*_SRC_PATH) $(shell pwd)/$(DEBS_PATH)/$* $(LOG)
|
||||||
|
# clean up
|
||||||
|
if [ -f $($*_SRC_PATH).patch/series ]; then pushd $($*_SRC_PATH) && quilt pop -a -f; popd; fi
|
||||||
$(FOOTER)
|
$(FOOTER)
|
||||||
|
|
||||||
# Build project with dpkg-buildpackage
|
# Build project with dpkg-buildpackage
|
||||||
@ -229,9 +233,11 @@ $(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)))
|
$(addprefix $(PYTHON_WHEELS_PATH)/, $(SONIC_PYTHON_WHEELS)) : $(PYTHON_WHEELS_PATH)/% : .platform $$(addsuffix -install,$$(addprefix $(PYTHON_WHEELS_PATH)/,$$($$*_DEPENDS)))
|
||||||
$(HEADER)
|
$(HEADER)
|
||||||
pushd $($*_SRC_PATH) $(LOG)
|
pushd $($*_SRC_PATH) $(LOG)
|
||||||
if [ -f ../$(notdir $($*_SRC_PATH)).patch/series ]; then QUILT_PATCHES=../$(notdir $($*_SRC_PATH)).patch/series quilt push -a; fi
|
# apply series of patches if exist
|
||||||
|
if [ -f ../$(notdir $($*_SRC_PATH)).patch/series ]; then QUILT_PATCHES=../$(notdir $($*_SRC_PATH)).patch quilt push -a; fi
|
||||||
python$($*_PYTHON_VERSION) setup.py bdist_wheel $(LOG)
|
python$($*_PYTHON_VERSION) setup.py bdist_wheel $(LOG)
|
||||||
if [ -f ../$(notdir $($*_SRC_PATH)).patch/series ]; then quilt pop -a; fi
|
# clean up
|
||||||
|
if [ -f ../$(notdir $($*_SRC_PATH)).patch/series ]; then quilt pop -a -f; fi
|
||||||
popd $(LOG)
|
popd $(LOG)
|
||||||
mv $($*_SRC_PATH)/dist/$* $(PYTHON_WHEELS_PATH) $(LOG)
|
mv $($*_SRC_PATH)/dist/$* $(PYTHON_WHEELS_PATH) $(LOG)
|
||||||
$(FOOTER)
|
$(FOOTER)
|
||||||
|
Loading…
Reference in New Issue
Block a user