umip: fix for parallel compilation

Add missing dependency in Makefile to fix the
parallel compile issue and re-enable PARALLEL_MAKE

Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
This commit is contained in:
Jackie Huang
2017-06-02 16:04:56 +08:00
committed by Armin Kuster
parent 55d9648664
commit b16e4010e3
2 changed files with 26 additions and 3 deletions
@@ -0,0 +1,23 @@
When "make -j10", the compilation will fail,
because scan.c has included gram.h, but gram.h was produced
after scan.c was compiled
So add this dependency to ensure that gram.h is produced
before scan.c is produced.
Upstream-Status: Inappropriate [upstream is not active]
Signed-off-by: Roy.Li <RongQing.Li@windriver.com>
Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
---
src/Makefile.am | 2 ++
1 file changed, 2 insertions(+)
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -81,3 +81,5 @@ CLEANFILES = gram.c gram.h \
DISTCLEANFILES = $(BUILT_SOURCES)
MAINTAINERCLEANFILES = Makefile.in
+
+scan.c: gram.h
@@ -9,12 +9,12 @@ LICENSE = "GPLv2"
LIC_FILES_CHKSUM = "file://COPYING;md5=073dc31ccb2ebed70db54f1e8aeb4c33"
DEPENDS = "rpm indent-native"
SRC_URI = "git://git.umip.org/umip.git"
SRC_URI = "git://git.umip.org/umip.git \
file://add-dependency-to-support-parallel-compilation.patch \
"
SRCREV = "428974c2d0d8e75a2750a3ab0488708c5dfdd8e3"
S = "${WORKDIR}/git"
EXTRA_OE_CONF = "--enable-vt"
inherit autotools-brokensep
PARALLEL_MAKE = ""