Working compilation, but adding variant_dir = BUILD it doesn't work

This commit is contained in:
Bahadir Balban
2009-09-11 13:55:46 +03:00
parent cc90efd120
commit 942865e6fc
9 changed files with 118 additions and 30 deletions

10
src/api/SConscript Normal file
View File

@@ -0,0 +1,10 @@
# Inherit global environment
Import('env')
Import('symbols')
# The set of source files associated with this SConscript file.
src_local = ['kip.c', 'syscall.c', 'thread.c', 'ipc.c', 'space.c', 'mutex.c', 'capability.c']
obj = env.Object(src_local)
Return('obj')

10
src/arch/arm/SConscript Normal file
View File

@@ -0,0 +1,10 @@
# Inherit global environment
Import('env')
# The set of source files associated with this SConscript file.
src_local = ['head.S', 'vectors.S', 'syscall.S', 'exception.c']
obj = env.Object(src_local)
Return('obj')

View File

@@ -0,0 +1,10 @@
# Inherit global environment
Import('env')
# The set of source files associated with this SConscript file.
src_local = ['mm.c', 'mmu_ops.S', 'mutex.S']
obj = env.Object(src_local)
Return('obj')

17
src/drivers/SConscript Normal file
View File

@@ -0,0 +1,17 @@
import glob
Import("env", "symbols")
src_local = []
for name, val in symbols:
if "CONFIG_DRIVER_UART_PL011" == name:
src_local.append(glob.glob("uart/pl011/*.c"))
if "CONFIG_DRIVER_TIMER_SP804" == name:
src_local.append(glob.glob("timer/sp804/*.c"))
if "CONFIG_DRIVER_IRQ_PL190" == name:
src_local.append(glob.glob("irq/pl190/*.c"))
obj = env.Object(src_local)
Return('obj')

10
src/generic/SConscript Normal file
View File

@@ -0,0 +1,10 @@
# Inherit global environment
Import('env')
# The set of source files associated with this SConscript file.
src_local = ['irq.c', 'scheduler.c', 'time.c', 'tcb.c', 'space.c', 'bootm.c', 'resource.c', 'container.c', 'capability.c']
obj = env.Object(src_local)
Return('obj')

10
src/glue/arm/SConscript Normal file
View File

@@ -0,0 +1,10 @@
# Inherit global environment
Import('env')
# The set of source files associated with this SConscript file.
src_local = ['init.c', 'memory.c', 'systable.c', 'irq.c']
obj = env.Object(src_local)
Return('obj')

10
src/lib/SConscript Normal file
View File

@@ -0,0 +1,10 @@
# Inherit global environment
Import('env')
Import('symbols')
# The set of source files associated with this SConscript file.
src_local = ['printk.c', 'putc.c', 'string.c', 'bit.c', 'wait.c', 'mutex.c', 'idpool.c', 'memcache.c']
obj = env.Object(src_local)
Return('obj')

View File

@@ -0,0 +1,10 @@
# Inherit global environment
Import('env')
# The set of source files associated with this SConscript file.
src_local = ['printascii.S','platform.c', 'uart.c', 'timer.c', 'irq.c']
obj = env.Object(src_local)
Return('obj')