Breaking the Stage Barrier: A Novel Single-Stage Approach to Long Context Extension for Large Language Models