URL
https://opencores.org/ocsvn/c0or1k/c0or1k/trunk
Subversion Repositories c0or1k
[/] [c0or1k/] [trunk/] [loader/] [libs/] [elf/] [SConstruct] - Rev 7
Go to most recent revision | Compare with Previous | Blame | View Log
# -*- mode: python; coding: utf-8; -*-## Codezero -- a microkernel for embedded systems.## Copyright © 2009 B Labs Ltdimport os, sys, shelvefrom os.path import joinfrom configure import *config = configuration_retrieve()arch = config.archplatform = config.platform# Get global pathsPROJRELROOT="../../../"# Locally important paths are hereLIBC_PATH = '../c'LIBC_LIBPATH = LIBC_PATHLIBC_INCPATH = [join(LIBC_PATH, 'include'), \join(LIBC_PATH, 'include/arch/' + arch)]env = Environment(CC = config.toolchain_kernel + 'gcc',CCFLAGS = ['-g', '-nostdinc', '-nostdlib', '-ffreestanding'],LINKFLAGS = ['-nostdlib'],ENV = {'PATH' : os.environ['PATH']},LIBS = ['gcc','c-baremetal'],LIBPATH = LIBC_LIBPATH,CPPPATH = ['#include', LIBC_INCPATH] )src = Glob("src/*.c")libelf = env.StaticLibrary('elf', src)
Go to most recent revision | Compare with Previous | Blame | View Log
