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 authored and Armin Kuster committed 2017-07-17 11:17:47 -07:00
1 parent 55d9648664
commit b16e4010e3
2 files changed
+26 -3

No files matched your search

@@ -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" LIC_FILES_CHKSUM = "file://COPYING;md5=073dc31ccb2ebed70db54f1e8aeb4c33"
DEPENDS = "rpm indent-native" 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" SRCREV = "428974c2d0d8e75a2750a3ab0488708c5dfdd8e3"
S = "${WORKDIR}/git" S = "${WORKDIR}/git"
EXTRA_OE_CONF = "--enable-vt" EXTRA_OE_CONF = "--enable-vt"
inherit autotools-brokensep inherit autotools-brokensep
PARALLEL_MAKE = ""