Taking UART code out from libc and loader and putting in libdev

This commit is contained in:
Amit Mahajan
2009-11-05 23:45:11 +05:30
parent 272b01d873
commit c44d25b596
18 changed files with 334 additions and 861 deletions

View File

@@ -15,14 +15,17 @@ sys.path.append(PROJRELROOT)
from config.configuration import *
from config.projpaths import *
Import('env', 'arch')
Import('env', 'arch', 'type')
variant = type
variant = 'userspace'
# Needed by fputc(), for declaration of pl011_uart_tx()
LIBDEV_PATH = join(PROJROOT, 'conts/libdev')
LIBDEV_INCPATH = [LIBDEV_PATH + '/uart/include']
e = env.Clone()
e.Append(CPPPATH = ['include', 'include/sys-' + variant + '/arch-' + arch])
e.Append(CCFLAGS = '-nostdinc')
e.Append(CPPPATH = ['include', 'include/sys-' + variant + '/arch-' + arch,
LIBDEV_INCPATH],
CCFLAGS = ['-nostdinc', '-DVARIANT_' + variant.upper()])
source = \
Glob('src/*.c') + \