Page MenuHomeFreeBSD

src.opts: Introduce MK_SOUND
ClosedPublic

Authored by christos on Fri, Jan 2, 4:21 PM.
Tags
None
Referenced Files
F141980117: D54456.id.diff
Wed, Jan 14, 11:37 AM
F141978655: D54456.id169513.diff
Wed, Jan 14, 11:18 AM
Unknown Object (File)
Tue, Jan 13, 4:59 AM
Unknown Object (File)
Mon, Jan 12, 12:36 AM
Unknown Object (File)
Sat, Jan 10, 3:18 AM
Unknown Object (File)
Mon, Jan 5, 7:33 PM
Unknown Object (File)
Sat, Jan 3, 3:44 AM
Unknown Object (File)
Sat, Jan 3, 1:47 AM

Details

Summary

PR: 291853
Sponsored by: The FreeBSD Foundation
MFC after: 1 week

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 69820
Build 66703: arc lint + arc unit

Event Timeline

christos retitled this revision from virtual_oss: Create MK_CUSE option to virtual_oss: Create MK_VOSS option.Fri, Jan 2, 4:22 PM

virtual_oss depends on cuse, is there a way to avoid building virtual_oss also if MK_CUSE is not set?

Why MK_VOSS and not MK_VIRTUAL_OSS? I also don't really understand the rationale... sound-related utilities are not needed on some platforms, ok, but why not have a more generic option that also lets you remove sndctl and mixer?

I think this option also needs to be listed in share/mk/src.opts.mk, and a description under tools/build/options for src.conf.5 generation.

virtual_oss depends on cuse, is there a way to avoid building virtual_oss also if MK_CUSE is not set?

I think the "right" way is to add some logic to share/mk/src.opts.mk to force-disable MK_VOSS if MK_CUSE is disabled.

Why MK_VOSS and not MK_VIRTUAL_OSS? I also don't really understand the rationale... sound-related utilities are not needed on some platforms, ok, but why not have a more generic option that also lets you remove sndctl and mixer?

This is an initial patch after a discussion in https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=291853

In my opinion, it'd make more sense to have a general MK_SOUND control that will either build or not build any sound utilities, including sndctl(8), mixer(3 & 8), beep(1). Initially I also opposed the idea of creating an option specific to virtual_oss. What do you think?

Regarding "why VOSS and not VIRTUAL_OSS", I did it to be consistent with libexec/rc/rc.d/Makefile, but I guess we could just change that to VIRTUAL_OSS as well.

Why MK_VOSS and not MK_VIRTUAL_OSS? I also don't really understand the rationale... sound-related utilities are not needed on some platforms, ok, but why not have a more generic option that also lets you remove sndctl and mixer?

This is an initial patch after a discussion in https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=291853

In my opinion, it'd make more sense to have a general MK_SOUND control that will either build or not build any sound utilities, including sndctl(8), mixer(3 & 8), beep(1). Initially I also opposed the idea of creating an option specific to virtual_oss. What do you think?

I think that makes more sense than having an option for just virtual_oss.

Regarding "why VOSS and not VIRTUAL_OSS", I did it to be consistent with libexec/rc/rc.d/Makefile, but I guess we could just change that to VIRTUAL_OSS as well.

That's just an internal name, private to the makefile.

christos retitled this revision from virtual_oss: Create MK_VOSS option to src.opts: Introduce MK_SOUND.Mon, Jan 12, 1:06 PM

Replace MK_VOSS with MK_SOUND after discussion with Mark.

This revision is now accepted and ready to land.Mon, Jan 12, 2:03 PM

Congratulations and thanks for this great solution! It's now 100% compatible with the "WITHOUT_MODULES sound" kernel build and install knob and covers the entire sound toolkit.

Congratulations and thanks for this great solution! It's now 100% compatible with the "WITHOUT_MODULES sound" kernel build and install knob and covers the entire sound toolkit.

Glad to hear :)

This revision was automatically updated to reflect the committed changes.

This needs a description for WITHOUT_SOUND in tools/build/options