Converting a Makefile Project into a PlatformIO Project

Hello, I am trying to convert a Project to send RAW Packages into a PlatformIO usable projekt. However there are some difficulties from converting the Original Projekt: GitHub - ernacktob/esp8266_wifi_raw: ESP8266 wifi packet injection and receiving experiment into the platformio syntax.

Basicly what I am missing is the possibility to link modifies libraries into the Project.

I’ve not come very far yet, this is my current state:

[env:d1_mini]
platform = espressif8266
board = d1_mini
build_flags = -I ./include  -Os -g -O2 -Wpointer-arith -Wundef -Werror -Wl,-EL -fno-inline-functions -nostdlib -mlongcalls -mtext-section-literals  -D__ets__ -DICACHE_FLASH

When I replace the libraries directly in the packages folder, I get linker errors.

Are there any more experienced Makefile / ProjectIO specialists out there who would like to help me :blush:

Please take a look at PlatformIO Advanced Scripting.