summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSupper Thomas <[email protected]>2024-11-17 12:02:28 +0800
committerMeco Man <[email protected]>2024-11-17 22:01:42 -0500
commita7ee7b66171ad5ba0761e7f7a37fa173e82f2d76 (patch)
tree674df96b4edcfcd2a310e96269e8ff0b3c802ffe
parent44515624e25230f5ec2157c5293fba9e431569db (diff)
Revert "[tools] use project's dir basename as default project name"
This reverts commit ea75800d5b3be3e63c6304afed8b06a3fdeae289.
-rw-r--r--.github/workflows/action_tools.yml2
-rw-r--r--tools/options.py5
2 files changed, 3 insertions, 4 deletions
diff --git a/.github/workflows/action_tools.yml b/.github/workflows/action_tools.yml
index 6ad6d518d0..ba5c624cba 100644
--- a/.github/workflows/action_tools.yml
+++ b/.github/workflows/action_tools.yml
@@ -77,7 +77,7 @@ jobs:
if: ${{ success() }}
run: |
echo "Test to dist project"
- scons --dist --project-name=project -C $TEST_BSP_ROOT
+ scons --dist -C $TEST_BSP_ROOT
scons --dist-ide -C $TEST_BSP_ROOT
ls $TEST_BSP_ROOT
ls $TEST_BSP_ROOT/dist
diff --git a/tools/options.py b/tools/options.py
index 9b338e7311..b77b675612 100644
--- a/tools/options.py
+++ b/tools/options.py
@@ -22,9 +22,8 @@
# 2022-04-20 WuGensheng Add Options to SCons
#
-from SCons.Script import AddOption, Dir
+from SCons.Script import AddOption
import platform
-import os
def AddOptions():
''' ===== Add generic options to SCons ===== '''
@@ -46,7 +45,7 @@ def AddOptions():
AddOption('--project-name',
dest = 'project-name',
type = 'string',
- default = os.path.basename(Dir('#').abspath),
+ default = "project",
help = 'set project name')
AddOption('--cscope',
dest = 'cscope',