The script would not work for gentoo as written. It relies on
"lsb_release -si" returning either "Debian" or "Ubuntu". I have been
making progress on making it more general but it is very difficult even
to write a script that works from one release of debian to the next or
from one release of ubuntu to the next. For example, when you download
the kernel source package, it creates a subdirectory of your current
working directory. That directory name is not the same from release to
release, and in fact, I've found that the pattern for the name of that
subdirectory isn't consistent from one release to the next. I had code
to determine the subdir name based on the output from uname but it
didn't work when I upgraded my PC. I figured out a way around that. But
another problem is that the patch itself is very specific to a
particular kernel version.
I see that gentoo compiles all of it's packages on your computer. All
you would need to do is hack the code yourself before it compiles the
kernel. You need to edit the file drivers/staging/serialio.c in the
kernel source tree. Find a line that issues a warning saying "Unable to
allocate port at" and comment out the return statement after that
warning. My patch files also change that warning to say "continuing
anyway". That makes it easier to see what is happening in the system
logs. My kernel build script also adds the string "+spk" to the kernel
version to make it easier for you to tell which kernel you are running
via the uname command. I have no idea how to do that in gentoo.
On 08/10/2016 08:21 PM, Jude DaShiell wrote:
Will this script work for gentoo? That distro seriously needs a good
script to do something like this.
On Wed, 10 Aug 2016, John G Heim wrote:
Date: Wed, 10 Aug 2016 11:51:32
From: John G Heim <jheim@xxxxxxxxxxxxx>
To: Speakup is a screen review system for Linux.
<speakup@xxxxxxxxxxxxxxxxx>
Subject: make-speakup-kernel
I posted an updated version of the script I use to build the kernel
hacked to support serial hardware synths. This script does everything
necessary to build a kernel for either debian or ubuntu. Even if you
don't want to use the script, it might be educational for learning to
build the kernel yourself. To download the script:
wget http://www.iavit.org/~john/Debian/make-speakup-kernel
--
--
John G. Heim; jheim@xxxxxxxxxxxxx; sip://jheim@xxxxxxxxxxxxxxxx
_______________________________________________
Speakup mailing list
Speakup@xxxxxxxxxxxxxxxxx
http://linux-speakup.org/cgi-bin/mailman/listinfo/speakup