Migrate Build System to ESP-IDF 5.0

Please follow the build system guide for migrating make-based projects no longer supported in ESP-IDF v5.0.