I’ve just created new stage
branch of Espressif 8266 development version. It uses the latest Arduino Framework. See updated docs:
http://docs.platformio.org/en/latest/platforms/espressif8266.html#using-arduino-framework-with-staging-version
P.S: Please remove all “extra flags”, scripts and hooks. It should work with clean platformio.ini
.