def _GetArch(self):\r
return self._Arch\r
\r
- ## Set architecture\r
- #\r
- # Changing the default ARCH to another may affect all other information\r
- # because all information in a platform may be ARCH-related. That's\r
- # why we need to clear all internal used members, in order to cause all\r
- # information to be re-retrieved.\r
- #\r
- # @param Value The value of ARCH\r
- #\r
- def _SetArch(self, Value):\r
- if self._Arch == Value:\r
- return\r
- self._Arch = Value\r
- self._Clear()\r
-\r
## Retrieve all information in [Defines] section\r
#\r
# (Retriving all [Defines] information in one-shot is just to save time.)\r
\r
\r
_Macros = property(_GetMacros)\r
- Arch = property(_GetArch, _SetArch)\r
+ Arch = property(_GetArch)\r
PackageName = property(_GetPackageName)\r
Guid = property(_GetFileGuid)\r
Version = property(_GetVersion)\r
def _GetArch(self):\r
return self._Arch\r
\r
- ## Set architecture\r
- #\r
- # Changing the default ARCH to another may affect all other information\r
- # because all information in a platform may be ARCH-related. That's\r
- # why we need to clear all internal used members, in order to cause all\r
- # information to be re-retrieved.\r
- #\r
- # @param Value The value of ARCH\r
- #\r
- def _SetArch(self, Value):\r
- if self._Arch == Value:\r
- return\r
- self._Arch = Value\r
- self._Clear()\r
-\r
## Retrieve all information in [Defines] section\r
#\r
# (Retriving all [Defines] information in one-shot is just to save time.)\r
self._DecPcds, self._GuidDict = GetDeclaredPcd(self, self._Bdb, self._Arch, self._Target, self._Toolchain, PkgSet)\r
return self._DecPcds\r
_Macros = property(_GetMacros)\r
- Arch = property(_GetArch, _SetArch)\r
+ Arch = property(_GetArch)\r
Platform = property(_GetPlatformName)\r
PlatformName = property(_GetPlatformName)\r
Guid = property(_GetFileGuid)\r
def _GetArch(self):\r
return self._Arch\r
\r
- ## Set architecture\r
- #\r
- # Changing the default ARCH to another may affect all other information\r
- # because all information in a platform may be ARCH-related. That's\r
- # why we need to clear all internal used members, in order to cause all\r
- # information to be re-retrieved.\r
- #\r
- # @param Value The value of ARCH\r
- #\r
- def _SetArch(self, Value):\r
- if self._Arch == Value:\r
- return\r
- self._Arch = Value\r
- self._Clear()\r
-\r
## Return the name of platform employing this module\r
def _GetPlatform(self):\r
return self._Platform\r
\r
- ## Change the name of platform employing this module\r
- #\r
- # Changing the default name of platform to another may affect some information\r
- # because they may be PLATFORM-related. That's why we need to clear all internal\r
- # used members, in order to cause all information to be re-retrieved.\r
- #\r
- def _SetPlatform(self, Value):\r
- if self._Platform == Value:\r
- return\r
- self._Platform = Value\r
- self._Clear()\r
def _GetHeaderComments(self):\r
if not self._HeaderComments:\r
self._HeaderComments = []\r
return False\r
\r
_Macros = property(_GetMacros)\r
- Arch = property(_GetArch, _SetArch)\r
- Platform = property(_GetPlatform, _SetPlatform)\r
+ Arch = property(_GetArch)\r
+ Platform = property(_GetPlatform)\r
\r
HeaderComments = property(_GetHeaderComments)\r
TailComments = property(_GetTailComments)\r