From owner-freebsd-current@freebsd.org Mon Jan 15 18:33:02 2018 Return-Path: Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 961C9E6C9DA for ; Mon, 15 Jan 2018 18:33:02 +0000 (UTC) (envelope-from fjwcash@gmail.com) Received: from mailman.ysv.freebsd.org (unknown [127.0.1.3]) by mx1.freebsd.org (Postfix) with ESMTP id 72A9663B72 for ; Mon, 15 Jan 2018 18:33:02 +0000 (UTC) (envelope-from fjwcash@gmail.com) Received: by mailman.ysv.freebsd.org (Postfix) id 720F5E6C9D7; Mon, 15 Jan 2018 18:33:02 +0000 (UTC) Delivered-To: current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 71B51E6C9D4 for ; Mon, 15 Jan 2018 18:33:02 +0000 (UTC) (envelope-from fjwcash@gmail.com) Received: from mail-lf0-x22d.google.com (mail-lf0-x22d.google.com [IPv6:2a00:1450:4010:c07::22d]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id DC9F163B71 for ; Mon, 15 Jan 2018 18:33:01 +0000 (UTC) (envelope-from fjwcash@gmail.com) Received: by mail-lf0-x22d.google.com with SMTP id e203so14463000lfg.3 for ; Mon, 15 Jan 2018 10:33:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=03BuKkIjmbPAQ/JMOqIqjwcMEGhSmQ2qeb7L+pA+1R4=; b=DyoHLUsLNfF+SopR+sZYnkJWwsP32ZkuehkcVAJh/K+rY0LBAe6+nVs+I1obXc3hWM EzbubC+3LZbqdFTUzQJLcIuByHRDV7XLCQtfO35oNL3/rYZhV8NCdDsh3Y1mQVFCFUVV Hp44v1CLeQWyP55kGPnj2zEFCBVOXgZsJXliZhR9ZK3rl9cepPTINnE7QIFiuXYeUkIF c+7gygAlsHGhmD26ZlJRV6fOlVSnpMzFlPjJmZPqn/akg+qi2vONa7q67U7GY4kgwk2M hIPkzYDqn5tuzTJ3uhoac+1XLfDZYujhG9gbf27Wz7gCpkh1pGp9Wb4Ge9OawpjUW/8j HZVw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=03BuKkIjmbPAQ/JMOqIqjwcMEGhSmQ2qeb7L+pA+1R4=; b=KXuCur1rFvX2lkPxvE9fjqCbkp/3WkXEGFiEpj+SkgWVH8E11lzOorZ4VF2VaZfvwK G7slwj3SwffRz3HTWwbpj5Tkvl3ys9fqyyWdvgqW7U4paLR16SRsP8oLNz9nzgwzYxtC a6nIlwbc66p+2hfqtmTgEBMvDn1rP9L1zKueZFAEHdSIK6iaWV+FBPOFoRiTn3LVD4Xq hD+F27JO4VBxCBc3xWiYM97EDumjz7NGCFHJ3LKC5XZ4ppdMYi8zS1lw39u+K4wZebGl DVyL82MLvA8CXe5nlUXRuixO2SL7/itohRJkXSyXrc3kXEaSsiGL2JjPPgFGtDM7o6a3 FcZA== X-Gm-Message-State: AKwxytdsgV8RidTXYVtPSoMvYnTNEC9aV48oXT1YjhrHnSiGYZxzhvxR pGdKR4TCf04NWqafDG/b1XdPnv7xWIPrKm+9rsb3nFVd X-Google-Smtp-Source: ACJfBov63Ca0ZyxxHKC6ZCwdslo3BQZv/KaZlJnkjn/rShkYqmVxioh551Z/syBci4RbEPzEOQ2el9VGmK1aE+jqNts= X-Received: by 10.46.115.16 with SMTP id o16mr13759671ljc.49.1516041178778; Mon, 15 Jan 2018 10:32:58 -0800 (PST) MIME-Version: 1.0 Received: by 10.25.163.207 with HTTP; Mon, 15 Jan 2018 10:32:58 -0800 (PST) In-Reply-To: <86tvvn2dlq.fsf@xanderio.de> References: <86tvvn2dlq.fsf@xanderio.de> From: Freddie Cash Date: Mon, 15 Jan 2018 10:32:58 -0800 Message-ID: Subject: Re: Building kernel with no sound To: Alexander Sieg Cc: FreeBSD Current Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.25 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 15 Jan 2018 18:33:02 -0000 On Mon, Jan 15, 2018 at 10:14 AM, Alexander Sieg wrote: > Hey, > i=C2=B4m trying to build a custom kernel with no sound support build in. > > This is my make.conf: > MALLOC_PRODUCTION=3Dtrue > KERNCONF=3DMYKERNEL #GENERIC-NODEBUG > DEVELOPER=3Dyes > > and this is my kernel configuration: > include GENERIC-NODEBUG > > ident MYKERNEL > > nodevice sound # Generic sound driver (required) > nodevice snd_es137x # Ensoniq AUdioPCI ES137x > nodevice snd_hda # Intel High Definition Audio > nodevice snd_ich # Intel, Nvidia and other ICH AC'97 audio > nodevice snd_uaudio # USB Audio > nodevice snd_via8233 # VIA VT823x Audio > > > The problem is when i try to compile it with "make buildkernel" the > build process starts, but it stop with the error that it can=C2=B4t find = the > header file "channel_if.h". > > /usr/src/sys/dev/sound/pcm/channel.h:256:10: fatal error: 'channel_if.h' > file not found > #include "channel_if.h" > ^~~~~~~~~~~~~~ > > The intention behind the custom kernel is to try 'oss' form the > ports tree. > =E2=80=8BYou're missing a few of the sound drivers. Here's the section fro= m GENERIC on 11.1 for sound (it's the same for 10.4 and 12-CURRENT): =E2=80=8B# Sound support device sound # Generic sound driver (required) device snd_cmi # CMedia CMI8338/CMI8738 device snd_csa # Crystal Semiconductor CS461x/428x device snd_emu10kx # Creative SoundBlaster Live! and Audigy device snd_es137x # Ensoniq AudioPCI ES137x device snd_hda # Intel High Definition Audio device snd_ich # Intel, NVidia and other ICH AC'97 Audio device snd_via8233 # VIA VT8233x Audio =E2=80=8BSo you need to add nodevice entries for all the ones that you are = missing (snd_cmi, snd_cma, snd_emu10kx).=E2=80=8B Always check the kernel config file you are including to see what you need to exclude via nodevice. :) --=20 Freddie Cash fjwcash@gmail.com