Skip to contentSkip to conversation

iscsi-initiator-utils: do not regenerate prom_lex.c

PATCH In review Joe Slater 2 participants 2 messages Jun 15, 2017 – Jun 16, 2017

lore
Share & tools
lore

Joe Slater

author
#0 lore raw

PATCH 1/1 iscsi-initiator-utils: do not regenerate prom_lex.c

prom_lex.c is provided in source. If we try to remake it from prom_lex.l, we will not find "lex" since it is not in recipe-sysroot-native. If we do manage to provide lex, the new source will not compile.

---
 .../iscsi-initiator-utils/iscsi-initiator-utils_2.0.874.bb              | 2 ++
 1 file changed, 2 insertions(+)
meta-networking/recipes-daemons/iscsi-initiator-utils/iscsi-initiator-utils_2.0.874.bb +2 -0
index 72a17b0..16ac199 100644
@@ -58,6 +58,8 @@ do_configure () {
 }
 
 do_compile () {
+    # Make sure we DO NOT regenerate prom_lex.c.
+    mv ${S}/utils/fwparam_ibft/prom_lex.l ${S}/utils/fwparam_ibft/prom_lex.l.unused
     oe_runmake -C ${S} ${EXTRA_OEMAKE} user
 }
 
Signature · 1 line
2.7.4
#1 lore raw
Quoted 4 lines · Joe Slater

prom_lex.c is provided in source. If we try to remake it from prom_lex.l, we will not find "lex" since it is not in recipe-sysroot-native. If we do manage to provide lex, the new source will not compile.

what is diff between new and old src

Quoted 20 lines
---
 .../iscsi-initiator-utils/iscsi-initiator-utils_2.0.874.bb              | 2 ++
 1 file changed, 2 insertions(+)
meta-networking/recipes-daemons/iscsi-initiator-utils/iscsi-initiator-utils_2.0.874.bb +2 -0
index 72a17b0..16ac199 100644
@@ -58,6 +58,8 @@ do_configure () {
 }
 
 do_compile () {
+    # Make sure we DO NOT regenerate prom_lex.c.
+    mv ${S}/utils/fwparam_ibft/prom_lex.l ${S}/utils/fwparam_ibft/prom_lex.l.unused
     oe_runmake -C ${S} ${EXTRA_OEMAKE} user
 }