diff options
author | Maurice Ma <maurice.ma@intel.com> | 2016-10-26 11:15:14 -0700 |
---|---|---|
committer | Maurice Ma <maurice.ma@intel.com> | 2016-10-26 14:52:49 -0700 |
commit | 937f5cb6ac65590174379623acd88d4f1caf0c77 (patch) | |
tree | a01a4c99fd667dbb02d06d95f5c8ed53c69e267c /CorebootPayloadPkg | |
parent | 200eaa3d7d5595a8a5884e6f1f7c5f0a4aef4a1a (diff) | |
download | edk2-platforms-937f5cb6ac65590174379623acd88d4f1caf0c77.tar.xz |
CorebootPayloadPkg DSC: Change the section alignment option
The current CorebootPayloadPkg will print the following message
"InsertImageRecord - Section Alignment(0x20) is not 4K" during
boot. It is caused by the section alignment arranged by the linker.
This patch change the alignment to 4K for runtime drivers.
Cc: Prince Agyeman <prince.agyeman@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Maurice Ma <maurice.ma@intel.com>
Reviewed-by: Prince Agyeman <prince.agyeman@intel.com>
Diffstat (limited to 'CorebootPayloadPkg')
-rw-r--r-- | CorebootPayloadPkg/CorebootPayloadPkg.fdf | 1 | ||||
-rw-r--r-- | CorebootPayloadPkg/CorebootPayloadPkgIa32.dsc | 3 | ||||
-rw-r--r-- | CorebootPayloadPkg/CorebootPayloadPkgIa32X64.dsc | 3 |
3 files changed, 7 insertions, 0 deletions
diff --git a/CorebootPayloadPkg/CorebootPayloadPkg.fdf b/CorebootPayloadPkg/CorebootPayloadPkg.fdf index 6d2019de5b..3807923f60 100644 --- a/CorebootPayloadPkg/CorebootPayloadPkg.fdf +++ b/CorebootPayloadPkg/CorebootPayloadPkg.fdf @@ -61,6 +61,7 @@ INF MdeModulePkg/Core/DxeIplPeim/DxeIpl.inf [FV.DXEFV]
BlockSize = 0x1000
+FvForceRebase = FALSE
FvAlignment = 16
ERASE_POLARITY = 1
MEMORY_MAPPED = TRUE
diff --git a/CorebootPayloadPkg/CorebootPayloadPkgIa32.dsc b/CorebootPayloadPkg/CorebootPayloadPkgIa32.dsc index 155bbdfbf9..7a4ee2b4d3 100644 --- a/CorebootPayloadPkg/CorebootPayloadPkgIa32.dsc +++ b/CorebootPayloadPkg/CorebootPayloadPkgIa32.dsc @@ -88,6 +88,9 @@ INTEL:RELEASE_*_*_CC_FLAGS = /D MDEPKG_NDEBUG
MSFT:RELEASE_*_*_CC_FLAGS = /D MDEPKG_NDEBUG
+[BuildOptions.common.EDKII.DXE_RUNTIME_DRIVER]
+ MSFT:*_*_*_DLINK_FLAGS = /ALIGN:4096
+
################################################################################
#
# SKU Identification section - list of all SKU IDs supported by this Platform.
diff --git a/CorebootPayloadPkg/CorebootPayloadPkgIa32X64.dsc b/CorebootPayloadPkg/CorebootPayloadPkgIa32X64.dsc index 16484b1655..c49f05ec8a 100644 --- a/CorebootPayloadPkg/CorebootPayloadPkgIa32X64.dsc +++ b/CorebootPayloadPkg/CorebootPayloadPkgIa32X64.dsc @@ -90,6 +90,9 @@ INTEL:RELEASE_*_*_CC_FLAGS = /D MDEPKG_NDEBUG
MSFT:RELEASE_*_*_CC_FLAGS = /D MDEPKG_NDEBUG
+[BuildOptions.common.EDKII.DXE_RUNTIME_DRIVER]
+ MSFT:*_*_*_DLINK_FLAGS = /ALIGN:4096
+
################################################################################
#
# SKU Identification section - list of all SKU IDs supported by this Platform.
|