Browse Source

[bsp][hpmicro]添加utest相关段信息,修复scons编译问题

Rbb666 11 months ago
parent
commit
0df9a9f0cc

+ 1 - 1
bsp/hpmicro/hpm5300evk/SConstruct

@@ -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:

+ 6 - 0
bsp/hpmicro/hpm5300evk/board/linker_scripts/flash_rtt.ld

@@ -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 = .;

+ 1 - 1
bsp/hpmicro/hpm5301evklite/SConstruct

@@ -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:

+ 6 - 0
bsp/hpmicro/hpm5301evklite/board/linker_scripts/flash_rtt.ld

@@ -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 = .;

+ 1 - 1
bsp/hpmicro/hpm6200evk/SConstruct

@@ -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:

+ 6 - 0
bsp/hpmicro/hpm6200evk/board/linker_scripts/flash_rtt.ld

@@ -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 = .;

+ 1 - 1
bsp/hpmicro/hpm6300evk/SConstruct

@@ -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:

+ 6 - 0
bsp/hpmicro/hpm6300evk/board/linker_scripts/flash_rtt.ld

@@ -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 = .;

+ 1 - 1
bsp/hpmicro/hpm6750evk/SConstruct

@@ -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:

+ 6 - 0
bsp/hpmicro/hpm6750evk/board/linker_scripts/flash_rtt.ld

@@ -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 = .;

+ 1 - 1
bsp/hpmicro/hpm6750evk2/SConstruct

@@ -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:

+ 6 - 0
bsp/hpmicro/hpm6750evk2/board/linker_scripts/flash_rtt.ld

@@ -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 = .;

+ 1 - 1
bsp/hpmicro/hpm6750evkmini/SConstruct

@@ -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:

+ 6 - 0
bsp/hpmicro/hpm6750evkmini/board/linker_scripts/flash_rtt.ld

@@ -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 = .;

+ 1 - 1
bsp/hpmicro/hpm6800evk/SConstruct

@@ -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:

+ 6 - 0
bsp/hpmicro/hpm6800evk/board/linker_scripts/flash_rtt.ld

@@ -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 = .;

+ 1 - 1
bsp/hpmicro/hpm6e00evk/SConstruct

@@ -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:

+ 6 - 0
bsp/hpmicro/hpm6e00evk/board/linker_scripts/flash_rtt.ld

@@ -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 = .;