Oh, It started compiling! Thank you!
I will write about the results!
Btw, what do I need to do if I want to update the documentation? I
should create a patch for the document and send it to guix patches?

On Sun, Mar 16, 2025 at 4:19 AM Hilton Chain <hako@ultrarare.space> wrote:
>
> On Sun, 16 Mar 2025 18:31:51 +0800,
> Adam wrote:
> >
> > Hi, Hilton!
> > Thank you for the message, I tried using it in my package definition
> > ```
> > (define-public my-linux-package
> >   (package
> >     (inherit (customize-linux
> >               #:linux linux-libre
> >               #:defconfig
> >               (local-file "linux-libre-config")))))
> > ```
> > But unfortunately it didn't work for me
> > ```
> > error: in phase 'configure': uncaught exception:
> > misc-error #f "~A ~S" ("Mismatching configurations in .config and
> > arch/x86/configs/guix_defconfig" (("CONFIG_RTW89" (#f "n"))
> > ("CONFIG_RTW89_CORE" (#f "n")) ("CONFIG_RTW89_PCI" (#f "n"))
> > ("CONFIG_RTW89_8851B" (#f "n")) ("CONFIG_RTW89_8852A" (#f "n"))
> > ("CONFIG_RTW89_8852B_COMMON" (#f "n")) ("CONFIG_RTW89_8852B" (#f "n"))
> > ("CONFIG_RTW89_8852BT" (#f "n")) ("CONFIG_RTW89_8852C" (#f "n"))
> > ("CONFIG_RTW89_8922A" (#f "n")) ("CONFIG_RTW89_8851BE" (#f "n"))
> > ("CONFIG_RTW89_8852AE" (#f "n")) ("CONFIG_RTW89_8852BE" (#f "n"))
> > ("CONFIG_RTW89_8852BTE" (#f "n")) ("CONFIG_RTW89_8852CE" (#f "n"))
> > ("CONFIG_RTW89_8922AE" (#f "n")))) #f
> > phase `configure' failed after 18.4 seconds
> > ```
> > Which is strange because if I download the source using "guix build
> > linux-libre --source", unpack it, put my config and run "make" within
> > "guix shell --development linux-libre" - it builds the source code
> > successfully.
> > I guess, #:defconfig in customize-linux does not use my kernel config
> > but tries to generate the config using it?
> > Anyway, it didn't work for me.
> > So, I guess my question remains - is there a way to use a custom
> > kernel config to build one?
>
> Have you run ‘make savedefconfig’?  It will output a ‘defconfig’ file with
> default configs pruned.  ‘#:defconfig’ expects this file, not a full config.
>
> Thanks

Reply via email to