summaryrefslogtreecommitdiff
path: root/components/drivers/phy/SConscript
diff options
context:
space:
mode:
authorWangQiang <[email protected]>2020-10-12 18:15:01 +0800
committerWangQiang <[email protected]>2020-10-12 19:17:00 +0800
commit502378cf93bf780035316d594c80dd9b027efa17 (patch)
tree0de8adfb4ad79a3722c6aef235e6374abf29f355 /components/drivers/phy/SConscript
parentd6ff0fc0c3a7d9a50ec73fc0544057e51788d02f (diff)
1. 抽象了PHY的设备模型,在components中增加了PHY设备的相关代码以及KCONFIG配置和SConscript脚本
2. 在IMXRT的Libraries中增加了peripherals目录,用于具体型号的设备驱动相关的代码的实现,不应与MCU的平台相关,实现PHY的设备对象中的相关接口。 3. 修改了BSP中的Sconstruct文件,增加了peripherals目录的构建 4. 修改了KEIL环境的SCT文件,用于实现以太网功能
Diffstat (limited to 'components/drivers/phy/SConscript')
-rw-r--r--components/drivers/phy/SConscript8
1 files changed, 8 insertions, 0 deletions
diff --git a/components/drivers/phy/SConscript b/components/drivers/phy/SConscript
new file mode 100644
index 0000000000..ec12ed24c2
--- /dev/null
+++ b/components/drivers/phy/SConscript
@@ -0,0 +1,8 @@
+from building import *
+
+cwd = GetCurrentDir()
+src = Glob('*.c')
+CPPPATH = [cwd + '/../include']
+group = DefineGroup('DeviceDrivers', src, depend = ['RT_USING_PHY'], CPPPATH = CPPPATH)
+
+Return('group')