Pack: Fixed version histories.
- Aligned CMSIS-Build to version 0.9.0 (beta)
- Aligned CMSIS-Driver/VIO to version 0.1.0
- Enhanced linter config
  - Added checks for CMSIS-Build
  - Checking version and history of PACK.xsd

Change-Id: I0d74d479c12e731d2aecf3bb0fb08d248a5ee314
diff --git a/linter.py b/linter.py
index e3ff698..1dcb486 100644
--- a/linter.py
+++ b/linter.py
@@ -90,6 +90,15 @@
   def _s(self, file):
     return self._file_version_(file)
     
+  def _xsd(self, file, rev=False, history=False):
+    if rev:
+      return self._all_(file)
+    elif history:
+      return self._regex_(file, ".*[0-9]+\. [A-Z][a-z]+ [12][0-9]+: (v)?(\d+.\d+(.\d+)?).*", 2)
+    else:
+      xsd = lxml.etree.parse(str(file)).getroot()
+      return SemanticVersion(xsd.get("version", None))
+
   def overview_txt(self, file, skip = 0):
     return self._revhistory_(file, skip)
     
@@ -129,7 +138,7 @@
     
   def pack_version(self):
     return self._pack.version()
-    
+  
   def cmsis_corem_component(self):
     rte = { 'components' : set(), 'Dcore' : "Cortex-M3", 'Dvendor' : "*", 'Dname' : "*", 'Dtz' : "*", 'Dsecure' : "*", 'Tcompiler' : "*", 'Toptions' : "*" }
     cs = self._pack.component_by_name(rte, "CMSIS.CORE")
@@ -169,6 +178,13 @@
     self.verify_version("CMSIS/DoxyGen/General/general.dxy", v)
     self.verify_version("CMSIS/DoxyGen/General/src/introduction.txt", v)
 
+  def check_build(self):
+    """CMSIS-Build version"""
+    v = self._versionParser.get_version("CMSIS/DoxyGen/Build/Build.dxy")
+    self.verify_version("CMSIS/DoxyGen/Build/src/General.txt", v)
+    self.verify_version("CMSIS/DoxyGen/General/src/introduction.txt", v, component="CMSIS-Build")
+    self.verify_version(self._pack.location(), v, component="CMSIS-Build")
+
   def check_corem(self):
     """CMSIS-Core(M) version"""
     v = self.cmsis_corem_component()
@@ -215,7 +231,10 @@
 
   def check_pack(self):
     """CMSIS-Pack version"""
-    v = self._versionParser.get_version("CMSIS/DoxyGen/Pack/Pack.dxy")
+    v = self._versionParser.get_version("CMSIS/Utilities/PACK.xsd")
+    self.verify_version("CMSIS/Utilities/PACK.xsd:Revision", v, rev=True)
+    self.verify_version("CMSIS/Utilities/PACK.xsd:History", v, history=True)
+    self.verify_version("CMSIS/DoxyGen/Pack/Pack.dxy", v)
     self.verify_version("CMSIS/DoxyGen/Pack/src/General.txt", v)
     self.verify_version("CMSIS/DoxyGen/General/src/introduction.txt", v, component="CMSIS-Pack")
     self.verify_version(self._pack.location(), v, component="CMSIS-Pack")