v01d commented on pull request #3589: URL: https://github.com/apache/incubator-nuttx/pull/3589#issuecomment-827992528
I made some more progress and I realize I now need to correctly handle __KERNEL__. So far I used this for all static libs created from top-level directories but I realize this is not correct. My understanding is that this should not be defined for subdirectories of `libs`, `mm` nor for applications. Any other OS library should have it defined. Is that correct? I realize this ties into the two-pass build (which I haven't fully looked into yet) and kernel/protected mode. Do both of these modes use the two-pass build? Is there any documentation and how the build system works in this case? I'm looking at the makefiles but it isn't very clear to me how it all works together. cc: @patacongo -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected]
