summaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-support/vboxguestdrivers
diff options
context:
space:
mode:
authorMartin Jansa <Martin.Jansa@gmail.com>2017-03-29 10:38:35 +0200
committerMartin Jansa <Martin.Jansa@gmail.com>2017-03-31 13:26:05 +0200
commita9715573c0e5946a35beaa1b928d9ea95bc3833d (patch)
tree580e50a49ddd2a70ea6f6b2aceedbd781f5440f8 /meta-oe/recipes-support/vboxguestdrivers
parent2c4b17449d0178e830bedcbe3e2fbe348984b589 (diff)
downloadmeta-openembedded-a9715573c0e5946a35beaa1b928d9ea95bc3833d.tar.gz
vboxguestdrivers: make sure that do_compile fails when some module failed to build
* otherwise we get the failure from do_install with useless log: DEBUG: Executing shell function do_install install: cannot stat 'vboxsf.ko': No such file or directory WARNING: exit code 1 from a shell command. * instead of the real issue like 5.1.14 currently has with default linux-yocto version: CC [M] qemux86-oe-linux/vboxguestdrivers/5.1.14-r0/vbox_module/vboxsf/lnkops.o qemux86-oe-linux/vboxguestdrivers/5.1.14-r0/vbox_module/vboxsf/lnkops.c:93:23: error: 'generic_readlink' undeclared here (not in a function) .readlink = generic_readlink, ^~~~~~~~~~~~~~~~ Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Diffstat (limited to 'meta-oe/recipes-support/vboxguestdrivers')
-rw-r--r--meta-oe/recipes-support/vboxguestdrivers/vboxguestdrivers_4.3.36.bb4
-rw-r--r--meta-oe/recipes-support/vboxguestdrivers/vboxguestdrivers_5.1.14.bb4
2 files changed, 8 insertions, 0 deletions
diff --git a/meta-oe/recipes-support/vboxguestdrivers/vboxguestdrivers_4.3.36.bb b/meta-oe/recipes-support/vboxguestdrivers/vboxguestdrivers_4.3.36.bb
index f8a24a508..0c08d97f8 100644
--- a/meta-oe/recipes-support/vboxguestdrivers/vboxguestdrivers_4.3.36.bb
+++ b/meta-oe/recipes-support/vboxguestdrivers/vboxguestdrivers_4.3.36.bb
@@ -41,6 +41,10 @@ do_export_sources() {
41# compile and install mount utility 41# compile and install mount utility
42do_compile_append() { 42do_compile_append() {
43 oe_runmake 'LD=${CC}' 'LDFLAGS=${LDFLAGS}' -C ${S}/utils 43 oe_runmake 'LD=${CC}' 'LDFLAGS=${LDFLAGS}' -C ${S}/utils
44 if ! [ -e vboxguest.ko -a -e vboxsf.ko -a -e vboxvideo.ko ] ; then
45 echo "ERROR: One of vbox*.ko modules wasn't built"
46 exit 1
47 fi
44} 48}
45 49
46module_do_install() { 50module_do_install() {
diff --git a/meta-oe/recipes-support/vboxguestdrivers/vboxguestdrivers_5.1.14.bb b/meta-oe/recipes-support/vboxguestdrivers/vboxguestdrivers_5.1.14.bb
index dde5b0b20..c27791e95 100644
--- a/meta-oe/recipes-support/vboxguestdrivers/vboxguestdrivers_5.1.14.bb
+++ b/meta-oe/recipes-support/vboxguestdrivers/vboxguestdrivers_5.1.14.bb
@@ -41,6 +41,10 @@ do_export_sources() {
41# compile and install mount utility 41# compile and install mount utility
42do_compile_append() { 42do_compile_append() {
43 oe_runmake 'LD=${CC}' 'LDFLAGS=${LDFLAGS}' -C ${S}/utils 43 oe_runmake 'LD=${CC}' 'LDFLAGS=${LDFLAGS}' -C ${S}/utils
44 if ! [ -e vboxguest.ko -a -e vboxsf.ko -a -e vboxvideo.ko ] ; then
45 echo "ERROR: One of vbox*.ko modules wasn't built"
46 exit 1
47 fi
44} 48}
45 49
46module_do_install() { 50module_do_install() {