How to build, like imagebuilder - request for help

How can I integrate files or disable services like with imagebuilder, with the main build ? (and without imagebuilder)...

How can I automate/scriptly build a release, like with imagebuilder, with specifiying an device image profile ?

Thanks...

https://openwrt.org/docs/guide-user/additional-software/imagebuilder

Thanks, I already have tested imagebuilder with success...
What I need and search is to use the same flags, but with the main build from trunk !
It looks like it do not work...
May be it is not possible, but make the custom build very complex and longer...

https://openwrt.org/docs/guide-developer/build-system/use-buildsystem

they are two different things...

you can make an imagebuilder from within your buildroot then use that...