summaryrefslogtreecommitdiffstats
path: root/common
diff options
context:
space:
mode:
authorAleksander Morgado <aleksander@aleksander.es>2018-02-24 16:01:14 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2018-03-01 09:31:11 +0100
commitd876f2ec0890688a0235c052f6f5b500e92d35a2 (patch)
treef865944e1168fe9bec2226be53e18aa1422d7c4c /common
parentff612b866f301686fc490d076a138eaa65d79d4e (diff)
downloadbarebox-d876f2ec0890688a0235c052f6f5b500e92d35a2.tar.gz
barebox-d876f2ec0890688a0235c052f6f5b500e92d35a2.tar.xz
ratp: moved logic to its own subdirectory
We are going to add new RATP command implementations in separate files within this subdirectory. Signed-off-by: Aleksander Morgado <aleksander@aleksander.es> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'common')
-rw-r--r--common/Kconfig13
-rw-r--r--common/Makefile4
-rw-r--r--common/ratp/Kconfig14
-rw-r--r--common/ratp/Makefile1
-rw-r--r--common/ratp/ratp.c (renamed from common/ratp.c)0
5 files changed, 18 insertions, 14 deletions
diff --git a/common/Kconfig b/common/Kconfig
index 93b1d89274..81cf72a959 100644
--- a/common/Kconfig
+++ b/common/Kconfig
@@ -755,18 +755,7 @@ config PBL_CONSOLE
must be running at the address it's linked at and bss must
be cleared. On ARM that would be after setup_c().
-config CONSOLE_RATP
- bool
- select RATP
- select CRC16
- select POLLER
- depends on CONSOLE_FULL
- prompt "RATP console support"
- help
- This option adds support for remote controlling barebox via serial
- port. The regular console is designed for human interaction whereas
- this option adds a machine readable interface for controlling barebox.
- Say yes here if you want to control barebox from a remote host.
+source common/ratp/Kconfig
config PARTITION
bool
diff --git a/common/Makefile b/common/Makefile
index 5351ef0f77..bc9474a3a3 100644
--- a/common/Makefile
+++ b/common/Makefile
@@ -46,7 +46,8 @@ obj-$(CONFIG_RESET_SOURCE) += reset_source.o
obj-$(CONFIG_SHELL_HUSH) += hush.o
obj-$(CONFIG_SHELL_SIMPLE) += parser.o
obj-$(CONFIG_STATE) += state/
-obj-$(CONFIG_RATP) += ratp.o
+obj-$(CONFIG_RATP) += ratp/
+obj-$(CONFIG_CONSOLE_RATP) += ratp/
obj-$(CONFIG_BOOTCHOOSER) += bootchooser.o
obj-$(CONFIG_UIMAGE) += image.o uimage.o
obj-$(CONFIG_FITIMAGE) += image-fit.o
@@ -60,7 +61,6 @@ obj-$(CONFIG_FILE_LIST) += file-list.o
obj-$(CONFIG_FIRMWARE) += firmware.o
obj-$(CONFIG_UBIFORMAT) += ubiformat.o
obj-$(CONFIG_BAREBOX_UPDATE_IMX_NAND_FCB) += imx-bbu-nand-fcb.o
-obj-$(CONFIG_CONSOLE_RATP) += ratp.o
obj-$(CONFIG_BOOT) += boot.o
ifdef CONFIG_PASSWORD
diff --git a/common/ratp/Kconfig b/common/ratp/Kconfig
new file mode 100644
index 0000000000..93ff75d64d
--- /dev/null
+++ b/common/ratp/Kconfig
@@ -0,0 +1,14 @@
+
+config CONSOLE_RATP
+ bool
+ select RATP
+ select CRC16
+ select POLLER
+ depends on CONSOLE_FULL
+ prompt "RATP console support"
+ help
+ This option adds support for remote controlling barebox via serial
+ port. The regular console is designed for human interaction whereas
+ this option adds a machine readable interface for controlling barebox.
+ Say yes here if you want to control barebox from a remote host.
+
diff --git a/common/ratp/Makefile b/common/ratp/Makefile
new file mode 100644
index 0000000000..cab14c6fb7
--- /dev/null
+++ b/common/ratp/Makefile
@@ -0,0 +1 @@
+obj-y += ratp.o
diff --git a/common/ratp.c b/common/ratp/ratp.c
index b051fdee42..b051fdee42 100644
--- a/common/ratp.c
+++ b/common/ratp/ratp.c