Automating “make Menuselect” Options When Building
Hi,
I realise that this is not really specific to Asterisk, but this seems as sensible a place to ask as any.
If I want to create a script to automate the build of my chosen Asterisk setup, what’s the best way to automate my selections that I
did interactively when I ran “make menuselect” ?
I think doing that created a makeopts file somewhere. If I were to just copy in the makeopts file I created from a build on another machine, is there a process that can check that to ensure that everything selected in that can be built, or is doing “make” and seeing whether that worked the only way?
Cheers, Kingsley.
—
7 thoughts on - Automating “make Menuselect” Options When Building
There is a programmatic way of controlling menuselect for this usage[1][2][3] without sharing makeopts file.
[1]
https://wiki.asterisk.org/wiki/display/AST/Using+Menuselect+to+Select+Asterisk+Options#UsingMenuselecttoSelectAsteriskOptions-ControllingMenuselect
[2]
https://www.asterisk.org/configuring-an-asterisk-build-from-the-command-line/
[3]
https://www.asterisk.org/configuring-an-asterisk-build-from-the-command-line-part-2/
make menuselect.makeopts menuselect/menuselect –enable codec_opus –enable codec_silk –enable codec_siren7–enable codec_siren14 menuselect.makeopts
Docs are here:
https://wiki.asterisk.org/wiki/display/AST/Using+Menuselect+to+Select+Asterisk+Options#UsingMenuselecttoSelectAsteriskOptions-ControllingMenuselect
—
Telecomunicaciones Abiertas de México S.A. de C.V. Carlos Chávez
+52 (55)8116-9161
—
Excellent, thanks.
—
Cheers, Kingsley.
—
Hi,
I think I’m misunderstanding how this works. I thought that when I used menuselect/menuselect that it would write my change into the menuselect.makeopts file, but that doesn’t seem to be happening here:
root@gw9:/usr/src/asterisk-18.7.1# menuselect/menuselect –list-category MENUSELECT_ADDONS
+ chan_mobile
– chan_ooh323
– format_mp3
– res_config_mysql
– app_mysql
– cdr_mysql
root@gw9:/usr/src/asterisk-18.7.1# menuselect/menuselect –enable format_mp3 menuselect.makeopts root@gw9:/usr/src/asterisk-18.7.1# menuselect/menuselect –list-category MENUSELECT_ADDONS
+ chan_mobile
– chan_ooh323
– format_mp3
– res_config_mysql
– app_mysql
– cdr_mysql
I expected to see a “+” next to format_mp3 on the second listing.
What I also don’t understand is the difference between the listings above and the one I get when I specify the makeopts file, which doesn’t have chan_mobile selected:
root@gw9:/usr/src/asterisk-18.7.1# menuselect/menuselect –list-category MENUSELECT_ADDONS menuselect.makeopts
– chan_mobile
– chan_ooh323
– format_mp3
– res_config_mysql
– app_mysql
– cdr_mysql
—
Cheers, Kingsley.
—
Excellent, thanks.
—
Cheers, Kingsley.
—
Hi,
I think I’m misunderstanding how this works. I thought that when I used menuselect/menuselect that it would write my change into the menuselect.makeopts file, but that doesn’t seem to be happening here:
root@gw9:/usr/src/asterisk-18.7.1# menuselect/menuselect –list-category MENUSELECT_ADDONS
+ chan_mobile
– chan_ooh323
– format_mp3
– res_config_mysql
– app_mysql
– cdr_mysql
root@gw9:/usr/src/asterisk-18.7.1# menuselect/menuselect –enable format_mp3 menuselect.makeopts root@gw9:/usr/src/asterisk-18.7.1# menuselect/menuselect –list-category MENUSELECT_ADDONS
+ chan_mobile
– chan_ooh323
– format_mp3
– res_config_mysql
– app_mysql
– cdr_mysql
I expected to see a “+” next to format_mp3 on the second listing.
What I also don’t understand is the difference between the listings above and the one I get when I specify the makeopts file, which doesn’t have chan_mobile selected:
root@gw9:/usr/src/asterisk-18.7.1# menuselect/menuselect –list-category MENUSELECT_ADDONS menuselect.makeopts
– chan_mobile
– chan_ooh323
– format_mp3
– res_config_mysql
– app_mysql
– cdr_mysql
—
Cheers, Kingsley.
—
https://wiki.asterisk.org/wiki/display/AST/Using+Menuselect+to+Select+Asterisk+Options#UsingMenuselecttoSelectAsteriskOptions-ControllingMenuselect
testing (my previous replies haven’t made it to the list).
Cheers, Kingsley.
—