linux-yocto/scripts/genksyms/Makefile
Masahiro Yamada a95298656c genksyms: remove Makefile hack
This workaround was introduced for suppressing the reduce/reduce conflict
warnings because the %expect-rr directive, which is applicable only to GLR
parsers, cannot be used for genksyms.

Since there are no longer any conflicts, this Makefile hack is now
unnecessary.

Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Acked-by: Nicolas Schier <n.schier@avm.de>
2025-01-18 09:11:46 +09:00

359 B

SPDX-License-Identifier: GPL-2.0

hostprogs-always-y += genksyms

genksyms-objs := genksyms.o parse.tab.o lex.lex.o

-I needed for generated C source to include headers in source tree

HOSTCFLAGS_parse.tab.o := -I $(src) HOSTCFLAGS_lex.lex.o := -I $(src)

dependencies on generated files need to be listed explicitly

$(obj)/lex.lex.o: $(obj)/parse.tab.h