mirror of
https://github.com/drasko/codezero.git
synced 2026-02-28 01:33:13 +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":
|
if param2 == "LINUX":
|
||||||
self.containers[id].type = "linux"
|
self.containers[id].type = "linux"
|
||||||
elif param2 == "C0_POSIX":
|
elif param2 == "C0_POSIX":
|
||||||
self.containers[id].type = "cps"
|
self.containers[id].type = "posix"
|
||||||
elif param2 == "BARE":
|
elif param2 == "BARE":
|
||||||
self.containers[id].type = "bare"
|
self.containers[id].type = "bare"
|
||||||
|
|
||||||
|
|||||||
@@ -5,7 +5,8 @@ import os, sys
|
|||||||
|
|
||||||
arch = config.arch
|
arch = config.arch
|
||||||
|
|
||||||
sys.path.append('../../../../')
|
sys.path.append('../../../')
|
||||||
|
|
||||||
from config.lib import *
|
from config.lib import *
|
||||||
from tools.pyelf.lmanext import *
|
from tools.pyelf.lmanext import *
|
||||||
|
|
||||||
|
|||||||
@@ -48,8 +48,11 @@ def source_to_builddir(srcdir, id):
|
|||||||
# calling specific bare containers
|
# calling specific bare containers
|
||||||
def build_posix_container(projpaths, container):
|
def build_posix_container(projpaths, container):
|
||||||
images = []
|
images = []
|
||||||
|
cwd = os.getcwd()
|
||||||
|
os.chdir(POSIXDIR)
|
||||||
|
print POSIXDIR
|
||||||
print '\nBuilding the Posix Container...'
|
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
|
print "Issuing scons command: %s" % scons_cmd
|
||||||
os.system(scons_cmd)
|
os.system(scons_cmd)
|
||||||
builddir = source_to_builddir(POSIXDIR, container.id)
|
builddir = source_to_builddir(POSIXDIR, container.id)
|
||||||
|
|||||||
Reference in New Issue
Block a user