Skip to content

Latest commit

 

History

History
47 lines (34 loc) · 2.53 KB

building_the_kernel.md

File metadata and controls

47 lines (34 loc) · 2.53 KB

Building the kernel

Some base info

  • This Kernel ist based on the current topic/soc-cx2072x-branch from here (topic/soc-cx2072x-5.1 at the time of writing this)
  • I added (and updated) alsa ucm files mentioned in this bugreport (Thank you @roethigj for informing me about takashis updated patches and the required adjustments to the ucm files!)
  • These instructions are written for debian, but they do work on ubuntu and this kernel has also been successfully build for arch (see here)

Building in a Docker container

There is a branch with a dockerfile to build the debian/ubuntu packages for this kernel. I added it so i can build the kernel on macOS, so i don't have to dualboot.

See this build-script, which uses this Dockerfile, both from this repo

Be prepared for the docker image to get about 27GB in size. As you can see in the Dockerfile, it builds in an ubuntu container by pulling from the cx2072x-branch. you might want to adjust the number of threads used.

Building the conventional way

Prerequesites

You need to have the following packages installed:

git fakeroot build-essential ncurses-dev xz-utils libssl-dev bc kernel-package

Configuring

  • Copy a base config: cp -v /boot/config-$(uname -r) .config
  • Run make menuconfig
  • Enable these configurations:
    • Device Drivers -> Sound card support -> Advanced Linux Sound Architecture -> ALSA for SoC audio support -> CODEC drivers -> Conexant CX2072 CODEC
      
    •  Device Drivers -> Sound card support -> Advanced Linux Sound Architecture -> ALSA for SoC audio support -> Intel ASoC SST drivers -> Intel Machine drivers > Baytrail and Cherrytrail with CX2072X codec
      
  • Remove the string in this configuration:
    •  Cryptographic API -> Certificates for signature checking -> Provide system-wide ring of trusted keys -> Additional X.509 keys for default system keyring
      

Building

replace the 8 with the number of cores in your system and run:

make deb-pkg -j 8