Source Subdirectories
Posted: Mon Aug 21, 2017 8:15 pm
I want to organize my code into multiple subdirectores. Currently I can only compile code from one directory deep. Below I have my desired organization.
In my main directory, I have a component.mk file with the following:
COMPONENT_SRCDIRS := . dir_1 dir_2 dir_3
If I try adding dir_3/dir_3_a, I get the following error:
Code: Select all
->main
->dir_1
->dir_2
->dir_3
->dir_3_a
->dir_3_b
->dir_3_b_1
COMPONENT_SRCDIRS := . dir_1 dir_2 dir_3
If I try adding dir_3/dir_3_a, I get the following error:
Code: Select all
/path/to/project/main/dir_3/dir_3_a/file.c fatal error: opening dependency file dir_3/dir_3_a/file.d: No such file or directory