summaryrefslogtreecommitdiff
path: root/drivers/fastboot/Makefile
diff options
context:
space:
mode:
authorAlex Kiernan <alex.kiernan@gmail.com>2018-05-29 18:30:41 +0300
committerMarek Vasut <marex@denx.de>2018-05-30 12:59:21 +0300
commitd2df2abbcd4b88539605f8329edd244e6474d7a0 (patch)
tree572a2ecdd83b6f84715ad5033e60dd95f6373b4d /drivers/fastboot/Makefile
parentc4ded03ef608be37db105200010d2f3f88195bd6 (diff)
downloadu-boot-d2df2abbcd4b88539605f8329edd244e6474d7a0.tar.xz
fastboot: Extract fastboot_okay/fail to fb_common.c
Add drivers/fastboot/fb_common.c, where fastboot_okay/fail are implemented so we can call them from a non-USB implementation. Introduce fastboot_response which takes varargs parameters so we can use it to generate formatted response strings. Refactor fastboot_okay/fail to use it. Signed-off-by: Alex Kiernan <alex.kiernan@gmail.com> Reviewed-by: Joe Hershberger <joe.hershberger@ni.com>
Diffstat (limited to 'drivers/fastboot/Makefile')
-rw-r--r--drivers/fastboot/Makefile2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/fastboot/Makefile b/drivers/fastboot/Makefile
index 651fbf0935..b38dcff202 100644
--- a/drivers/fastboot/Makefile
+++ b/drivers/fastboot/Makefile
@@ -1,5 +1,7 @@
# SPDX-License-Identifier: GPL-2.0+
+obj-y += fb_common.o
+
ifdef CONFIG_FASTBOOT_FLASH_MMC_DEV
obj-y += fb_mmc.o
endif