kamailio-5.x: amend mips2 tweak

Commit f84dda74e6 ("kamailio-5.x: enable
FAST_LOCK for MIPS") turned out to be problematic, because it changed
the ARCH to "mips2" not only for "mips", but also for some "mipsel"
targets, which was unintentional.

Address this by filtering for "mips" specifically before setting the
variable.

Also, get rid of PKG_BUILD_PARALLEL, because adding it really didn't
change anything - due to the way "make" is called. Leave a comment to
prevent repetition (read: prevent _me_ from doing the same mistake again
in the future).

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
This commit is contained in:
Sebastian Kemper 2018-11-05 21:57:47 +01:00
parent ebaa99518a
commit eef0679cb4

View file

@ -21,7 +21,8 @@ PKG_LICENSE:=GPL-2.0+
PKG_LICENSE_FILES:=COPYING PKG_LICENSE_FILES:=COPYING
PKG_MAINTAINER:=Jiri Slachta <jiri@slachta.eu> PKG_MAINTAINER:=Jiri Slachta <jiri@slachta.eu>
PKG_BUILD_PARALLEL:=1 # Defining PKG_BUILD_PARALLEL to 1 would be a noop due to the way we call make
#PKG_BUILD_PARALLEL:=1
MODULES_AVAILABLE:= \ MODULES_AVAILABLE:= \
acc \ acc \
@ -379,7 +380,9 @@ EXTRA_MODULES:= \
# #
# When CONFIG_CPU_TYPE matches one of the identifiers in the list below, set # When CONFIG_CPU_TYPE matches one of the identifiers in the list below, set
# ARCH to "mips2" to get FAST_LOCK support. # ARCH to "mips2" to get FAST_LOCK support.
ifeq ($(call qstrip,$(CONFIG_ARCH)),mips)
CPU_MIPS2:=mips32 24kc 34kc 74kc CPU_MIPS2:=mips32 24kc 34kc 74kc
endif
PKG_MAKE_ARGS:= \ PKG_MAKE_ARGS:= \
prefix=/ \ prefix=/ \