summaryrefslogtreecommitdiff
path: root/hw
diff options
context:
space:
mode:
authorhathach <[email protected]>2025-04-14 16:31:17 +0700
committerhathach <[email protected]>2025-04-14 23:45:20 +0700
commitd039d54a89d15b9d11f8f22f94279bedc8b28c09 (patch)
treed11cc3e5de55b6326507357d461253ebf6caebfb /hw
parentaf0c47e06ec079ffa80ea55ff5de58c08ac1e750 (diff)
channge DWC2_CHANNEL_COUNT/DWC2_EP_COUNT to inline function
Diffstat (limited to 'hw')
-rw-r--r--hw/bsp/broadcom_32bit/family.cmake2
-rw-r--r--hw/bsp/broadcom_32bit/family.mk2
-rw-r--r--hw/bsp/broadcom_64bit/family.cmake2
-rw-r--r--hw/bsp/broadcom_64bit/family.mk2
4 files changed, 4 insertions, 4 deletions
diff --git a/hw/bsp/broadcom_32bit/family.cmake b/hw/bsp/broadcom_32bit/family.cmake
index f1e8d12ff..5e57d8b1e 100644
--- a/hw/bsp/broadcom_32bit/family.cmake
+++ b/hw/bsp/broadcom_32bit/family.cmake
@@ -42,7 +42,7 @@ function(add_board_target BOARD_TARGET)
-ffreestanding
-mgeneral-regs-only
-fno-exceptions
- -std=gnu17
+ -std=c17
)
target_include_directories(${BOARD_TARGET} PUBLIC
${SDK_DIR}
diff --git a/hw/bsp/broadcom_32bit/family.mk b/hw/bsp/broadcom_32bit/family.mk
index 6acdf1197..a282e9961 100644
--- a/hw/bsp/broadcom_32bit/family.mk
+++ b/hw/bsp/broadcom_32bit/family.mk
@@ -10,7 +10,7 @@ CFLAGS += \
-nostartfiles \
-mgeneral-regs-only \
-fno-exceptions \
- -std=gnu17
+ -std=c17
CROSS_COMPILE = arm-none-eabi-
diff --git a/hw/bsp/broadcom_64bit/family.cmake b/hw/bsp/broadcom_64bit/family.cmake
index 16f8e1eae..1a088c2c0 100644
--- a/hw/bsp/broadcom_64bit/family.cmake
+++ b/hw/bsp/broadcom_64bit/family.cmake
@@ -43,7 +43,7 @@ function(add_board_target BOARD_TARGET)
-ffreestanding
-mgeneral-regs-only
-fno-exceptions
- -std=gnu17
+ -std=c17
)
target_compile_definitions(${BOARD_TARGET} PUBLIC
BCM_VERSION=${BCM_VERSION}
diff --git a/hw/bsp/broadcom_64bit/family.mk b/hw/bsp/broadcom_64bit/family.mk
index 92b5f69a3..37d381f9f 100644
--- a/hw/bsp/broadcom_64bit/family.mk
+++ b/hw/bsp/broadcom_64bit/family.mk
@@ -9,7 +9,7 @@ CFLAGS += \
-nostartfiles \
--specs=nosys.specs \
-mgeneral-regs-only \
- -std=gnu17
+ -std=c17
CROSS_COMPILE = aarch64-none-elf-