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

Subversion Repositories c0or1k

[/] [c0or1k/] [trunk/] [conts/] [posix/] [bootdesc/] [SConstruct] - Rev 3

Go to most recent revision | Compare with Previous | Blame | View Log

#
# Build script to autogenerate a bootdesc image
#
# Copyright (C) 2007 Bahadir Balban
#
import os
import sys
import shutil
from os.path import join
from configure import *

config = configuration_retrieve()
builddir = ARGUMENTS.get('builddir', 'build/conts/posix')

env = Environment(CC = config.toolchain_userspace + 'gcc',
                  CCFLAGS = ['-g', '-nostdlib', '-ffreestanding', '-std=gnu99', '-Wall', '-Werror'],
                  LINKFLAGS = ['-nostdlib','-Tlinker.lds'],
                  ASFLAGS = ['-D__ASSEMBLY__'],
                  PROGSUFFIX = '.elf',
                  ENV = {'PATH' : os.environ['PATH']},
                  LIBS = 'gcc',
                  CPPPATH = '#include')

bootdesc = env.Program(join(builddir, 'bootdesc.elf'), join(builddir, 'bootdesc.c'))
Default(bootdesc)

Go to most recent revision | Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

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