[PATCH 02/11] mtd: spi-nor: enable module in PBL

Michael Tretter m.tretter at pengutronix.de
Wed Oct 7 03:55:47 PDT 2026


Enable the spi-nor module in the PBL to be able to use the helper
functions in the PBL. This allows to have SPI NOR flash drivers in the
PBL and load barebox proper from flash.

Signed-off-by: Michael Tretter <m.tretter at pengutronix.de>
---
 drivers/mtd/spi-nor/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/mtd/spi-nor/Makefile b/drivers/mtd/spi-nor/Makefile
index 61cf789182fd..54d870a6f45c 100644
--- a/drivers/mtd/spi-nor/Makefile
+++ b/drivers/mtd/spi-nor/Makefile
@@ -1,4 +1,4 @@
 # SPDX-License-Identifier: GPL-2.0-only
-obj-$(CONFIG_MTD_SPI_NOR)		+= spi-nor.o
+obj-pbl-$(CONFIG_MTD_SPI_NOR)		+= spi-nor.o
 obj-$(CONFIG_SPI_CADENCE_QUADSPI)	+= cadence-quadspi.o
 obj-$(CONFIG_SPI_SYNOPSYS_OCTALSPI_NOR) += dw-ospi-nor.o

-- 
2.47.3




More information about the barebox mailing list