Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 17 additions & 1 deletion bsp/hpmicro/hpm5300evk/SConstruct
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,23 @@ except:
print(RTT_ROOT)
exit(-1)

def bsp_pkg_check():
import subprocess

need_update = True
for p in os.listdir("packages"):
if p.startswith("hpm_sdk-"):
need_update = False
break
if need_update:
print("\n===============================================================================")
print("Dependency packages missing, please running 'pkgs --update'...")
print("If no packages are fetched, run 'pkgs --upgrade' first, then 'pkgs --update'...")
print("===============================================================================")
exit(1)

RegisterPreBuildingAction(bsp_pkg_check)

TARGET = 'rtthread.' + rtconfig.TARGET_EXT

AddOption('--run',
Expand Down Expand Up @@ -56,7 +73,6 @@ GDB = rtconfig.GDB
objs = PrepareBuilding(env, RTT_ROOT, has_libcpu=False)



# includes rtt drivers
objs.extend(SConscript(os.path.join(libraries_path_prefix, 'drivers', 'SConscript')))

Expand Down
23 changes: 0 additions & 23 deletions bsp/hpmicro/hpm5300evk/rtconfig.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,29 +12,6 @@
RTT_ROOT = os.path.normpath(os.getcwd() + '/../../..')

sys.path = sys.path + [os.path.join(RTT_ROOT, 'tools')]
try:
from building import *
except:
print('Cannot found RT-Thread root directory, please check RTT_ROOT')
print(RTT_ROOT)
exit(-1)

def bsp_pkg_check():
import subprocess

need_update = True
for p in os.listdir("packages"):
if p.startswith("hpm_sdk-"):
need_update = False
break
if need_update:
print("\n===============================================================================")
print("Dependency packages missing, please running 'pkgs --update'...")
print("If no packages are fetched, run 'pkgs --upgrade' first, then 'pkgs --update'...")
print("===============================================================================")
exit(1)

RegisterPreBuildingAction(bsp_pkg_check)


# toolchains options
Expand Down
17 changes: 17 additions & 0 deletions bsp/hpmicro/hpm5301evklite/SConstruct
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,23 @@ except:
print(RTT_ROOT)
exit(-1)

def bsp_pkg_check():
import subprocess

need_update = True
for p in os.listdir("packages"):
if p.startswith("hpm_sdk-"):
need_update = False
break
if need_update:
print("\n===============================================================================")
print("Dependency packages missing, please running 'pkgs --update'...")
print("If no packages are fetched, run 'pkgs --upgrade' first, then 'pkgs --update'...")
print("===============================================================================")
exit(1)

RegisterPreBuildingAction(bsp_pkg_check)

TARGET = 'rtthread.' + rtconfig.TARGET_EXT

AddOption('--run',
Expand Down
24 changes: 0 additions & 24 deletions bsp/hpmicro/hpm5301evklite/rtconfig.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,30 +12,6 @@
RTT_ROOT = os.path.normpath(os.getcwd() + '/../../..')

sys.path = sys.path + [os.path.join(RTT_ROOT, 'tools')]
try:
from building import *
except:
print('Cannot found RT-Thread root directory, please check RTT_ROOT')
print(RTT_ROOT)
exit(-1)

def bsp_pkg_check():
import subprocess

need_update = True
for p in os.listdir("packages"):
if p.startswith("hpm_sdk-"):
need_update = False
break
if need_update:
print("\n===============================================================================")
print("Dependency packages missing, please running 'pkgs --update'...")
print("If no packages are fetched, run 'pkgs --upgrade' first, then 'pkgs --update'...")
print("===============================================================================")
exit(1)

RegisterPreBuildingAction(bsp_pkg_check)


# toolchains options
ARCH='risc-v'
Expand Down
17 changes: 17 additions & 0 deletions bsp/hpmicro/hpm5e00evk/SConstruct
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,23 @@ except:
print(RTT_ROOT)
exit(-1)

def bsp_pkg_check():
import subprocess

need_update = True
for p in os.listdir("packages"):
if p.startswith("hpm_sdk-"):
need_update = False
break
if need_update:
print("\n===============================================================================")
print("Dependency packages missing, please running 'pkgs --update'...")
print("If no packages are fetched, run 'pkgs --upgrade' first, then 'pkgs --update'...")
print("===============================================================================")
exit(1)

RegisterPreBuildingAction(bsp_pkg_check)

TARGET = 'rtthread.' + rtconfig.TARGET_EXT

AddOption('--run',
Expand Down
24 changes: 0 additions & 24 deletions bsp/hpmicro/hpm5e00evk/rtconfig.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,30 +12,6 @@
RTT_ROOT = os.path.normpath(os.getcwd() + '/../../..')

sys.path = sys.path + [os.path.join(RTT_ROOT, 'tools')]
try:
from building import *
except:
print('Cannot found RT-Thread root directory, please check RTT_ROOT')
print(RTT_ROOT)
exit(-1)

def bsp_pkg_check():
import subprocess

need_update = True
for p in os.listdir("packages"):
if p.startswith("hpm_sdk-"):
need_update = False
break
if need_update:
print("\n===============================================================================")
print("Dependency packages missing, please running 'pkgs --update'...")
print("If no packages are fetched, run 'pkgs --upgrade' first, then 'pkgs --update'...")
print("===============================================================================")
exit(1)

RegisterPreBuildingAction(bsp_pkg_check)


# toolchains options
ARCH='risc-v'
Expand Down
17 changes: 17 additions & 0 deletions bsp/hpmicro/hpm6200evk/SConstruct
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,23 @@ except:
print(RTT_ROOT)
exit(-1)

def bsp_pkg_check():
import subprocess

need_update = True
for p in os.listdir("packages"):
if p.startswith("hpm_sdk-"):
need_update = False
break
if need_update:
print("\n===============================================================================")
print("Dependency packages missing, please running 'pkgs --update'...")
print("If no packages are fetched, run 'pkgs --upgrade' first, then 'pkgs --update'...")
print("===============================================================================")
exit(1)

RegisterPreBuildingAction(bsp_pkg_check)

TARGET = 'rtthread.' + rtconfig.TARGET_EXT

AddOption('--run',
Expand Down
24 changes: 0 additions & 24 deletions bsp/hpmicro/hpm6200evk/rtconfig.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,30 +12,6 @@
RTT_ROOT = os.path.normpath(os.getcwd() + '/../../..')

sys.path = sys.path + [os.path.join(RTT_ROOT, 'tools')]
try:
from building import *
except:
print('Cannot found RT-Thread root directory, please check RTT_ROOT')
print(RTT_ROOT)
exit(-1)

def bsp_pkg_check():
import subprocess

need_update = True
for p in os.listdir("packages"):
if p.startswith("hpm_sdk-"):
need_update = False
break
if need_update:
print("\n===============================================================================")
print("Dependency packages missing, please running 'pkgs --update'...")
print("If no packages are fetched, run 'pkgs --upgrade' first, then 'pkgs --update'...")
print("===============================================================================")
exit(1)

RegisterPreBuildingAction(bsp_pkg_check)


# toolchains options
ARCH='risc-v'
Expand Down
17 changes: 17 additions & 0 deletions bsp/hpmicro/hpm6300evk/SConstruct
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,23 @@ except:
print(RTT_ROOT)
exit(-1)

def bsp_pkg_check():
import subprocess

need_update = True
for p in os.listdir("packages"):
if p.startswith("hpm_sdk-"):
need_update = False
break
if need_update:
print("\n===============================================================================")
print("Dependency packages missing, please running 'pkgs --update'...")
print("If no packages are fetched, run 'pkgs --upgrade' first, then 'pkgs --update'...")
print("===============================================================================")
exit(1)

RegisterPreBuildingAction(bsp_pkg_check)

TARGET = 'rtthread.' + rtconfig.TARGET_EXT

AddOption('--run',
Expand Down
24 changes: 0 additions & 24 deletions bsp/hpmicro/hpm6300evk/rtconfig.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,30 +12,6 @@
RTT_ROOT = os.path.normpath(os.getcwd() + '/../../..')

sys.path = sys.path + [os.path.join(RTT_ROOT, 'tools')]
try:
from building import *
except:
print('Cannot found RT-Thread root directory, please check RTT_ROOT')
print(RTT_ROOT)
exit(-1)

def bsp_pkg_check():
import subprocess

need_update = True
for p in os.listdir("packages"):
if p.startswith("hpm_sdk-"):
need_update = False
break
if need_update:
print("\n===============================================================================")
print("Dependency packages missing, please running 'pkgs --update'...")
print("If no packages are fetched, run 'pkgs --upgrade' first, then 'pkgs --update'...")
print("===============================================================================")
exit(1)

RegisterPreBuildingAction(bsp_pkg_check)


# toolchains options
ARCH='risc-v'
Expand Down
17 changes: 17 additions & 0 deletions bsp/hpmicro/hpm6750evk/SConstruct
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,23 @@ except:
print(RTT_ROOT)
exit(-1)

def bsp_pkg_check():
import subprocess

need_update = True
for p in os.listdir("packages"):
if p.startswith("hpm_sdk-"):
need_update = False
break
if need_update:
print("\n===============================================================================")
print("Dependency packages missing, please running 'pkgs --update'...")
print("If no packages are fetched, run 'pkgs --upgrade' first, then 'pkgs --update'...")
print("===============================================================================")
exit(1)

RegisterPreBuildingAction(bsp_pkg_check)

TARGET = 'rtthread.' + rtconfig.TARGET_EXT

AddOption('--run',
Expand Down
24 changes: 0 additions & 24 deletions bsp/hpmicro/hpm6750evk/rtconfig.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,30 +12,6 @@
RTT_ROOT = os.path.normpath(os.getcwd() + '/../../..')

sys.path = sys.path + [os.path.join(RTT_ROOT, 'tools')]
try:
from building import *
except:
print('Cannot found RT-Thread root directory, please check RTT_ROOT')
print(RTT_ROOT)
exit(-1)

def bsp_pkg_check():
import subprocess

need_update = True
for p in os.listdir("packages"):
if p.startswith("hpm_sdk-"):
need_update = False
break
if need_update:
print("\n===============================================================================")
print("Dependency packages missing, please running 'pkgs --update'...")
print("If no packages are fetched, run 'pkgs --upgrade' first, then 'pkgs --update'...")
print("===============================================================================")
exit(1)

RegisterPreBuildingAction(bsp_pkg_check)


# toolchains options
ARCH='risc-v'
Expand Down
17 changes: 17 additions & 0 deletions bsp/hpmicro/hpm6750evk2/SConstruct
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,23 @@ except:
print(RTT_ROOT)
exit(-1)

def bsp_pkg_check():
import subprocess

need_update = True
for p in os.listdir("packages"):
if p.startswith("hpm_sdk-"):
need_update = False
break
if need_update:
print("\n===============================================================================")
print("Dependency packages missing, please running 'pkgs --update'...")
print("If no packages are fetched, run 'pkgs --upgrade' first, then 'pkgs --update'...")
print("===============================================================================")
exit(1)

RegisterPreBuildingAction(bsp_pkg_check)

TARGET = 'rtthread.' + rtconfig.TARGET_EXT

AddOption('--run',
Expand Down
24 changes: 0 additions & 24 deletions bsp/hpmicro/hpm6750evk2/rtconfig.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,30 +12,6 @@
RTT_ROOT = os.path.normpath(os.getcwd() + '/../../..')

sys.path = sys.path + [os.path.join(RTT_ROOT, 'tools')]
try:
from building import *
except:
print('Cannot found RT-Thread root directory, please check RTT_ROOT')
print(RTT_ROOT)
exit(-1)

def bsp_pkg_check():
import subprocess

need_update = True
for p in os.listdir("packages"):
if p.startswith("hpm_sdk-"):
need_update = False
break
if need_update:
print("\n===============================================================================")
print("Dependency packages missing, please running 'pkgs --update'...")
print("If no packages are fetched, run 'pkgs --upgrade' first, then 'pkgs --update'...")
print("===============================================================================")
exit(1)

RegisterPreBuildingAction(bsp_pkg_check)


# toolchains options
ARCH='risc-v'
Expand Down
Loading