[tools] Add BSP path into Kernel Group.
@@ -286,8 +286,8 @@ def PrepareBuilding(env, root_directory, has_libcpu=False, remove_components = [
# add program path
env.PrependENVPath('PATH', rtconfig.EXEC_PATH)
- # add rtconfig.h path
- env.Append(CPPPATH = [str(Dir('#').abspath)])
+ # add rtconfig.h/BSP path into Kernel group
+ DefineGroup("Kernel", [], [], CPPPATH=[str(Dir('#').abspath)])
# add library build action
act = SCons.Action.Action(BuildLibInstallAction, 'Install compiled library... $TARGET')
