-
-
Notifications
You must be signed in to change notification settings - Fork 175
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
more details about build configs #344
base: master
Are you sure you want to change the base?
Conversation
@@ -42,8 +42,10 @@ Make sure that full path to the build script **does not contain spaces**. | |||
|
|||
## Providing build configuration | |||
|
|||
After the first run of `compile.sh` a new configuration file `config-example.conf` and symlink `config-default.conf` will be created. | |||
You may edit it to your needs or create different configuration files using it as a template. | |||
After the first run of `compile.sh` a new configuration file `config-example.conf` and symlink `config-default.conf` will be created in `userpatches`. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is not real. No examples, symlinks, or anything like should be created by the build system, and if they are, it's a bug.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This was MO with old system, so this info is deprecated.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I just ever saw it cos the PR touched it ;-)
After the first run of `compile.sh` a new configuration file `config-example.conf` and symlink `config-default.conf` will be created. | ||
You may edit it to your needs or create different configuration files using it as a template. | ||
After the first run of `compile.sh` a new configuration file `config-example.conf` and symlink `config-default.conf` will be created in `userpatches`. | ||
You may edit it to your needs or create different configuration files using it as a template. To start a build with a specific configuration file, e.g. for `config-foo.conf`: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Configurations are supported but one needs to make it on their own. Its just a collection of parameters.
This should be reworked, previous statement removed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A configuration file named userpatches/config-<something>.conf.sh
(.conf
also allowed) is a bash script that is sourced during the build if you use ./compile.sh something
. You can use it to pass the parameters you'd normally pass on the command line (PARAM1=value1 PARAM2=value
) by using the same syntax, but put each PARAM on a separate line. Command-line parameters still are able to override what is the config file. More advanced use cases can use conditionals, define functions to implement hooks, source other/common config files, etc. A few quite complex examples can be found in https://github.com/lanefu/armbian-userpatches-example-indiedroid-nova
No description provided.