diff options
author | Patrick Ohly <patrick.ohly@intel.com> | 2016-12-19 17:02:43 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2017-03-01 11:17:44 +0000 |
commit | e404935ca91ab1a73ff9683c92d1a232dd5e3d49 (patch) | |
tree | 689b8f1027c15b3c748529967d2d9bb14c9c8f15 /meta/recipes-core | |
parent | 5d30fc4996c5eaaff9aed6c1acd8f3f222f6f742 (diff) | |
download | poky-e404935ca91ab1a73ff9683c92d1a232dd5e3d49.tar.gz |
ovmf_git.bb: enable parallel compilation
The Fedora srpm [1] seems to have no problems with parallel
compilation, so let's also use that for the target. The native
tools however indeed have dependency problems:
| test_Ecc_CParser (CheckPythonSyntax.Tests) ... gcc -o ../bin/EfiRom -L/fast/build/ostro/x86/tmp-glibc/sysroots/x86_64-linux/usr/lib -L/fast/build/ostro/x86/tmp-glibc/sysroots/x86_64-linux/lib -Wl,-rpath-link,/fast/build/ostro/x86/tmp-glibc/sysroots/x86_64-linux/usr/lib -Wl,-rpath-link,/fast/build/ostro/x86/tmp-glibc/sysroots/x86_64-linux/lib -Wl,-rpath,/fast/build/ostro/x86/tmp-glibc/sysroots/x86_64-linux/usr/lib -Wl,-rpath,/fast/build/ostro/x86/tmp-glibc/sysroots/x86_64-linux/lib -Wl,-O1 EfiRom.o -L../libs -lCommon
| /usr/bin/ld: cannot find -lCommon
| collect2: error: ld returned 1 exit status
ERROR: Task (virtual:native:.../meta/recipes-core/ovmf/ovmf_git.bb:do_compile) failed with exit code '1'
[1] https://src.fedoraproject.org/cgit/rpms/edk2.git/tree/edk2.spec
(From OE-Core rev: be307609a067b7d23dc2cd8e39e3a35f770bebc7)
Signed-off-by: Patrick Ohly <patrick.ohly@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-core')
-rw-r--r-- | meta/recipes-core/ovmf/ovmf_git.bb | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/meta/recipes-core/ovmf/ovmf_git.bb b/meta/recipes-core/ovmf/ovmf_git.bb index 895ed6cfee..998902579f 100644 --- a/meta/recipes-core/ovmf/ovmf_git.bb +++ b/meta/recipes-core/ovmf/ovmf_git.bb | |||
@@ -14,7 +14,7 @@ SRCREV="4575a602ca6072ee9d04150b38bfb143cbff8588" | |||
14 | 14 | ||
15 | inherit deploy | 15 | inherit deploy |
16 | 16 | ||
17 | PARALLEL_MAKE = "" | 17 | PARALLEL_MAKE_class-native = "" |
18 | 18 | ||
19 | S = "${WORKDIR}/git" | 19 | S = "${WORKDIR}/git" |
20 | 20 | ||
@@ -94,6 +94,7 @@ do_compile_class-native() { | |||
94 | 94 | ||
95 | do_compile_class-target() { | 95 | do_compile_class-target() { |
96 | export LFLAGS="${LDFLAGS}" | 96 | export LFLAGS="${LDFLAGS}" |
97 | PARALLEL_JOBS="${@ '${PARALLEL_MAKE}'.replace('-j', '-n')}" | ||
97 | OVMF_ARCH="X64" | 98 | OVMF_ARCH="X64" |
98 | if [ "${TARGET_ARCH}" != "x86_64" ] ; then | 99 | if [ "${TARGET_ARCH}" != "x86_64" ] ; then |
99 | OVMF_ARCH="IA32" | 100 | OVMF_ARCH="IA32" |
@@ -111,7 +112,7 @@ do_compile_class-target() { | |||
111 | bbnote FIXED_GCCVER is ${FIXED_GCCVER} | 112 | bbnote FIXED_GCCVER is ${FIXED_GCCVER} |
112 | build_dir="${S}/Build/Ovmf$OVMF_DIR_SUFFIX/RELEASE_${FIXED_GCCVER}" | 113 | build_dir="${S}/Build/Ovmf$OVMF_DIR_SUFFIX/RELEASE_${FIXED_GCCVER}" |
113 | 114 | ||
114 | ${S}/OvmfPkg/build.sh -a $OVMF_ARCH -b RELEASE -t ${FIXED_GCCVER} | 115 | ${S}/OvmfPkg/build.sh $PARALLEL_JOBS -a $OVMF_ARCH -b RELEASE -t ${FIXED_GCCVER} |
115 | ln ${build_dir}/FV/OVMF.fd ${WORKDIR}/ovmf/ovmf.fd | 116 | ln ${build_dir}/FV/OVMF.fd ${WORKDIR}/ovmf/ovmf.fd |
116 | ln ${build_dir}/FV/OVMF_CODE.fd ${WORKDIR}/ovmf/ovmf.code.fd | 117 | ln ${build_dir}/FV/OVMF_CODE.fd ${WORKDIR}/ovmf/ovmf.code.fd |
117 | ln ${build_dir}/FV/OVMF_VARS.fd ${WORKDIR}/ovmf/ovmf.vars.fd | 118 | ln ${build_dir}/FV/OVMF_VARS.fd ${WORKDIR}/ovmf/ovmf.vars.fd |