Skip to content

Commit eb85f9a

Browse files
tejlmandcfriedt
authored andcommitted
Revert "drivers: pinmux: build as static library"
This reverts commit 4330929. Fixes: #38403 The referred commit introduced `zephyr_library()` for pinmux drivers but also resulting in #38403 because several boards has `CONFIG_PINMUX=y` without selecting any pinmux drivers from `drivers/pinmux` thus generating the following warning: > No SOURCES given to Zephyr library: drivers__pinmux > > Excluding target from build. This commit reverts the changes so that this warning disappears. This results in pinmux drivers from `drivers/pinmux` to be located in libzephyr.a which is messy, but has been so for a long time, even before Zephyr 1.14 LTS. The future pinctrl API will be designed in such a way that this problem will not occur. Thus the old behavior is acceptable until the transition to pinctrl API has completed. Signed-off-by: Torsten Rasmussen <[email protected]>
1 parent 9ad64e8 commit eb85f9a

File tree

1 file changed

+14
-16
lines changed

1 file changed

+14
-16
lines changed

drivers/pinmux/CMakeLists.txt

Lines changed: 14 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,17 @@
11
# SPDX-License-Identifier: Apache-2.0
22

3-
zephyr_library()
4-
53
# Board initialization
6-
zephyr_library_sources_ifdef(CONFIG_PINMUX_CC13XX_CC26XX pinmux_cc13xx_cc26xx.c)
7-
zephyr_library_sources_ifdef(CONFIG_PINMUX_ESP32 pinmux_esp32.c)
8-
zephyr_library_sources_ifdef(CONFIG_PINMUX_HSDK pinmux_hsdk.c)
9-
zephyr_library_sources_ifdef(CONFIG_PINMUX_INTEL_S1000 pinmux_intel_s1000.c)
10-
zephyr_library_sources_ifdef(CONFIG_PINMUX_ITE_IT8XXX2 pinmux_ite_it8xxx2.c)
11-
zephyr_library_sources_ifdef(CONFIG_PINMUX_LPC11U6X pinmux_lpc11u6x.c)
12-
zephyr_library_sources_ifdef(CONFIG_PINMUX_MCUX pinmux_mcux.c)
13-
zephyr_library_sources_ifdef(CONFIG_PINMUX_MCUX_LPC pinmux_mcux_lpc.c)
14-
zephyr_library_sources_ifdef(CONFIG_PINMUX_RV32M1 pinmux_rv32m1.c)
15-
zephyr_library_sources_ifdef(CONFIG_PINMUX_SAM0 pinmux_sam0.c)
16-
zephyr_library_sources_ifdef(CONFIG_PINMUX_SIFIVE pinmux_sifive.c)
17-
zephyr_library_sources_ifdef(CONFIG_PINMUX_STM32 pinmux_stm32.c)
18-
zephyr_library_sources_ifdef(CONFIG_PINMUX_TELINK_B91 pinmux_b91.c)
19-
zephyr_library_sources_ifdef(CONFIG_PINMUX_XEC pinmux_mchp_xec.c)
4+
zephyr_sources_ifdef(CONFIG_PINMUX_TELINK_B91 pinmux_b91.c)
5+
zephyr_sources_ifdef(CONFIG_PINMUX_CC13XX_CC26XX pinmux_cc13xx_cc26xx.c)
6+
zephyr_sources_ifdef(CONFIG_PINMUX_ESP32 pinmux_esp32.c)
7+
zephyr_sources_ifdef(CONFIG_PINMUX_HSDK pinmux_hsdk.c)
8+
zephyr_sources_ifdef(CONFIG_PINMUX_INTEL_S1000 pinmux_intel_s1000.c)
9+
zephyr_sources_ifdef(CONFIG_PINMUX_ITE_IT8XXX2 pinmux_ite_it8xxx2.c)
10+
zephyr_sources_ifdef(CONFIG_PINMUX_LPC11U6X pinmux_lpc11u6x.c)
11+
zephyr_sources_ifdef(CONFIG_PINMUX_MCUX pinmux_mcux.c)
12+
zephyr_sources_ifdef(CONFIG_PINMUX_MCUX_LPC pinmux_mcux_lpc.c)
13+
zephyr_sources_ifdef(CONFIG_PINMUX_RV32M1 pinmux_rv32m1.c)
14+
zephyr_sources_ifdef(CONFIG_PINMUX_SAM0 pinmux_sam0.c)
15+
zephyr_sources_ifdef(CONFIG_PINMUX_SIFIVE pinmux_sifive.c)
16+
zephyr_sources_ifdef(CONFIG_PINMUX_STM32 pinmux_stm32.c)
17+
zephyr_sources_ifdef(CONFIG_PINMUX_XEC pinmux_mchp_xec.c)

0 commit comments

Comments
 (0)