[PATCH 05/11] fuzzing_engine: Add fuzzing engine uclass
Simon Glass
sjg at chromium.org
Mon Apr 11 20:35:39 CEST 2022
Hi Andrew,
On Thu, 7 Apr 2022 at 03:41, Andrew Scull <ascull at google.com> wrote:
>
> This new class of device will provide fuzzing inputs from a fuzzing
> engine.
>
> Signed-off-by: Andrew Scull <ascull at google.com>
> ---
> drivers/Kconfig | 2 +
> drivers/Makefile | 1 +
> drivers/fuzzing_engine/Kconfig | 6 +++
> drivers/fuzzing_engine/Makefile | 7 +++
> .../fuzzing_engine/fuzzing_engine-uclass.c | 28 ++++++++++
How about just fuzz/ for the directory ?
> include/dm/uclass-id.h | 1 +
> include/fuzzing_engine.h | 51 +++++++++++++++++++
> 7 files changed, 96 insertions(+)
> create mode 100644 drivers/fuzzing_engine/Kconfig
> create mode 100644 drivers/fuzzing_engine/Makefile
> create mode 100644 drivers/fuzzing_engine/fuzzing_engine-uclass.c
> create mode 100644 include/fuzzing_engine.h
Reviewed-by: Simon Glass <sjg at chromium.org>
>
> diff --git a/drivers/Kconfig b/drivers/Kconfig
> index b26ca8cf70..54ad7f82fa 100644
> --- a/drivers/Kconfig
> +++ b/drivers/Kconfig
> @@ -40,6 +40,8 @@ source "drivers/fastboot/Kconfig"
>
> source "drivers/firmware/Kconfig"
>
> +source "drivers/fuzzing_engine/Kconfig"
> +
> source "drivers/fpga/Kconfig"
>
> source "drivers/gpio/Kconfig"
> diff --git a/drivers/Makefile b/drivers/Makefile
> index 4e7cf28440..10a4a317c9 100644
> --- a/drivers/Makefile
> +++ b/drivers/Makefile
> @@ -113,6 +113,7 @@ obj-$(CONFIG_W1) += w1/
> obj-$(CONFIG_W1_EEPROM) += w1-eeprom/
>
> obj-$(CONFIG_MACH_PIC32) += ddr/microchip/
> +obj-$(CONFIG_FUZZ) += fuzzing_engine/
> obj-$(CONFIG_DM_HWSPINLOCK) += hwspinlock/
> obj-$(CONFIG_DM_RNG) += rng/
> endif
> diff --git a/drivers/fuzzing_engine/Kconfig b/drivers/fuzzing_engine/Kconfig
> new file mode 100644
> index 0000000000..f405fc75e8
> --- /dev/null
> +++ b/drivers/fuzzing_engine/Kconfig
> @@ -0,0 +1,6 @@
> +config DM_FUZZING_ENGINE
> + bool "Driver support for fuzzing engine devices"
> + depends on DM
> + help
> + Enable driver model for fuzzing engine devices. This interface is
> + used to get fuzzing inputs from a fuzzing engine.
Can you expand a bit what these things are?
Regards,
Simon
More information about the U-Boot
mailing list