Container packing works.

Able to build container0.axf, container1.axf ... files as required.
This commit is contained in:
Bahadir Balban
2009-09-14 13:48:10 +03:00
parent 90b2815836
commit 48351450a6
2 changed files with 15 additions and 15 deletions

View File

@@ -28,8 +28,6 @@ def source_to_builddir(srcdir, id):
return join(BUILDDIR, cont_builddir)
class LinuxBuilder:
LINUX_KERNEL_BUILDDIR = None
LINUX_KERNELDIR = None
def __init__(self, pathdict, container):
self.LINUX_KERNELDIR = pathdict["LINUX_KERNELDIR"]
@@ -38,6 +36,8 @@ class LinuxBuilder:
self.LINUX_KERNEL_BUILDDIR = \
source_to_builddir(LINUX_KERNELDIR, container.id)
self.kernel_image = None
def build_linux(self):
print '\nBuilding the linux kernel...'
os.chdir(self.LINUX_KERNELDIR)
@@ -47,6 +47,12 @@ class LinuxBuilder:
os.system("make ARCH=arm " + \
"CROSS_COMPILE=arm-none-linux-gnueabi- O=" + \
self.LINUX_KERNEL_BUILDDIR)
# Get the kernel image path
self.kernel_image = \
join(self.LINUX_KERNEL_BUILDDIR, \
'arch/arm/boot/compressed/vmlinux')
print 'Done...'
def clean(self):