diff --git a/system/fastboot/fastboot.c b/system/fastboot/fastboot.c index 10caa6d9f9b..8382cca6f12 100644 --- a/system/fastboot/fastboot.c +++ b/system/fastboot/fastboot.c @@ -46,6 +46,9 @@ #include #include +#ifdef CONFIG_BOARD_USBDEV_SERIALSTR +# include +#endif #include #include #include @@ -1254,6 +1257,9 @@ static void fastboot_create_publish(FAR struct fastboot_ctx_s *ctx, fastboot_publish(ctx, "slot-count", "1", NULL); fastboot_publish(ctx, "max-download-size", NULL, &ctx->download_max); +#ifdef CONFIG_BOARD_USBDEV_SERIALSTR + fastboot_publish(ctx, "serialno", board_usbdev_serialstr(), NULL); +#endif } }