[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Debian kernel-config file for Linux 6.3



On Mon, 2023-05-08 at 07:48 +0200, Sedat Dilek wrote:
> Hi Ben and Debian kernel team,
>
> Today, I have seen on salsa.d.o there is some progress/update in
> master Git branch to use Linux 6.3
>
> Can you give help and/or instructions on how to generate a Debian
> kernel-config file?
> Alternatively point to a URL or provide such a kernel-config file?

You should be able to generate any .config file like this:

$ debian/rules debian/control-real
...
$ ARCH=$(dpkg --print-architecture)  # or some other Debian
architecture
$ FEATURESET=none               # or "rt" for builds with realtime
patches
$ FLAVOUR=...                   # whichever flavour you're interested
in
$ dpkg-architecture -a$ARCH -c make -f debian/rules.gen
setup_${ARCH}_${FEATURESET}_${FLAVOUR}
...
$ cat debian/build/build_${ARCH}_${FEATURESET}_${FLAVOUR}/.config

The setup rule is currently broken on master, so you'll need to apply
this patch first:

--- a/debian/rules.real
+++ b/debian/rules.real
@@ -345,7 +345,7 @@ binary_support: PACKAGE_ROOT =
/usr/share/$(PACKAGE_NAME)
        dh_link $(PACKAGE_ROOT) /usr/src/$(PACKAGE_NAME)
        +$(MAKE_SELF) install-base

-setup_image: $(STAMPS_DIR)/setup_$(ARCH)_$(FEATURESET)_$(FLAVOUR))
+setup_image: $(STAMPS_DIR)/setup_$(ARCH)_$(FEATURESET)_$(FLAVOUR)

 build_image: $(STAMPS_DIR)/build_$(ARCH)_$(FEATURESET)_$(FLAVOUR)

--- END ---

Hi Ben,

this weekend I had some time to play with this.

You missed some PREREQS like you need a linux-x.y.z SOURCE...

What worked for me:

[ PREREQS + PREPS ]

[ /etc/apt/sources.list.d/debian-sources.list  ]

# Debian/experimental sources
deb-src https://deb.debian.org/debian experimental main non-free contrib
deb-src https://deb.debian.org/debian rc-buggy main non-free contrib
- EOF-

apt-get update

cd $HOME/src/linux

apt-get source linux-source-6.3

cd linux-6.3.1/

git apply --verbose ../debian-rules_real.diff <--- Your DIFF (see also
patch below [1]).

[ GENERATE KERNEL-CONFIG ]

echo $ARCH $FEATURESET $FLAVOUR
amd64 none amd64

LC_ALL=C debian/rules debian/control-real

LC_ALL=C dpkg-architecture -a$ARCH -c make -f debian/rules.gen
setup_${ARCH}_${FEATURESET}_${FLAVOUR}

[ DIFFCONFIG ]

scripts/diffconfig /boot/config-6.3.0-0-amd64
debian/build/build_${ARCH}_${FEATURESET}_${FLAVOUR}/.config
+BUILD_SALT "6.3.0-0-amd64"
+MODULE_SIG_ALL n
+MODULE_SIG_KEY ""
+SYSTEM_TRUSTED_KEYS
"/home/dileks/src/linux/linux-6.3.1/debian/certs/debian-uefi-certs.pem"

Thanks.

Regards,
-Sedat-

[1] https://salsa.debian.org/kernel-team/linux/-/commit/ad125a44dfa9fcfc4fcc79a697819a8259421484.patch


Reply to: