On the buildbots (and locally, too) the x86 builds currently fail. It's
visible that the Asterisk build system attempts to build menuselect a
second time, which fails because it follows the standard recipes in its
Makefiles. The first build of menuselect on the other hand only works
because the OpenWrt package sets up the build properly.
The second build attempt happens because the menuselect CFLAGS category
is setup to delete a stamp file when anything in it changes. On x86
-march=native is available, so the OpenWrt package disables that via
menuselect, hence this item in the category is changed and the stamp
file automatically removed. The missing stamp file triggers a rebuild of
menuselect (which is not required for OpenWrt's intents and purposes).
Another item in the CFLAGS category with which the package can have the
same issue is LOW_MEMORY, but that is not enabled (changed) by default.
Work around this problem by recreating the stamp file after the
menuselect calls.
Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
On the buildbots (and locally, too) the x86 builds currently fail. It's
visible that the Asterisk build system attempts to build menuselect a
second time, which fails because it follows the standard recipes in its
Makefiles. The first build of menuselect on the other hand only works
because the OpenWrt package sets up the build properly.
The second build attempt happens because the menuselect CFLAGS category
is setup to delete a stamp file when anything in it changes. On x86
-march=native is available, so the OpenWrt package disables that via
menuselect, hence this item in the category is changed and the stamp
file automatically removed. The missing stamp file triggers a rebuild of
menuselect (which is not required for OpenWrt's intents and purposes).
Another item in the CFLAGS category with which the package can have the
same issue is LOW_MEMORY, but that is not enabled (changed) by default.
Work around this problem by recreating the stamp file after the
menuselect calls.
Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
Currently the menuselect calls, for each category or item, step into a
directory and call menuselect once. So if all packages are build
menuselect will be called hundreds of times and as many directory
changes will be done.
Instead step into the directory only once, then generate the argument
string by iteratively adding to it and then call menuselect once. The
speedup is big.
Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
Currently the menuselect calls, for each category or item, step into a
directory and call menuselect once. So if all packages are build
menuselect will be called hundreds of times and as many directory
changes will be done.
Instead step into the directory only once, then generate the argument
string by iteratively adding to it and then call menuselect once. The
speedup is big.
Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
The way CONFIGURE_ARGS are done for srtp and pjproect does not take into
account that more than one package depends on them. This can result in
build failures. So add ifeqs to test properly if --with or --without is
required.
This commit also adds CONFIGURE_ARGS checks for:
alsa (asound)
portaudio
speex
speexdsp
Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
The way CONFIGURE_ARGS are done for srtp and pjproect does not take into
account that more than one package depends on them. This can result in
build failures. So add ifeqs to test properly if --with or --without is
required.
This commit also adds CONFIGURE_ARGS checks for:
alsa (asound)
portaudio
speex
speexdsp
Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
With libcap support Asterisk is able to set the TOS bits even when
dropping its privileges to a non-root user.
Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
With libcap support Asterisk is able to set the TOS bits even when
dropping its privileges to a non-root user.
Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
@kochstefan got the module to work on Asterisk 15. Update the Makefile
and include the new variant.
Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
The hack does not work on the buildbots. In the SDK the other packages'
Makefiles and patch directories aren't available, hence the hack fails.
Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
This adds a mechanism that disables all modules by default and then
enables only the modules needed for the packages selected, resulting in
less build time.
Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
This adds a mechanism that disables all modules by default and then
enables only the modules needed for the packages selected, resulting in
less build time.
Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
@kochstefan pointed out that asterisk 15 doesn't load any modules. It
turned out that this happens because of patch that was dropped. Add the
patch again.
Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
- remove some whitespaces
- install only the configuration example from the source instead of the
locally kept files (which are probably outdated anyway)
- add a comment explaining the iostream hack
- use proper install routine instead of "$(CP)"
Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
The package currently fails to build because librem headers cannot be
found. For reasons unknown baresip searches in SYSROOT instead of
SYSROOT_ALT for them. Fix this by patching the Makefile.
Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
Remove unneeded variables, whitespaces and trailing slashes, use
specific INSTALL directive instead of "$(CP)".
Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
Change from custom make call to using the default Build/Compile routine.
This applies the standard memory corruption mitigation methods, e.g.
FORTIFY_SOURCE and RELRO, to the package if they are enabled (default).
Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
Remove unneeded variables, dependencies, whitespaces and trailing
slashes, use specific INSTALL directive instead of "$(CP)".
Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
Change from custom make call to using the default Build/Compile routine.
This applies the standard memory corruption mitigation methods, e.g.
FORTIFY_SOURCE and RELRO, to the package if they are enabled (default).
Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
- bump to 1.4.2 (includes Asterisk 15 support)
- clean up the Makefile (whitespaces, remove some leftover defines that
are no longer needed etc.)
Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>