From 63c0f02ce5d85f721871dda4be86894ba6b555dd Mon Sep 17 00:00:00 2001 From: Brian McGillion Date: Thu, 23 Jan 2025 00:17:20 +0400 Subject: [PATCH] nxp-imx: fix unused modules errors https://github.com/NixOS/nixpkgs/pull/366004 introduced a breaking change that if a module is declared but it is not being used it will fail. Signed-off-by: Brian McGillion --- nxp/common/bsp/linux-imx8.nix | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/nxp/common/bsp/linux-imx8.nix b/nxp/common/bsp/linux-imx8.nix index 926a0475..f57e8aee 100644 --- a/nxp/common/bsp/linux-imx8.nix +++ b/nxp/common/bsp/linux-imx8.nix @@ -10,6 +10,13 @@ buildLinux (args // rec { defconfig = "imx_v8_defconfig"; + # https://github.com/NixOS/nixpkgs/pull/366004 + # introduced a breaking change that if a module is declared but it is not being used it will fail + # if you try to suppress each of he errors e.g. + # REISERFS_FS_SECURITY = lib.mkForce unset; within structuredExtraConfig + # that list runs to a long 100+ modules so we go back to the previous default and ignore them + ignoreConfigErrors = true; + kernelPatches = [ ];