[meta-networking,zeus] miniupnpd: Build config.h before full build

Submitted by Martin Jansa on Aug. 27, 2020, 5:05 p.m. | Patch ID: 175745

Details

Message ID 20200827170515.2751823-1-Martin.Jansa@gmail.com
State New
Delegated to: Armin Kuster
Headers show

Commit Message

Martin Jansa Aug. 27, 2020, 5:05 p.m.
From: Khem Raj <raj.khem@gmail.com>

This fixes a race condition e.g.

testminissdp.c:15:10: fatal error: config.h: No such file or directory
   15 | #include "config.h"
      |          ^~~~~~~~~~
compilation terminated.
<builtin>: recipe for target 'testminissdp.o' failed

Signed-off-by: Khem Raj <raj.khem@gmail.com>
---
 .../recipes-connectivity/miniupnpd/miniupnpd_2.1.20190630.bb     | 1 +
 1 file changed, 1 insertion(+)

Patch hide | download patch | download mbox

diff --git a/meta-networking/recipes-connectivity/miniupnpd/miniupnpd_2.1.20190630.bb b/meta-networking/recipes-connectivity/miniupnpd/miniupnpd_2.1.20190630.bb
index 6b8fdca4c3..e029266541 100644
--- a/meta-networking/recipes-connectivity/miniupnpd/miniupnpd_2.1.20190630.bb
+++ b/meta-networking/recipes-connectivity/miniupnpd/miniupnpd_2.1.20190630.bb
@@ -26,6 +26,7 @@  do_configure_prepend() {
 
 do_compile() {
     cd ${S}
+    CONFIG_OPTIONS="${IPV6} --leasefile --vendorcfg" oe_runmake -f Makefile.linux config.h
     CONFIG_OPTIONS="${IPV6} --leasefile --vendorcfg" oe_runmake -f Makefile.linux
 }