config, x86: move kernel specification from tests to FSConfig.py stable_2014_02_15
authorSteve Reinhardt <steve.reinhardt@amd.com>
Sat, 4 Jan 2014 01:08:44 +0000 (17:08 -0800)
committerSteve Reinhardt <steve.reinhardt@amd.com>
Sat, 4 Jan 2014 01:08:44 +0000 (17:08 -0800)
For some reason, the default x86 kernel is specified in
tests/configs/x86_generic.py and not in configs/common/FSConfig.py,
where the kernels for all the other ISAs are.  This means that
running configs/example/fs.py for x86 fails because no kernel
is specified.  Moving the specification over fixes this problem.

There is another problem that this uncovers, which is that going
past the init stage (i.e., past where the regression test stops)
fails because the fsck test on the disk device fails, but that's
a separate issue.

configs/common/FSConfig.py
tests/configs/x86_generic.py

index 780e4314c369bf97508180748a060b05225b6beb..8905ba2fa1f41ee62f3f09f0398c59b1e34a0d2f 100644 (file)
@@ -518,6 +518,7 @@ def makeLinuxX86System(mem_mode, numCPUs = 1, mdesc = None,
     # Command line
     self.boot_osflags = 'earlyprintk=ttyS0 console=ttyS0 lpj=7999923 ' + \
                         'root=/dev/hda1'
+    self.kernel = binary('x86_64-vmlinux-2.6.22.9')
     return self
 
 
index d30087df109d2d65099e7ee1341ed6e5ef16e410..5dc8702ba364eebf330357223faa78e2b2ab5171 100644 (file)
@@ -60,7 +60,6 @@ class LinuxX86SystemBuilder(object):
         system = FSConfig.makeLinuxX86System(self.mem_mode,
                                              numCPUs=self.num_cpus,
                                              mdesc=mdesc)
-        system.kernel = FSConfig.binary('x86_64-vmlinux-2.6.22.9')
 
         self.init_system(system)
         return system