[virtual/kernel] Build g_serial as a module