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

Subversion Repositories c0or1k

[/] [c0or1k/] [trunk/] [conts/] [libc/] [SConscript] - Blame information for rev 3

Go to most recent revision | 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', 'type')
19
variant = type
20
 
21
# Needed by fputc(), for declaration of uart_tx()
22
LIBDEV_RELDIR = 'conts/libdev'
23
LIBDEV_DIR = join(PROJROOT, LIBDEV_RELDIR)
24
LIBDEV_INC = join(LIBDEV_DIR, 'include')
25
 
26
e = env.Clone()
27
e.Append(CPPPATH = ['include', 'include/sys-' + variant + \
28
                    '/arch-' + arch, LIBDEV_INC],
29
         CCFLAGS = ['-nostdinc'])
30
 
31
source = \
32
        Glob('src/*.[cS]') + \
33
        Glob('src/sys-' + variant + '/*.c') + \
34
        Glob('src/sys-' + variant + '/arch-' + arch + '/*.c') + \
35
        Glob('src/arch-' + arch + '/*.c') + \
36
        Glob('src/arch-' + arch + '/*.S') + \
37
        Glob('crt/sys-' + variant + '/arch-' + arch + '/*.[cS]')
38
 
39
objects = e.StaticObject(source)
40
library = e.StaticLibrary('c-' + variant, objects)
41
 
42
Return('library')

powered by: WebSVN 2.1.0

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