[fix][feature]Default to the previous fully packaged logic, add a 'dist-strip' option for simplified packaging.

This commit is contained in:
ZhaoCake
2025-03-02 17:27:23 +08:00
committed by Rbb666
parent f5c24a9bfc
commit db359af5c0
4 changed files with 327 additions and 353 deletions

View File

@@ -20,7 +20,7 @@
# Change Logs:
# Date Author Notes
# 2022-04-20 WuGensheng Add Options to SCons
#
# 2025-03-02 ZhaoCake Add Options about compile_commands
from SCons.Script import AddOption
import platform
@@ -147,4 +147,10 @@ def AddOptions():
help = 'View attachconfig or add attach to.config.'+\
'e.g. scons --attach=? View all attachconfig for the current bsp.'+\
' or scons --attach=component.cherryusb_cdc Set option component.cherryusb_cdc inside attachconfig to.config.'+\
' or scons --attach=default Restore.config and rtconfig to before attch was set.')
' or scons --attach=default Restore.config and rtconfig to before attch was set.')
AddOption('--dist-strip',
dest='dist_strip',
action='store_true',
default=False,
help='create minimal distribution based on compile_commands.json.'+\
'So you should run `bear -- scons` to generate compile_commands.json first.')