VirtualBox

Changeset 70161 in vbox for trunk/src/VBox/Additions/linux


Ignore:
Timestamp:
Dec 15, 2017 5:03:56 PM (7 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
119723
Message:

Linux drivers: check for unresolved symbols at build time.
bugref:4567: Linux kernel driver maintenance
This change breaks the build if test builds of Linux kernel drivers contain
unresolved symbols. It saves the symbols produced during the vboxdrv and
vboxguest builds and makes them available during the host modules and
vboxsf builds respectively to prevent the IPRT symbols from coming up as
missing. It is not particularly elegant, in particular it uses the tst*.run
test build targets for saving symbols, but seems to do the job.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/linux/Makefile.kmk

    r70084 r70161  
    364364 && "$(KBUILD_HOST_ARCH)" == "$(KBUILD_TARGET_ARCH)"
    365365 ifneq ($(KERN_DIR),)
    366   $(foreach module, vboxsf-src vboxvideo-src, $(evalcall2 VBOX_LINUX_GENERATE_KMOD_TEST))
     366  use_symvers = vboxguest-src
     367  module      = vboxsf-src
     368  $(evalcall2 VBOX_LINUX_GENERATE_KMOD_TEST)
     369  use_symvers =
     370  module      = vboxvideo-src
     371  $(evalcall2 VBOX_LINUX_GENERATE_KMOD_TEST)
    367372 endif
    368373endif
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette