Hello,
This patch adds support to config.sub for the PhantomOS target, an operating system project which I am developing. In particular this adds support for two basic_os names: phantom-kernel (the target for building the kernel, and modules for the kernel), and phantom-user (which is the default and canonical userspace), as well as canonicalizing the name phantom into phantom-user.
It also adds a test to ensure that the target is parsed properly.
Output from make check (note: MAKEFLAGS=-j4 in environment):
cd testsuite && bash config-guess.sh && rm uname
cd testsuite && bash config-sub.sh
PASS: config.sub checks (847 tests)
PASS: config.sub idempotency checks (784 tests)
PASS: config.sub canonicalise each config.guess testcase (134 tests)
PASS: config.guess checks (134 tests)