mirror of
https://github.com/paparazzi/paparazzi.git
synced 2026-02-07 03:52:47 +08:00
Add two new items in module's dependency: - recommends: a recommended module tells the sorting algo that if the module is found, it should be sorted accordingly. It is useful for optional dependencies, like shell or mission in some modules - suggests: if a functionality is not provided by the user, a module can suggest a list of modules that can provide them. It is a convenient way to have "default" modules. As a result the former autoload node is removed and replaced by suggested modules.
36 lines
1.5 KiB
XML
36 lines
1.5 KiB
XML
<!DOCTYPE module SYSTEM "module.dtd">
|
|
<module name="shell" dir="core" task="core">
|
|
<doc>
|
|
<description>Simple debug shell</description>
|
|
<configure name="SHELL_PORT" value="uartX" description="serial link to use for the shell"/>
|
|
<configure name="SHELL_BAUD" value="B115200" description="baudrate for the shell"/>
|
|
<configure name="SHELL_DYNAMIC_ENTRIES_NUMBER" value="5" description="maximum number of dynamic commands to register"/>
|
|
</doc>
|
|
<dep>
|
|
<depends>uart</depends>
|
|
</dep>
|
|
<header>
|
|
<file name="shell.h"/>
|
|
</header>
|
|
<init fun="shell_init()"/>
|
|
<makefile target="ap">
|
|
<configure name="SHELL_PORT" case="upper|lower"/>
|
|
<configure name="SHELL_BAUD" default="B115200"/>
|
|
<configure name="SHELL_DYNAMIC_ENTRIES_NUMBER" default="5"/>
|
|
<file name="shell.c"/>
|
|
<file_arch name="shell_arch.c"/>
|
|
<file_arch name="microrl/microrl.c"/>
|
|
<file_arch name="microrl/microrlShell.c"/>
|
|
<include name="$(SRC_ARCH)/modules/core"/>
|
|
<include name="modules/loggers/sdlog_chibios"/>
|
|
<file name="printf.c" dir="modules/loggers/sdlog_chibios"/>
|
|
<define name="USE_SHELL"/>
|
|
<define name="USE_$(SHELL_PORT_UPPER)"/>
|
|
<define name="USE_$(SHELL_PORT_UPPER)_TX" value="FALSE"/>
|
|
<define name="USE_$(SHELL_PORT_UPPER)_RX" value="FALSE"/>
|
|
<define name="$(SHELL_PORT_UPPER)_BAUD" value="$(SHELL_BAUD)"/>
|
|
<define name="SHELL_DEV" value="$(SHELL_PORT_LOWER)"/>
|
|
<define name="SHELL_DYNAMIC_ENTRIES_NUMBER" value="$(SHELL_DYNAMIC_ENTRIES_NUMBER)"/>
|
|
</makefile>
|
|
</module>
|