a57932
build system: configure: support project-specific cfginit.sh and cfgfini.sh.
@@ -178,6 +178,11 @@ init_vars()
|
|
178
178
|
MAKEMODE="$mb_makemode"
|
179
179
|
fi
|
180
180
|
|
181
|
+
# project-specific initialization
|
182
|
+
if [ _$mb_use_custom_cfginit = _yes ]; then
|
183
|
+
. "$mb_project_dir/project/config/cfginit.sh"
|
184
|
+
fi
|
185
|
+
|
181
186
|
# package
|
182
187
|
if [ -z "$mb_package" ]; then
|
183
188
|
error_msg "$mb_script: incomplete information in $mb_config."
|
@@ -830,6 +835,15 @@ config_host()
|
|
830
835
|
}
|
831
836
|
|
832
837
|
|
838
|
+
config_fini()
|
839
|
+
{
|
840
|
+
# project-specific post-configuration steps
|
841
|
+
if [ _$mb_use_custom_cfgfini = _yes ]; then
|
842
|
+
. "$mb_project_dir/project/config/cfgfini.sh"
|
843
|
+
fi
|
844
|
+
}
|
845
|
+
|
846
|
+
|
833
847
|
config_status()
|
834
848
|
{
|
835
849
|
output_script_status ${mb_script} \
|
@@ -1240,6 +1254,7 @@ config_ccenv
|
|
1240
1254
|
config_custom
|
1241
1255
|
config_cfghost
|
1242
1256
|
config_host
|
1257
|
+
config_fini
|
1243
1258
|
config_status
|
1244
1259
|
|
1245
1260
|
|
@@ -134,6 +134,8 @@ disable_shared
|
|
134
134
|
disable_static
|
135
135
|
|
136
136
|
use_custom_cfgdefs
|
137
|
+
use_custom_cfginit
|
138
|
+
use_custom_cfgfini
|
137
139
|
use_custom_usrdefs
|
138
140
|
|
139
141
|
shared_lib_cmd
|