Okay…I see that you mean the component toto that will be required has to be inside the folder of the component that requires toto. Am I right?
If so, I do have a mistake here. But I don’t see the necessity of requiring another component in this way. Why don’t not just put all the source files in toto in the outer component folder and do a little bit modification on the .cdef?
Besides, the thing that triggered my interest on requiring another component is when I try to include the mangoh gpio expander service from GPIO expander into default.sdef, after I mksys, an error occurs saying
/home/lichen/mangOH/apps/GpioExpander/gpioExpanderService/gpioExpanderGreen/Component.cdef:21:8: error: Couldn’t find component ‘gpioExpanderCommon’.
The component ‘gpioExpanderCommon’ is required in this .cdef file GpioExpanderGreen, while gpioExpanderCommon itself is located outside component GpioExpanderGreen in GpioExpanderService. Is this a bug or is there anything that I did wrong?