diff options
Diffstat (limited to 'meta-networking/recipes-protocols/freediameter/files/0001-bison-flex-Add-flags-for-carrying-user-specified-par.patch')
| -rw-r--r-- | meta-networking/recipes-protocols/freediameter/files/0001-bison-flex-Add-flags-for-carrying-user-specified-par.patch | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/meta-networking/recipes-protocols/freediameter/files/0001-bison-flex-Add-flags-for-carrying-user-specified-par.patch b/meta-networking/recipes-protocols/freediameter/files/0001-bison-flex-Add-flags-for-carrying-user-specified-par.patch new file mode 100644 index 0000000000..98ba4d5283 --- /dev/null +++ b/meta-networking/recipes-protocols/freediameter/files/0001-bison-flex-Add-flags-for-carrying-user-specified-par.patch | |||
| @@ -0,0 +1,39 @@ | |||
| 1 | From fa6227d92725af5ae17b8435c0d50d92ff7a575c Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Khem Raj <raj.khem@gmail.com> | ||
| 3 | Date: Wed, 14 Aug 2024 19:32:25 -0700 | ||
| 4 | Subject: [PATCH] bison/flex: Add flags for carrying user specified parameters | ||
| 5 | |||
| 6 | This helps in passing cmdline to flex and bison e.g. to remove lines | ||
| 7 | from generated output to avoid absolute paths | ||
| 8 | |||
| 9 | Upstream-Status: Pending | ||
| 10 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
| 11 | --- | ||
| 12 | cmake/Modules/CMakeUserUseBison.cmake | 1 + | ||
| 13 | cmake/Modules/CMakeUserUseFlex.cmake | 1 + | ||
| 14 | 2 files changed, 2 insertions(+) | ||
| 15 | |||
| 16 | diff --git a/cmake/Modules/CMakeUserUseBison.cmake b/cmake/Modules/CMakeUserUseBison.cmake | ||
| 17 | index 9257545..b61bd0e 100644 | ||
| 18 | --- a/cmake/Modules/CMakeUserUseBison.cmake | ||
| 19 | +++ b/cmake/Modules/CMakeUserUseBison.cmake | ||
| 20 | @@ -52,6 +52,7 @@ IF(BISON_EXECUTABLE) | ||
| 21 | OUTPUT "${OUTFILE}" "${HEADER}" | ||
| 22 | COMMAND "${BISON_EXECUTABLE}" | ||
| 23 | ARGS "--name-prefix=${PREFIX}" | ||
| 24 | + "${BISON_TARGET_ARG_COMPILE_FLAGS}" | ||
| 25 | "--defines" | ||
| 26 | "--output-file=${OUTFILE}" | ||
| 27 | "${CMAKE_CURRENT_SOURCE_DIR}/${FILENAME}" | ||
| 28 | diff --git a/cmake/Modules/CMakeUserUseFlex.cmake b/cmake/Modules/CMakeUserUseFlex.cmake | ||
| 29 | index 7d0394f..1221dca 100644 | ||
| 30 | --- a/cmake/Modules/CMakeUserUseFlex.cmake | ||
| 31 | +++ b/cmake/Modules/CMakeUserUseFlex.cmake | ||
| 32 | @@ -39,6 +39,7 @@ IF(FLEX_EXECUTABLE) | ||
| 33 | OUTPUT "${OUTFILE}" | ||
| 34 | COMMAND "${FLEX_EXECUTABLE}" | ||
| 35 | ARGS "-P${PREFIX}" | ||
| 36 | + "${FLEX_TARGET_ARG_COMPILE_FLAGS}" | ||
| 37 | "-o${OUTFILE}" | ||
| 38 | "${CMAKE_CURRENT_SOURCE_DIR}/${FILENAME}" | ||
| 39 | DEPENDS "${CMAKE_CURRENT_SOURCE_DIR}/${FILENAME}") | ||
