OpenCores
URL https://opencores.org/ocsvn/c0or1k/c0or1k/trunk

Subversion Repositories c0or1k

[/] [c0or1k/] [trunk/] [loader/] [libs/] [c/] [SConscript] - Blame information for rev 2

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 2 drasko
# -*- mode: python; coding: utf-8; -*-
2
#
3
#  Codezero -- Virtualization microkernel for embedded systems.
4
#
5
#  Copyright © 2009  B Labs Ltd
6
 
7
import os, sys, shelve
8
from os.path import join
9
 
10
# Get global paths
11
PROJRELROOT = '../../../'
12
 
13
sys.path.append(PROJRELROOT)
14
 
15
from config.configuration import *
16
from config.projpaths import *
17
 
18
Import('env', 'arch', 'platform', 'type')
19
variant = type
20
 
21
e = env.Clone()
22
e.Append(CPPPATH = ['include/sys-' + variant + '/arch-' + arch],
23
         CCFLAGS = ['-nostdinc', '-DVARIANT_' + variant.upper()])
24
 
25
source = \
26
        Glob('src/*.c') + \
27
        Glob('src/sys-' + variant + '/*.c') + \
28
        Glob('src/sys-' + variant + '/arch-' + arch + '/*.c') + \
29
        Glob('src/sys-' + variant + '/arch-' + arch + '/plat-' + platform + '/*.c') + \
30
        Glob('src/arch-' + arch + '/*.c') + \
31
        Glob('src/arch-' + arch + '/*.S') + \
32
        Glob('crt/sys-' + variant + '/arch-' + arch + '/*.[cS]')
33
 
34
objects = e.StaticObject(source)
35
library = e.StaticLibrary('c-' + variant, objects)
36
 
37
Return('library')

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.