VirtualBox

Ignore:
Timestamp:
Feb 20, 2019 6:23:31 PM (6 years ago)
Author:
vboxsync
Message:

More linux kernel module Makefile cleanups: $(subst MOD_%, VBOXMOD_%,*)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/common/VBoxGuest/linux/Makefile

    r77398 r77399  
    3232include $(obj)/Makefile-header.gmk
    3333
    34 MOD_NAME = vboxguest
    35 
    36 MOD_OBJS = \
     34VBOXMOD_NAME = vboxguest
     35VBOXMOD_OBJS = \
    3736        VBoxGuest-linux.o \
    3837        VBoxGuest.o \
     
    118117        VBox/logbackdoor.o
    119118ifeq ($(BUILD_TARGET_ARCH),x86)
    120 MOD_OBJS += \
     119VBOXMOD_OBJS += \
    121120        common/math/gcc/divdi3.o \
    122121        common/math/gcc/moddi3.o \
     
    127126endif
    128127ifeq ($(BUILD_TARGET_ARCH),amd64)
    129 MOD_OBJS += common/alloc/heapsimple.o
     128VBOXMOD_OBJS += common/alloc/heapsimple.o
    130129endif
    131130
    132 MOD_DEFS = \
     131VBOXMOD_DEFS = \
    133132        VBOX \
    134133        RT_OS_LINUX \
     
    142141        VBOX_WITH_HGCM
    143142ifeq ($(BUILD_TARGET_ARCH),amd64)
    144 MOD_DEFS += VBOX_WITH_64_BITS_GUESTS
     143VBOXMOD_DEFS += VBOX_WITH_64_BITS_GUESTS
    145144endif
    146145ifeq ($(KERN_VERSION),24)
    147 MOD_DEFS += EXPORT_SYMTAB
     146VBOXMOD_DEFS += EXPORT_SYMTAB
    148147endif
    149148
    150 MOD_INCL  = -I$(VBOXGUEST_DIR) -I$(VBOXGUEST_DIR)include -I$(VBOXGUEST_DIR)r0drv/linux
     149VBOXMOD_INCL  = -I$(VBOXGUEST_DIR) -I$(VBOXGUEST_DIR)include -I$(VBOXGUEST_DIR)r0drv/linux
    151150
    152151ifeq ($(KERN_VERSION),24)
    153 MOD_CFLAGS =
     152VBOXMOD_CFLAGS =
    154153else
    155 MOD_CFLAGS = -Wno-declaration-after-statement -include $(VBOXGUEST_DIR)include/VBox/VBoxGuestMangling.h -fno-pie
     154VBOXMOD_CFLAGS = -Wno-declaration-after-statement -include $(VBOXGUEST_DIR)include/VBox/VBoxGuestMangling.h -fno-pie
    156155endif
    157156
    158 MOD_CLEAN = . linux r0drv generic r0drv/linux r0drv/generic VBox \
    159         common/alloc common/err common/log common/math/gcc common/misc \
    160         common/string common/table common/time
     157VBOXMOD_CLEAN = \
     158        . \
     159        linux \
     160        r0drv \
     161        generic \
     162        r0drv/linux \
     163        r0drv/generic \
     164        VBox \
     165        common/alloc \
     166        common/err \
     167        common/log \
     168        common/math/gcc \
     169        common/misc \
     170        common/string \
     171        common/table \
     172        common/time
    161173
    162174include $(obj)/Makefile-footer.gmk
    163175
    164 check: $(MOD_NAME)
     176check: $(VBOXMOD_NAME)
    165177        @if ! readelf -p __ksymtab_strings vboxguest.ko | grep -E "\[.*\]  *(RT|g_..*RT.*)"; then \
    166178            echo "All exported IPRT symbols are properly renamed!"; \
Note: See TracChangeset for help on using the changeset viewer.

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