Would it be possible to add support for generic AVR Chips, like atmega 162? Or do i have to use special versions from Sparkfun for reference while writing code for atmega168 and flash it with something different.
You can manually specify MCU type. See example platform-atmelavr/examples/native-blink at develop · platformio/platform-atmelavr · GitHub