Points to both lazbuild and a custom solution in the wiki.
I don't know about OPM packages though.
Yes, it points to lazbuild but that's not working because lazbuild takes the packages.inc or something else to recreate the lazarus.exe.
I don't have a config (so also no packages.xml or staticpackages.inc) after I do a make bigide.
The following will result in a lazarus.exe which
lost all default packages.
I can't get the step with lazbuild working without first starting lazarus and letting the config files create.
%MAKE% bigide REVINC=force REVSTR=%laz_revision% %TARGET_OS% %OPTIONS_LAZ%
cd ..
echo --primary-config-path=%cd%\config > lazarus\lazarus.cfg
if not exist config\nul md config
lazarus\lazbuild --pcp="%cd%\config" --lazarusdir="%cd%\lazarus" --add-package-link %cd%\extras\richmemo\richmemopackage.lpk
lazarus\lazbuild --pcp="%cd%\config" --lazarusdir="%cd%\lazarus" --build-ide="-dKeepInstalledPackages -g -gl -O2 -Xs -CX -XX" --build-mode= --language=en
Is there a command line program for creating the config files before running lazbuild?
Does anyone have a script that does something similar (including adding packages in one go).
I know fpcupdeluxe does a lot with creating the config files itself but I would like to avoid that.
Here a github page from someone who uses docker to crosscompile projects.
That is not the answer to your question but he is also adding packages through the command-line.
Maybe there are some tips that could help.
https://github.com/ChrisWiGit/lazarus-docker
Thanks, I'll take a look. But I already saw it didn't use make bigide.
So you would need to add all the packages yourself with lazbuild.
# # add here additional libraries to be used
I always ended up missing sqldb in my build.
I'll see if I can add them all myself with lazbuild.