diff --git a/drivers/rptun/Kconfig b/drivers/rptun/Kconfig index 1970f43549c..82243ebfa97 100644 --- a/drivers/rptun/Kconfig +++ b/drivers/rptun/Kconfig @@ -20,4 +20,8 @@ config RPTUN_STACKSIZE int "rptun stack size" default DEFAULT_TASK_STACKSIZE +config RPTUN_LOADER + bool "rptun loader support" + default n + endif # RPTUN diff --git a/drivers/rptun/rptun.c b/drivers/rptun/rptun.c index 3711952c0ff..91f93a314fb 100644 --- a/drivers/rptun/rptun.c +++ b/drivers/rptun/rptun.c @@ -389,6 +389,7 @@ static int rptun_dev_start(FAR struct remoteproc *rproc) return ret; } +#ifdef CONFIG_RPTUN_LOADER if (RPTUN_GET_FIRMWARE(priv->dev)) { struct rptun_store_s store = @@ -406,6 +407,7 @@ static int rptun_dev_start(FAR struct remoteproc *rproc) rsc = rproc->rsc_table; } else +#endif { rsc = RPTUN_GET_RESOURCE(priv->dev); if (!rsc)