mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2025-02-28 05:37:04 +08:00
[imxrt1170-m7]Adjust pro dir structure (#6446)
This commit is contained in:
parent
8d3c1f7008
commit
4b897fea3f
@ -3,7 +3,7 @@ mainmenu "RT-Thread Configuration"
|
|||||||
config RTT_DIR
|
config RTT_DIR
|
||||||
string
|
string
|
||||||
option env="RTT_ROOT"
|
option env="RTT_ROOT"
|
||||||
default "../../.."
|
default "../../../.."
|
||||||
|
|
||||||
config PKGS_DIR
|
config PKGS_DIR
|
||||||
string
|
string
|
||||||
@ -12,5 +12,5 @@ config PKGS_DIR
|
|||||||
|
|
||||||
source "$RTT_DIR/Kconfig"
|
source "$RTT_DIR/Kconfig"
|
||||||
source "$PKGS_DIR/Kconfig"
|
source "$PKGS_DIR/Kconfig"
|
||||||
source "../libraries/Kconfig"
|
source "../../libraries/Kconfig"
|
||||||
source "board/Kconfig"
|
source "board/Kconfig"
|
@ -5,7 +5,7 @@ import rtconfig
|
|||||||
if os.getenv('RTT_ROOT'):
|
if os.getenv('RTT_ROOT'):
|
||||||
RTT_ROOT = os.getenv('RTT_ROOT')
|
RTT_ROOT = os.getenv('RTT_ROOT')
|
||||||
else:
|
else:
|
||||||
RTT_ROOT = os.path.normpath(os.getcwd() + '/../../..')
|
RTT_ROOT = os.path.normpath(os.getcwd() + '/../../../..')
|
||||||
|
|
||||||
sys.path = sys.path + [os.path.join(RTT_ROOT, 'tools')]
|
sys.path = sys.path + [os.path.join(RTT_ROOT, 'tools')]
|
||||||
try:
|
try:
|
||||||
@ -46,10 +46,10 @@ Export('RTT_ROOT')
|
|||||||
Export('rtconfig')
|
Export('rtconfig')
|
||||||
|
|
||||||
SDK_ROOT = os.path.abspath('./')
|
SDK_ROOT = os.path.abspath('./')
|
||||||
if os.path.exists(SDK_ROOT + '/libraries'):
|
if os.path.exists(SDK_ROOT + '/../libraries'):
|
||||||
libraries_path_prefix = SDK_ROOT + '/libraries'
|
libraries_path_prefix = SDK_ROOT + '/../libraries'
|
||||||
else:
|
else:
|
||||||
libraries_path_prefix = os.path.dirname(SDK_ROOT) + '/libraries'
|
libraries_path_prefix = os.path.dirname(SDK_ROOT) + '/../libraries'
|
||||||
|
|
||||||
SDK_LIB = libraries_path_prefix
|
SDK_LIB = libraries_path_prefix
|
||||||
Export('SDK_LIB')
|
Export('SDK_LIB')
|
Loading…
x
Reference in New Issue
Block a user