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

Subversion Repositories c0or1k

[/] [c0or1k/] [trunk/] [loader/] [libs/] [elf/] [SConstruct] - 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 -- a microkernel for embedded systems.
4
#
5
#  Copyright © 2009  B Labs Ltd
6
 
7
import os, sys, shelve
8
from os.path import join
9
from configure import *
10
 
11
config = configuration_retrieve()
12
arch = config.arch
13
platform = config.platform
14
 
15
# Get global paths
16
PROJRELROOT="../../../"
17
 
18
# Locally important paths are here
19
LIBC_PATH = '../c'
20
LIBC_LIBPATH = LIBC_PATH
21
LIBC_INCPATH = [join(LIBC_PATH, 'include'), \
22
                join(LIBC_PATH, 'include/arch/' + arch)]
23
 
24
env = Environment(CC = config.toolchain_kernel + 'gcc',
25
                  CCFLAGS = ['-g', '-nostdinc', '-nostdlib', '-ffreestanding'],
26
                  LINKFLAGS = ['-nostdlib'],
27
                  ENV = {'PATH' : os.environ['PATH']},
28
                  LIBS = ['gcc','c-baremetal'],
29
                  LIBPATH = LIBC_LIBPATH,
30
                  CPPPATH = ['#include', LIBC_INCPATH] )
31
 
32
src = Glob("src/*.c")
33
 
34
libelf = env.StaticLibrary('elf', src)
35
 

powered by: WebSVN 2.1.0

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