Building a legacy kernel requires a Linux-based environment (Ubuntu 14.04 or 16.04 is often preferred for compatibility with older toolchains).