refactor(gpio):add gpio linker.lf to control the placement of driver and hal

since the linker placement of the hal functions are controlled by the Kconfig in the driver component,
we should create the linker.lf in the driver component, not in the hal component.
This commit is contained in:
Chen Jichang
2023-07-11 20:44:36 +08:00
committed by chenjichang
parent 87f8a8e20c
commit cdd18fd232
4 changed files with 13 additions and 13 deletions
+12
View File
@@ -0,0 +1,12 @@
[mapping:gpio_driver]
archive: libdriver.a
entries:
if GPIO_CTRL_FUNC_IN_IRAM = y:
gpio: gpio_set_level (noflash)
gpio: gpio_intr_disable (noflash)
[mapping:gpio_hal]
archive: libhal.a
entries:
if GPIO_CTRL_FUNC_IN_IRAM = y:
gpio_hal: gpio_hal_intr_disable (noflash)