-
Notifications
You must be signed in to change notification settings - Fork 42
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
In lesson2 why since there is UefiLessonsPkg why we have include MdePkg/MdePkg.dec in SimplestApp.inf? #2
Comments
Generally if we use a library or PCD from another package, we would need to include declaration (DEC) file for that package. Why is that? Let's comment the
In this case the build would fail with this error:
Here the build system complains that it can't find the header file But as you see the build system couldn't find it in our case. How does including
This adds another folder ( Just in case here is a documentation for the INF file |
My thought about it is that the uefi add package(dsc dec) and class(inf) Based on c (.c file and .h file) ,a class (a inf) have many c file and their reference information of c file of other package and corresponding class can get from its dsc file.but it has it own MdePkg/MdePkg.dec to reflect the reference information,I think it's more intuitive. |
In lesson 20 i thought it again ,inf can not use the information in dsc because dsc `s component include inf w if inf w use the information in its dsc can lead to cycle use ,so inf can not use the information in dsc in theory. |
Of cause this is only on case ,other cases such as lesson 2 inf can use the information of its dsc . |
No description provided.
The text was updated successfully, but these errors were encountered: