If extra_script could read macros in sdkconfig of esp32?

I got a extra_scipt.py in my project, and I want to make different build depends the value int sdkconfig. If it’s possible? and how I can make it if it make sense

You can already react to the values in the sdkconfig in your firmware code by #include <sdkconfig.h> and doing compile-time #if CONFIG_..... = ... checks to produce differently-behaving firmwares.

Ah,got it.
thanks a lot.