mirror of
https://github.com/drasko/codezero.git
synced 2026-01-14 20:03:16 +01:00
Working compilation, but adding variant_dir = BUILD it doesn't work
This commit is contained in:
17
src/drivers/SConscript
Normal file
17
src/drivers/SConscript
Normal 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')
|
||||
Reference in New Issue
Block a user