Ideally in Lazarus | Project | Project options | Compiler options | Config and Target I see a -Cp option lx7 etc.
There is already compiler support for the following xtensa esp32 series: S2 & S3. Also the RISC-V series C2, C3, C6.
The newer controllers are not yet added to the
define template of Lazarus, but can be specified with the -Wp parameter in the project's Custom Options tab in Lazarus. If I get time today I will update this and create a merge request.
What can I expect from https://github.com/michael-ring/espsdk4fpc/tree/devel? and how to use it?
This repository consists of scripts used to automate the building and packaging of SDK libraries and binutils ready for distribution with fpcupdeluxe (or just for use with FPC). Although the idea would be to support the latest SDK, the time required to test new releases is significant. This branch was used to test the build process for the newer esp32 variants, so should be usable.
To test, check out the devel branch, the run the build.sh script. If successful it should create a couple of zip files with libraries and binary files for different targets. These can be copied into the corresponding folders created by fpcupdeluxe for testing (although the folder structure may change, but I think you probably are starting to figure out how to adjust this).
This is probably too cryptic to get everything working, but please ask if you get stuck.