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

Subversion Repositories c0or1k

[/] [c0or1k/] [trunk/] [conts/] [posix/] [bootdesc/] [SConstruct] - Blame information for rev 2

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 2 drasko
#
2
# Build script to autogenerate a bootdesc image
3
#
4
# Copyright (C) 2007 Bahadir Balban
5
#
6
import os
7
import sys
8
import shutil
9
from os.path import join
10
from configure import *
11
 
12
config = configuration_retrieve()
13
builddir = ARGUMENTS.get('builddir', 'build/conts/posix')
14
 
15
env = Environment(CC = config.toolchain_userspace + 'gcc',
16
                  CCFLAGS = ['-g', '-nostdlib', '-ffreestanding', '-std=gnu99', '-Wall', '-Werror'],
17
                  LINKFLAGS = ['-nostdlib','-Tlinker.lds'],
18
                  ASFLAGS = ['-D__ASSEMBLY__'],
19
                  PROGSUFFIX = '.elf',
20
                  ENV = {'PATH' : os.environ['PATH']},
21
                  LIBS = 'gcc',
22
                  CPPPATH = '#include')
23
 
24
bootdesc = env.Program(join(builddir, 'bootdesc.elf'), join(builddir, 'bootdesc.c'))
25
Default(bootdesc)

powered by: WebSVN 2.1.0

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