mirror of https://github.com/acidanthera/audk.git
Changed the alignment related member and method to conform to FFS spec.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1220 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
8a9783c1f3
commit
caf9538f28
|
@ -85,11 +85,11 @@ public class GenFfsFileTask extends Task implements EfiDefine, FfsTypes {
|
|||
///
|
||||
boolean ffsAttribRecovery = false;
|
||||
///
|
||||
/// ffsAligenment value is used to set the corresponding bit in the output
|
||||
/// ffsAttribDataAlignment value is used to set the corresponding bit in the output
|
||||
/// FFS file header.The specified FFS alignment must be a value between 0
|
||||
/// and 7 inclusive
|
||||
///
|
||||
int ffsAlignment = 0;
|
||||
int ffsAttribDataAlignment = 0;
|
||||
///
|
||||
/// ffsAttribChecksum value is used to set the corresponding bit in the
|
||||
/// output FFS file header
|
||||
|
@ -490,8 +490,8 @@ public class GenFfsFileTask extends Task implements EfiDefine, FfsTypes {
|
|||
This function is to get the ffsAligment
|
||||
@return The value of ffsAligment.
|
||||
**/
|
||||
public int getFfsAlignment() {
|
||||
return this.ffsAlignment;
|
||||
public int getFfsAttribDataAlignment() {
|
||||
return this.ffsAttribDataAlignment;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -500,12 +500,12 @@ public class GenFfsFileTask extends Task implements EfiDefine, FfsTypes {
|
|||
This function is to set ffsAligment
|
||||
@param ffsAligment The value of ffsAligment.
|
||||
**/
|
||||
public void setFfsAlignment(int ffsAligment) {
|
||||
this.ffsAlignment = ffsAligment;
|
||||
if (this.ffsAlignment > 7) {
|
||||
public void setFfsAttribDataAlignment(int ffsAligment) {
|
||||
this.ffsAttribDataAlignment = ffsAligment;
|
||||
if (this.ffsAttribDataAlignment > 7) {
|
||||
throw new BuildException ("FFS_ALIGMENT Scope is 0-7");
|
||||
} else {
|
||||
attributes |= (((byte)this.ffsAlignment) << 3);
|
||||
attributes |= (((byte)this.ffsAttribDataAlignment) << 3);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue