-
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
[master][build] fix compile error when enable nostrip #6058
base: master
Are you sure you want to change the base?
[master][build] fix compile error when enable nostrip #6058
Conversation
Signed-off-by: tim-rj <sonic_rd@ruijie.com.cn>
it seems DBG_TARGETS is newly introduced, can you rename it as DEBUG_TARGETS? |
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.
Please address Guohan's comments. The change looks good.
ok |
Signed-off-by: tim-rj <sonic_rd@ruijie.com.cn>
what is the use case to enable nostrip option during the build? I am not aware of this. @tim-rj , @renukamanavalan , what is the use case here? |
@lguohan when enable SONIC_DEBUGGING_ON or SONIC_PROFILING_ON micro, "notrip“” option will be added in slave.mk. |
src/hiredis/Makefile
Outdated
|
||
ifneq ($(findstring nostrip,$(DEB_BUILD_OPTIONS)),nostrip) | ||
$(eval DERIVED_TARGETS += $(DEBUG_TARGETS)) | ||
endif |
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.
this is common across different Makefile, then I think it is better to be move to common place.
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.
ok
Signed-off-by: tim-rj <sonic_rd@ruijie.com.cn>
help forward this, thanks! |
Signed-off-by: tim-rj sonic_rd@ruijie.com.cn
- Why I did it
fix #5982
- How I did it
check notrip option before handle dbgsym debs
- How to verify it
set SONIC_DEBUGGING_ON=y / SONIC_PROFING_ON=y and compile the whole image
- Which release branch to backport (provide reason below if selected)
- Description for the changelog
If SONIC_DEBUG_ON or SONIC_PROFILING_ON set to y, no dbgsym debs will be stripped from the origin deb, so mv dbgsym deb to some other folders will fail and compiling will stop.
- A picture of a cute animal (not mandatory but encouraged)