Hi Runming,
In current sonic-buildimage build process, it will use dh-make to clean/build the debian file for the target.
If you need a increment build in the development process, you can try the following procedure.
1. Enter the slave build container in your target debian version, take buster for example
# BLDENV=buster NOSTRETCH=1 NOBULLSEYE=1 make sonic-slave-bash
The above command can start a build container and then mount the source folder into it, the build environment should be ready to use
2. Build needed object files according to the submodule, take sonic-swss for example
change the folder and make
# cd src/sonic-swss
# make
In this stage, you can modify the code and re-build to make sure no error happens
3. Build debian files
Most of the submodule already has related debian build config file, execute the command to build binary only without clean/compile
# fakeroot make -f debian/rules binary
After the build, the debian file should be ready (but it will not move to the target folder automatically)
Hope the above process helps,
Jimi
Runming Wu 在 2022年2月23日 星期三上午2:24:51 [UTC+8] 的信中寫道: