Adding another folder of source code to the rt-thread directory tree

Created at 2023-02-14 08:26:56

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?

More

Follower
0
Views
277
1 Answer
flyboy
flyboy 2023-02-23

Yes, You are right!

微信截图_20230223100628.png

  1. Make sure the SConscript file in applications directory have that code.
  2. Make sure your SConscript file's name is 'SConscript'.

Write Your Answer

Log in to publish your answer.,Click here to log in.

Create
Post

Share