What I did was I created a folder raspvisor underneath the applications folder:
$GitHub\RT-Thread\rt-thread_hypervisor\bsp\raspberry-pi\raspi4-64\applications\raspvisor
Within is my source code plus a SConscript file, whose contents I pasted below:
from building import *
cwd = GetCurrentDir()
src = Glob('*.c') + Glob('*.cpp')
CPPPATH = [cwd, str(Dir('#'))]
group = DefineGroup('Raspvisor', src, depend = [''], CPPPATH = CPPPATH)
Return('group')
Yet it won't build. Makes no sense as I followed the pattern of the SConscript files in the folders above, and I return the folders to build.
My only thought is I might need to specify this directory in the top folder's SConscript file, but I cannot find it there. What am I doing wrong?