Commit 7fba91f3 authored by Gerson Fernando Budke's avatar Gerson Fernando Budke Committed by Anas Nashif
Browse files

modules: hal_gigadevice: Set directories to lowercase



This rework module hal_gigadevice to be compliance with rule
that requires firmware libraries directories names be lowercase.
This rule was created at hal_gigadevice/README and it is not
a Zephyr general rule. This only affect how hal_gigadevice is
used.

Signed-off-by: default avatarGerson Fernando Budke <gerson.budke@atl-electronics.com>
parent 9191dd77
Loading
Loading
Loading
Loading
+6 −7
Original line number Diff line number Diff line
@@ -3,23 +3,22 @@

if(CONFIG_HAS_GD32_HAL)

string(TOUPPER ${CONFIG_SOC_SERIES} gd32_soc_series_uc)
string(TOUPPER ${CONFIG_SOC} gd32_soc_uc)

set(gd32_soc_dir     ${ZEPHYR_HAL_GIGADEVICE_MODULE_DIR}/${gd32_soc_series_uc})
set(gd32_cmsis_dir   ${gd32_soc_dir}/CMSIS/GD/${gd32_soc_series_uc})
set(gd32_soc_dir     ${ZEPHYR_HAL_GIGADEVICE_MODULE_DIR}/${CONFIG_SOC_SERIES})
set(gd32_cmsis_dir   ${gd32_soc_dir}/cmsis/gd/${CONFIG_SOC_SERIES})
set(gd32_std_dir     ${gd32_soc_dir}/standard_peripheral)
set(gd32_std_src_dir ${gd32_std_dir}/Source)
set(gd32_std_src_dir ${gd32_std_dir}/source)

zephyr_library_named(hal_gigadevice)

zephyr_compile_definitions(${gd32_soc_uc})

# Global includes to be used outside hal_gigadevice
zephyr_include_directories(${gd32_cmsis_dir}/Include)
zephyr_include_directories(${gd32_std_dir}/Include)
zephyr_include_directories(${gd32_cmsis_dir}/include)
zephyr_include_directories(${gd32_std_dir}/include)

zephyr_library_sources(${gd32_cmsis_dir}/Source/system_${CONFIG_SOC_SERIES}.c)
zephyr_library_sources(${gd32_cmsis_dir}/source/system_${CONFIG_SOC_SERIES}.c)

zephyr_library_sources_ifdef(CONFIG_USE_GD32_ADC    ${gd32_std_src_dir}/${CONFIG_SOC_SERIES}_adc.c)
zephyr_library_sources_ifdef(CONFIG_USE_GD32_BKP    ${gd32_std_src_dir}/${CONFIG_SOC_SERIES}_bkp.c)
+1 −1
Original line number Diff line number Diff line
@@ -73,7 +73,7 @@ manifest:
      groups:
        - hal
    - name: hal_gigadevice
      revision: 85f10a63f9ea550a6ebd62843a976df6bf49877b
      revision: 749fdd4b9dc9dfc57daac1229a5a669109e14624
      path: modules/hal/gigadevice
      groups:
        - hal