-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[build]: allow single src file to build multiple independent debian p… #349
Conversation
…ackages add_derived_package setup dependency between the main deb and derived deb. The dervied deb depends on the main deb and need to install the main deb. add_peer_package does not setup dependency between the main deb and peer deb, does not require to install the main deb.
@marian-pritsak , add_derived_package does not work this case as it will try to install the base deb pacakge. However, I am not sure add_peer_pacakge is the best way to address problem. |
@lguohan, can you please describe the problem that you have and give me a usage example, because it is not so clear from PR |
slave.mk
Outdated
$(SONIC_CLEAN_DEBS) : $(DEBS_PATH)/%-clean : .platform $$(addsuffix -clean,$$(addprefix $(DEBS_PATH)/,$$($$*_DERIVED_FROM))) | ||
@# remove derived targets if main one is removed, because we treat them | ||
@# as part of one package | ||
@rm -f $(addprefix $(DEBS_PATH)/, $* $($*_DERIVED_DEBS)) | ||
|
||
$(SONIC_CLEAN_DEBS) : $(DEBS_PATH)/%-clean : .platform $$(addsuffix -clean,$$(addprefix $(DEBS_PATH)/,$$($$*_MAIN_DEB))) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No need for separate pattern rule
Just extend rule above
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
addressed
So basically extra_debs are same as derived debs except they are devoid of dependency. |
* 77d3417 2020-06-22 | [sonic-swss-common] ARMHF warning fixes (sonic-net#352) (HEAD -> master, origin/master, origin/HEAD) [arheneus@marvell.com] * da8e264 2020-06-21 | [python3]: build python3-swsscommon for python3 support (sonic-net#355) [lguohan] * 292b08a 2020-06-16 | Changes to support SONiC Gearbox Manager (sonic-net#347) [Syd Logan] * 58ca4d9 2020-06-10 | Add missed BGP tables into the schema (sonic-net#351) [pavel-shirshov] * cddfc4e 2020-06-09 | [loglevel] Avoid accessing null ptr in swssloglevel (sonic-net#349) [Stephen Sun] * 8fce898 2020-06-08 | [schema] update schema with rates and utilization table names (sonic-net#330) [Mykola F] Signed-off-by: Guohan Lu <lguohan@gmail.com>
* 77d3417 2020-06-22 | [sonic-swss-common] ARMHF warning fixes (#352) (HEAD -> master, origin/master, origin/HEAD) [arheneus@marvell.com] * da8e264 2020-06-21 | [python3]: build python3-swsscommon for python3 support (#355) [lguohan] * 292b08a 2020-06-16 | Changes to support SONiC Gearbox Manager (#347) [Syd Logan] * 58ca4d9 2020-06-10 | Add missed BGP tables into the schema (#351) [pavel-shirshov] * cddfc4e 2020-06-09 | [loglevel] Avoid accessing null ptr in swssloglevel (#349) [Stephen Sun] * 8fce898 2020-06-08 | [schema] update schema with rates and utilization table names (#330) [Mykola F] Signed-off-by: Guohan Lu <lguohan@gmail.com>
Signed-off-by: Mykola Faryma <mykolaf@mellanox.com>
Update sonic-platform-common submodule pointer to include the following: * c551a81 [sonic_ssd] Nokia-7215: Fix show platform ssdhealth ([sonic-net#337](sonic-net/sonic-platform-common#337)) * 1929332 Fix pipeline apt-get purge error. ([sonic-net#349](sonic-net/sonic-platform-common#349)) * 3d57e0e [ssd_generic] Get health status from Remaining_Life_Left field for virtium SSD ([sonic-net#344](sonic-net/sonic-platform-common#344)) Signed-off-by: AntonHryshchuk <antonh@nvidia.com>
* Fix pipeline apt-get purge error.
Why I did it src/sonic-platform-common * 41e2a6e - (HEAD -> 202205, origin/202205) Fix pipeline apt-get purge error. (#349) (#358) (6 days ago) [Liu Shilong] src/sonic-swss * 804e5ac - (HEAD -> 202205, origin/202205) [FDB]Fixing FDB consolidated flush for Remote MACs (#2673) (#2725) (4 hours ago) [Sudharsan Dhamal Gopalarathnam] src/sonic-utilities * ea1d849a - (HEAD -> 202205, origin/202205) Use sonic-swss-common artifacts from the matching source branch (#2783) (5 days ago) [Saikrishna Arcot]
…ic-utilities [submodule][202205] Update submodule sonic-utilities to the latest HEAD automatically
…ackages
add_derived_package setup dependency between the main deb and derived deb.
The dervied deb depends on the main deb and need to install the main deb.
add_peer_package does not setup dependency between the main deb and peer deb,
does not require to install the main deb.