diff --git a/docs/packaging/kernel-packages/kconfig-fragments.md b/docs/packaging/kernel-packages/kconfig-fragments.md index 5b385816a..6ff138a21 100644 --- a/docs/packaging/kernel-packages/kconfig-fragments.md +++ b/docs/packaging/kernel-packages/kconfig-fragments.md @@ -20,10 +20,9 @@ To convert an existing kernel package to use fragments: ### APKBUILD Changes -Add custom `.config` fragment files to `sources=` and define which defconfig to use: +Add custom `.config` fragment files to `sources=`: ```bash -_defconfig="defconfig" sources=" $pkgname.config misc.config @@ -32,6 +31,12 @@ sources=" Verify that `pmb:kconfigcheck-*` categories in the `options=` variable are correct, as these determine which `kconfigcheck.toml` sections are included. +If `pmbootstrap kconfig generate` fails, this may be because the default +`defconfig` config fragment may not be the proper config for the kernel. +Consider adding a `_defconfig=""` above +`sources=` with the name of whatever config the kernel package's source +provides. + ### Creating Custom Fragments If using a generic defconfig, device-specific drivers may not be enabled. Create a fragment explicitly listing required options, for example: