From owner-freebsd-current@freebsd.org Mon Jan 15 20:59:22 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 5CE45E764D0 for ; Mon, 15 Jan 2018 20:59:22 +0000 (UTC) (envelope-from ian@freebsd.org) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id 460F86D905 for ; Mon, 15 Jan 2018 20:59:22 +0000 (UTC) (envelope-from ian@freebsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id 4282CE764CF; Mon, 15 Jan 2018 20:59:22 +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 421FAE764CD for ; Mon, 15 Jan 2018 20:59:22 +0000 (UTC) (envelope-from ian@freebsd.org) Received: from outbound1a.eu.mailhop.org (outbound1a.eu.mailhop.org [52.58.109.202]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id D80EA6D904 for ; Mon, 15 Jan 2018 20:59:21 +0000 (UTC) (envelope-from ian@freebsd.org) X-MHO-User: cb513b7a-fa36-11e7-8dac-d32f5c2d02ef X-Report-Abuse-To: https://support.duocircle.com/support/solutions/articles/5000540958-duocircle-standard-smtp-abuse-information X-Originating-IP: 73.78.92.27 X-Mail-Handler: DuoCircle Outbound SMTP Received: from ilsoft.org (unknown [73.78.92.27]) by outbound1.eu.mailhop.org (Halon) with ESMTPSA id cb513b7a-fa36-11e7-8dac-d32f5c2d02ef; Mon, 15 Jan 2018 20:58:11 +0000 (UTC) Received: from rev (rev [172.22.42.240]) by ilsoft.org (8.15.2/8.15.2) with ESMTP id w0FKw6UA002197; Mon, 15 Jan 2018 13:58:06 -0700 (MST) (envelope-from ian@freebsd.org) Message-ID: <1516049886.11182.24.camel@freebsd.org> Subject: Re: Building kernel with no sound From: Ian Lepore To: Alexander Sieg , FreeBSD Current Date: Mon, 15 Jan 2018 13:58:06 -0700 In-Reply-To: <86tvvn2dlq.fsf@xanderio.de> References: <86tvvn2dlq.fsf@xanderio.de> Content-Type: text/plain; charset="ISO-8859-1" X-Mailer: Evolution 3.18.5.1 FreeBSD GNOME Team Port Mime-Version: 1.0 Content-Transfer-Encoding: 8bit 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 20:59:22 -0000 On Mon, 2018-01-15 at 19:14 +0100, Alexander Sieg wrote: > Hey, > i´m trying to build a custom kernel with no sound support build in. > > This is my make.conf: > MALLOC_PRODUCTION=true > KERNCONF=MYKERNEL #GENERIC-NODEBUG > DEVELOPER=yes > > 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´t 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. I think your nodevice list isn't quite complete.  Grepping for snd_ in i386 and amd64 GENERIC, I come up with this list:  snd_cmi      # CMedia CMI8338/CMI8738  snd_csa      # Crystal Semiconductor CS461x/428x  snd_emu10kx  # Creative SoundBlaster Live! and Audigy  snd_es137x   # Ensoniq AudioPCI ES137x  snd_hda      # Intel High Definition Audio  snd_ich      # Intel, NVidia and other ICH AC'97 Audio  snd_via8233  # VIA VT8233x Audio -- Ian