When I have build the package once, then the install section is executed. But now when I change the setting CONFIG_ENABLE_FOO and build again, then the install section is not executed again. This leaves the variable in zzz_setup unchanged.
How can I make the change to that zzz_setup script every time the package is build?
Not sure if that kind of sed action belongs to the install section at all.
To me it sounds more like prepare, configure or compile section stuff.
Additionally, have you declared a package build config dependency on that item in Makefile so that the build system noticed the need to rebuild after the change? Might be that the rebuild need goes unnoticed.