|
|
@@ -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',
|
|
|
@@ -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')))
|
|
|
|