mirror of
https://github.com/drasko/codezero.git
synced 2026-01-15 04:13:16 +01:00
Kernel updates since December 2009
This commit is contained in:
@@ -1,19 +1,32 @@
|
||||
import glob
|
||||
import os, sys, glob
|
||||
|
||||
Import("env", "symbols")
|
||||
PROJRELROOT = '../../'
|
||||
|
||||
sys.path.append(PROJRELROOT)
|
||||
|
||||
from config.projpaths import *
|
||||
from configure import *
|
||||
|
||||
Import("env", "symbols", "platform", "bdir")
|
||||
|
||||
src_local = []
|
||||
objs = []
|
||||
|
||||
for name, val in symbols:
|
||||
if "CONFIG_DRIVER_UART_PL011" == name:
|
||||
src_local.append(glob.glob("uart/pl011/*.c"))
|
||||
objs += SConscript("uart/pl011/SConscript", exports = {'env' : env}, duplicate=0, build_dir=bdir + 'pl011')
|
||||
if "CONFIG_DRIVER_TIMER_SP804" == name:
|
||||
src_local.append(glob.glob("timer/sp804/*.c"))
|
||||
objs += SConscript("timer/sp804/SConscript", exports = {'env' : env}, duplicate=0, build_dir=bdir + 'timer')
|
||||
if "CONFIG_DRIVER_IRQ_PL190" == name:
|
||||
src_local.append(glob.glob("irq/pl190/*.c"))
|
||||
objs += SConscript("irq/pl190/SConscript", exports = {'env' : env}, duplicate=0, build_dir=bdir + 'vic')
|
||||
if "CONFIG_DRIVER_IRQ_GIC" == name:
|
||||
src_local.append(glob.glob("irq/gic/*.c"))
|
||||
objs += SConscript("irq/gic/SConscript", exports = {'env' : env}, duplicate=0, build_dir=bdir + 'gic')
|
||||
if "CONFIG_DRIVER_INTC_OMAP" == name:
|
||||
objs += SConscript("irq/omap3/SConscript", exports = {'env' : env}, duplicate=0, build_dir=bdir + '/omap/intc')
|
||||
if "CONFIG_DRIVER_UART_OMAP" == name:
|
||||
objs += SConscript("uart/omap/SConscript", exports = {'env' : env}, duplicate=0, build_dir=bdir + '/omap/uart')
|
||||
if "CONFIG_DRIVER_TIMER_OMAP" == name:
|
||||
objs += SConscript("timer/omap/SConscript", exports = {'env' : env}, duplicate=0, build_dir=bdir + '/omap/timer')
|
||||
|
||||
obj = env.Object(src_local)
|
||||
|
||||
Return('obj')
|
||||
Return('objs')
|
||||
|
||||
Reference in New Issue
Block a user