-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[build] add add_syterkit_driver function
- Loading branch information
SamulKyull
authored and
SamulKyull
committed
Dec 6, 2024
1 parent
e8e9fff
commit 13ca934
Showing
10 changed files
with
62 additions
and
56 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
macro(add_syterkit_driver target_name) | ||
include(${target_name}/CMakeModule.cmake) | ||
endmacro() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
if (CONFIG_CHIP_GPIO_V1) | ||
set(DRIVER_GPIO gpio/sys-gpio-v1.c) | ||
elseif(CONFIG_CHIP_GPIO_V2) | ||
set(DRIVER_GPIO gpio/sys-gpio-v2.c) | ||
elseif(CONFIG_CHIP_GPIO_V3) | ||
set(DRIVER_GPIO gpio/sys-gpio-v3.c) | ||
else() | ||
set(DRIVER_GPIO gpio/sys-gpio-v2.c) | ||
endif() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
set(INTC_DRIVER "") | ||
if (CONFIG_CHIP_GIC) | ||
set(INTC_DRIVER | ||
intc/sys-gic.c | ||
) | ||
endif() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
set(MMC_DRIVER | ||
mmc/sys-mmc.c | ||
mmc/sys-sdhci.c | ||
mmc/sys-sdcard.c | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
set(MTD_DRIVER | ||
mtd/sys-spi-nand.c | ||
mtd/sys-spi-nor.c | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
if (CONFIG_CHIP_WITHPMU) | ||
set(DRIVER_PMU | ||
pmu/axp.c | ||
pmu/axp1530.c | ||
pmu/axp2101.c | ||
pmu/axp2202.c | ||
pmu/axp8191.c | ||
) | ||
endif() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
set(MMC_DRIVER | ||
sdhci/sys-sdcard.c | ||
sdhci/sys-sdhci.c | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
set(USB_DRIVER "") | ||
if (CONFIG_CHIP_USB) | ||
set(USB_DRIVER | ||
usb/usb.c | ||
usb/usb_controller.c | ||
usb/usb_device.c | ||
usb/usb_dma.c | ||
|
||
usb/module/usb_detect.c | ||
usb/module/usb_mass.c | ||
) | ||
endif() |