mirror of
https://github.com/drasko/codezero.git
synced 2026-01-13 11:23:16 +01:00
25 lines
527 B
Python
25 lines
527 B
Python
|
|
# Inherit global environment
|
|
import os, sys
|
|
|
|
PROJRELROOT = '../../'
|
|
sys.path.append(PROJRELROOT)
|
|
|
|
from scripts.config.projpaths import *
|
|
from scripts.config.config_invoke import *
|
|
|
|
Import('env')
|
|
|
|
config = configuration_retrieve()
|
|
symbols = config.all
|
|
|
|
# The set of source files associated with this SConscript file.
|
|
src_local = ['irq.c', 'platform.c', 'print-early.c', 'perfmon.c', 'cpuperf.S']
|
|
|
|
for name, val in symbols:
|
|
if 'CONFIG_SMP_' == name:
|
|
src_local += ['smp.c']
|
|
|
|
obj = env.Object(src_local)
|
|
Return('obj')
|