Patch "kbuild: re-order the code to not parse unnecessary variables" has been added to the 4.14-stable tree