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

Subversion Repositories c0or1k

[/] [c0or1k/] [trunk/] [conts/] [libdev/] [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', 'platform', 'type')
19
variant = type
20
 
21
# To include setbit/clrbit functions
22
LIBL4_RELDIR = 'conts/libl4'
23
LIBL4_DIR = join(PROJROOT, LIBL4_RELDIR)
24
LIBL4_INC = join(LIBL4_DIR, 'include')
25
 
26
LIBC_RELDIR = 'conts/libc'
27
LIBC_DIR = join(PROJROOT, LIBC_RELDIR)
28
LIBC_INC = join(LIBC_DIR, 'include')
29
 
30
e = env.Clone()
31
e.Append(CPPPATH = ['#conts/libdev/include', LIBC_INC, LIBL4_INC],
32
         CCFLAGS = ['-DVARIANT_' + variant.upper()])
33
 
34
objects = []
35
objects += SConscript('uart/pl011/SConscript', duplicate=0, \
36
                      exports = {'platform' : platform, 'env' : e})
37
objects += SConscript('timer/sp804/SConscript', duplicate=0, \
38
                      exports = {'platform' : platform, 'env' : e})
39
objects += SConscript('kmi/pl050/SConscript', duplicate=0, \
40
                      exports = {'platform' : platform, 'env' : e})
41
objects += SConscript('clcd/pl110/SConscript', duplicate=0, \
42
                      exports = {'platform' : platform, 'env' : e})
43
 
44
objects += SConscript('uart/omap/SConscript', duplicate=0, \
45
                       exports = {'platform' : platform, 'env' : e})
46
objects += SConscript('timer/omap/SConscript', duplicate=0, \
47
                      exports = {'platform' : platform, 'env' : e})
48
 
49
library = e.StaticLibrary('libdev-' + variant, objects)
50
Return('library')

powered by: WebSVN 2.1.0

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