mirror of
https://github.com/drasko/codezero.git
synced 2026-01-12 02:43:15 +01:00
Container packing works.
Able to build container0.axf, container1.axf ... files as required.
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user