1From 802d3cafa888b36aa72007d48232a010dbb0231d Mon Sep 17 00:00:00 2001
2From: Alexander Kanavin <alex@linutronix.de>
3Date: Wed, 27 Dec 2023 16:57:28 +0100
4Subject: [PATCH] UseLemon.cmake: do not use lemon data from the host
5
6We use native lemon, and not the host one, so
7the data should be taken from the source tree as well.
8
9Upstream-Status: Inappropriate [cross-specific]
10Signed-off-by: Alexander Kanavin <alex@linutronix.de>
11---
12 cmake/modules/UseLemon.cmake | 3 ++-
13 1 file changed, 2 insertions(+), 1 deletion(-)
14
15diff --git a/cmake/modules/UseLemon.cmake b/cmake/modules/UseLemon.cmake
16index fa4034e..83a7ca3 100644
17--- a/cmake/modules/UseLemon.cmake
18+++ b/cmake/modules/UseLemon.cmake
19@@ -13,11 +13,12 @@ if(LEMON_EXECUTABLE)
20 				${_out}.out
21 			COMMAND ${LEMON_EXECUTABLE}
22 				-l
23-				-T/usr/share/lemon/lempar.c
24+				-T${CMAKE_SOURCE_DIR}/tools/lemon/lempar.c
25 				-d.
26 				${_in}
27 			DEPENDS
28 				${_in}
29+				${CMAKE_SOURCE_DIR}/tools/lemon/lempar.c
30 		)
31 	endmacro()
32 	add_custom_target(lemon)
33