kernel/tools/perf/util/Build
.. .. @@ -253,6 +253,12 @@ 253 253 else 254 254 bison_flags += -w 255 255 endif 256 +257 +BISON_LT_381 := $(shell expr $(shell $(BISON) --version | grep bison | sed -e 's/.\+ \([0-9]\+\).\([0-9]\+\).\([0-9]\+\)/\1\2\3/g') \< 381)258 +ifeq ($(BISON_LT_381),1)259 + bison_flags += -DYYNOMEM=YYABORT260 +endif261 +256 262 CFLAGS_parse-events-bison.o += $(bison_flags) 257 263 CFLAGS_pmu-bison.o += -DYYLTYPE_IS_TRIVIAL=0 $(bison_flags) 258 264 CFLAGS_expr-bison.o += -DYYLTYPE_IS_TRIVIAL=0 $(bison_flags)