mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-05 16:37:50 +00:00
greybus: makefile: use POSIX functions for kernel cmp
[[, == and echo -e are bash/zsh-ism and not POSIX, so when using a POSIX shell the kernel_cmp can issue some warnings and not work properly. Use only POSIX operators for kernel version compare. Signed-off-by: Rui Miguel Silva <rui.silva@linaro.org> Tested-by: Viresh Kumar <viresh.kumar@linaro.org> Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
This commit is contained in:
parent
2870b52bae
commit
1ab2e8918d
1 changed files with 1 additions and 1 deletions
|
@ -61,7 +61,7 @@ ifneq ($(KERNELRELEASE),)
|
||||||
# This function returns the argument version if current kernel version is minor
|
# This function returns the argument version if current kernel version is minor
|
||||||
# than the passed version, return 1 if equal or the current kernel version if it
|
# than the passed version, return 1 if equal or the current kernel version if it
|
||||||
# is greater than argument version.
|
# is greater than argument version.
|
||||||
kvers_cmp=$(shell [[ "$(KERNELVERSION)" == "$(1)" ]] && echo 1 || echo -e "$(1)\n$(KERNELVERSION)" | sort -V | tail -1)
|
kvers_cmp=$(shell [ "$(KERNELVERSION)" = "$(1)" ] && echo 1 || printf "$(1)\n$(KERNELVERSION)" | sort -V | tail -1)
|
||||||
|
|
||||||
ifneq ($(call kvers_cmp,"3.19.0"),3.19.0)
|
ifneq ($(call kvers_cmp,"3.19.0"),3.19.0)
|
||||||
CONFIG_OPTIONS_ENABLE += LEDS_CLASS_FLASH
|
CONFIG_OPTIONS_ENABLE += LEDS_CLASS_FLASH
|
||||||
|
|
Loading…
Reference in a new issue