mirror of
https://github.com/drasko/codezero.git
synced 2026-01-12 02:43:15 +01:00
Integrated building of posix images as a container
Issues: Some intermediate .elf files should not go into final container image. Perhaps those will be built with different or no extension
This commit is contained in:
@@ -106,7 +106,7 @@ class configuration:
|
||||
if param2 == "LINUX":
|
||||
self.containers[id].type = "linux"
|
||||
elif param2 == "C0_POSIX":
|
||||
self.containers[id].type = "cps"
|
||||
self.containers[id].type = "posix"
|
||||
elif param2 == "BARE":
|
||||
self.containers[id].type = "bare"
|
||||
|
||||
|
||||
@@ -5,7 +5,8 @@ import os, sys
|
||||
|
||||
arch = config.arch
|
||||
|
||||
sys.path.append('../../../../')
|
||||
sys.path.append('../../../')
|
||||
|
||||
from config.lib import *
|
||||
from tools.pyelf.lmanext import *
|
||||
|
||||
|
||||
@@ -48,8 +48,11 @@ def source_to_builddir(srcdir, id):
|
||||
# calling specific bare containers
|
||||
def build_posix_container(projpaths, container):
|
||||
images = []
|
||||
cwd = os.getcwd()
|
||||
os.chdir(POSIXDIR)
|
||||
print POSIXDIR
|
||||
print '\nBuilding the Posix Container...'
|
||||
scons_cmd = 'scons -f ' + join(POSIXDIR, 'SConstruct') + ' cont=' str(container.id)
|
||||
scons_cmd = 'scons ' + 'cont=' + str(container.id)
|
||||
print "Issuing scons command: %s" % scons_cmd
|
||||
os.system(scons_cmd)
|
||||
builddir = source_to_builddir(POSIXDIR, container.id)
|
||||
|
||||
Reference in New Issue
Block a user