On Wed, 2 Jan 2019 at 14:23, Gao, Liming <[email protected]> wrote: > > Ard: > Why need to change module type? The non-base type library can support more > than one module types, such as > MdeModulePkg\Library\PeiDxeDebugLibReportStatusCode\PeiDxeDebugLibReportStatusCode.inf. > Only if this library has constructor and needs to support cross module type, > it must be set to BASE. For other case, its module type can be kept as-is. I > clarify this rule in > https://lists.01.org/pipermail/edk2-devel/2018-December/033523.html. >
Currently, standalone MM on AArch64 requires strict alignment, and we only build SEC, PEI_CORE, PEIM and BASE modules with strict alignment. In general, I think it makes sense to default to BASE type for all libraries unless there is a need to using something else, i.e, when the library has a constructor that needs to ImageHandle and/or SystemTable arguments. _______________________________________________ edk2-devel mailing list [email protected] https://lists.01.org/mailman/listinfo/edk2-devel

