Skip to content

Commit

Permalink
[bsp][hpmicro]添加utest相关段信息,修复scons编译问题
Browse files Browse the repository at this point in the history
  • Loading branch information
Rbb666 authored and mysterywolf committed Sep 11, 2024
1 parent cb0b5b0 commit 0df9a9f
Show file tree
Hide file tree
Showing 18 changed files with 63 additions and 9 deletions.
2 changes: 1 addition & 1 deletion bsp/hpmicro/hpm5300evk/SConstruct
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import rtconfig
if os.getenv('RTT_ROOT'):
RTT_ROOT = os.getenv('RTT_ROOT')
else:
RTT_ROOT = os.path.normpath(os.getcwd() + '/../../../../rt-thread')
RTT_ROOT = os.path.normpath(os.getcwd() + '/../../..')

sys.path = sys.path + [os.path.join(RTT_ROOT, 'tools')]
try:
Expand Down
6 changes: 6 additions & 0 deletions bsp/hpmicro/hpm5300evk/board/linker_scripts/flash_rtt.ld
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,12 @@ SECTIONS
* RT-Thread related sections - Start
*
*********************************************/
/* section information for utest */
. = ALIGN(4);
__rt_utest_tc_tab_start = .;
KEEP(*(UtestTcTab))
__rt_utest_tc_tab_end = .;

/* section information for finsh shell */
. = ALIGN(4);
__fsymtab_start = .;
Expand Down
2 changes: 1 addition & 1 deletion bsp/hpmicro/hpm5301evklite/SConstruct
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import rtconfig
if os.getenv('RTT_ROOT'):
RTT_ROOT = os.getenv('RTT_ROOT')
else:
RTT_ROOT = os.path.normpath(os.getcwd() + '/../../../../rt-thread')
RTT_ROOT = os.path.normpath(os.getcwd() + '/../../..')

sys.path = sys.path + [os.path.join(RTT_ROOT, 'tools')]
try:
Expand Down
6 changes: 6 additions & 0 deletions bsp/hpmicro/hpm5301evklite/board/linker_scripts/flash_rtt.ld
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,12 @@ SECTIONS
* RT-Thread related sections - Start
*
*********************************************/
/* section information for utest */
. = ALIGN(4);
__rt_utest_tc_tab_start = .;
KEEP(*(UtestTcTab))
__rt_utest_tc_tab_end = .;

/* section information for finsh shell */
. = ALIGN(4);
__fsymtab_start = .;
Expand Down
2 changes: 1 addition & 1 deletion bsp/hpmicro/hpm6200evk/SConstruct
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import rtconfig
if os.getenv('RTT_ROOT'):
RTT_ROOT = os.getenv('RTT_ROOT')
else:
RTT_ROOT = os.path.normpath(os.getcwd() + '/../../../../rt-thread')
RTT_ROOT = os.path.normpath(os.getcwd() + '/../../..')

sys.path = sys.path + [os.path.join(RTT_ROOT, 'tools')]
try:
Expand Down
6 changes: 6 additions & 0 deletions bsp/hpmicro/hpm6200evk/board/linker_scripts/flash_rtt.ld
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,12 @@ SECTIONS
* RT-Thread related sections - Start
*
*********************************************/
/* section information for utest */
. = ALIGN(4);
__rt_utest_tc_tab_start = .;
KEEP(*(UtestTcTab))
__rt_utest_tc_tab_end = .;

/* section information for finsh shell */
. = ALIGN(4);
__fsymtab_start = .;
Expand Down
2 changes: 1 addition & 1 deletion bsp/hpmicro/hpm6300evk/SConstruct
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import rtconfig
if os.getenv('RTT_ROOT'):
RTT_ROOT = os.getenv('RTT_ROOT')
else:
RTT_ROOT = os.path.normpath(os.getcwd() + '/../../../../rt-thread')
RTT_ROOT = os.path.normpath(os.getcwd() + '/../../..')

sys.path = sys.path + [os.path.join(RTT_ROOT, 'tools')]
try:
Expand Down
6 changes: 6 additions & 0 deletions bsp/hpmicro/hpm6300evk/board/linker_scripts/flash_rtt.ld
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,12 @@ SECTIONS
* RT-Thread related sections - Start
*
*********************************************/
/* section information for utest */
. = ALIGN(4);
__rt_utest_tc_tab_start = .;
KEEP(*(UtestTcTab))
__rt_utest_tc_tab_end = .;

/* section information for finsh shell */
. = ALIGN(4);
__fsymtab_start = .;
Expand Down
2 changes: 1 addition & 1 deletion bsp/hpmicro/hpm6750evk/SConstruct
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import rtconfig
if os.getenv('RTT_ROOT'):
RTT_ROOT = os.getenv('RTT_ROOT')
else:
RTT_ROOT = os.path.normpath(os.getcwd() + '/../../../../rt-thread')
RTT_ROOT = os.path.normpath(os.getcwd() + '/../../..')

sys.path = sys.path + [os.path.join(RTT_ROOT, 'tools')]
try:
Expand Down
6 changes: 6 additions & 0 deletions bsp/hpmicro/hpm6750evk/board/linker_scripts/flash_rtt.ld
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,12 @@ SECTIONS
* RT-Thread related sections - Start
*
*********************************************/
/* section information for utest */
. = ALIGN(4);
__rt_utest_tc_tab_start = .;
KEEP(*(UtestTcTab))
__rt_utest_tc_tab_end = .;

/* section information for finsh shell */
. = ALIGN(4);
__fsymtab_start = .;
Expand Down
2 changes: 1 addition & 1 deletion bsp/hpmicro/hpm6750evk2/SConstruct
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import rtconfig
if os.getenv('RTT_ROOT'):
RTT_ROOT = os.getenv('RTT_ROOT')
else:
RTT_ROOT = os.path.normpath(os.getcwd() + '/../../../../rt-thread')
RTT_ROOT = os.path.normpath(os.getcwd() + '/../../..')

sys.path = sys.path + [os.path.join(RTT_ROOT, 'tools')]
try:
Expand Down
6 changes: 6 additions & 0 deletions bsp/hpmicro/hpm6750evk2/board/linker_scripts/flash_rtt.ld
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,12 @@ SECTIONS
* RT-Thread related sections - Start
*
*********************************************/
/* section information for utest */
. = ALIGN(4);
__rt_utest_tc_tab_start = .;
KEEP(*(UtestTcTab))
__rt_utest_tc_tab_end = .;

/* section information for finsh shell */
. = ALIGN(4);
__fsymtab_start = .;
Expand Down
2 changes: 1 addition & 1 deletion bsp/hpmicro/hpm6750evkmini/SConstruct
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import rtconfig
if os.getenv('RTT_ROOT'):
RTT_ROOT = os.getenv('RTT_ROOT')
else:
RTT_ROOT = os.path.normpath(os.getcwd() + '/../../../../rt-thread')
RTT_ROOT = os.path.normpath(os.getcwd() + '/../../..')

sys.path = sys.path + [os.path.join(RTT_ROOT, 'tools')]
try:
Expand Down
6 changes: 6 additions & 0 deletions bsp/hpmicro/hpm6750evkmini/board/linker_scripts/flash_rtt.ld
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,12 @@ SECTIONS
* RT-Thread related sections - Start
*
*********************************************/
/* section information for utest */
. = ALIGN(4);
__rt_utest_tc_tab_start = .;
KEEP(*(UtestTcTab))
__rt_utest_tc_tab_end = .;

/* section information for finsh shell */
. = ALIGN(4);
__fsymtab_start = .;
Expand Down
2 changes: 1 addition & 1 deletion bsp/hpmicro/hpm6800evk/SConstruct
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import rtconfig
if os.getenv('RTT_ROOT'):
RTT_ROOT = os.getenv('RTT_ROOT')
else:
RTT_ROOT = os.path.normpath(os.getcwd() + '/../../../../rt-thread')
RTT_ROOT = os.path.normpath(os.getcwd() + '/../../..')

sys.path = sys.path + [os.path.join(RTT_ROOT, 'tools')]
try:
Expand Down
6 changes: 6 additions & 0 deletions bsp/hpmicro/hpm6800evk/board/linker_scripts/flash_rtt.ld
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,12 @@ SECTIONS
* RT-Thread related sections - Start
*
*********************************************/
/* section information for utest */
. = ALIGN(4);
__rt_utest_tc_tab_start = .;
KEEP(*(UtestTcTab))
__rt_utest_tc_tab_end = .;

/* section information for finsh shell */
. = ALIGN(4);
__fsymtab_start = .;
Expand Down
2 changes: 1 addition & 1 deletion bsp/hpmicro/hpm6e00evk/SConstruct
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import rtconfig
if os.getenv('RTT_ROOT'):
RTT_ROOT = os.getenv('RTT_ROOT')
else:
RTT_ROOT = os.path.normpath(os.getcwd() + '/../../../../rt-thread')
RTT_ROOT = os.path.normpath(os.getcwd() + '/../../..')

sys.path = sys.path + [os.path.join(RTT_ROOT, 'tools')]
try:
Expand Down
6 changes: 6 additions & 0 deletions bsp/hpmicro/hpm6e00evk/board/linker_scripts/flash_rtt.ld
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,12 @@ SECTIONS
* RT-Thread related sections - Start
*
*********************************************/
/* section information for utest */
. = ALIGN(4);
__rt_utest_tc_tab_start = .;
KEEP(*(UtestTcTab))
__rt_utest_tc_tab_end = .;

/* section information for finsh shell */
. = ALIGN(4);
__fsymtab_start = .;
Expand Down

0 comments on commit 0df9a9f

Please sign in to comment.