VirtualBox

Changeset 77399 in vbox for trunk/src/VBox/Additions


Ignore:
Timestamp:
Feb 20, 2019 6:23:31 PM (6 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
128953
Message:

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

Location:
trunk/src/VBox/Additions
Files:
2 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!"; \
  • trunk/src/VBox/Additions/linux/sharedfolders/Makefile.module

    r77398 r77399  
    2525include $(obj)/Makefile-header.gmk
    2626
    27 MOD_NAME = vboxsf
    28 MOD_OBJS = \
     27VBOXMOD_NAME = vboxsf
     28VBOXMOD_OBJS = \
    2929        vfsmod.o \
    3030        dirops.o \
     
    4040        VBoxGuestR0LibSharedFolders.o
    4141ifeq ($(BUILD_TARGET_ARCH),x86)
    42 MOD_OBJS += \
     42VBOXMOD_OBJS += \
    4343        divdi3.o \
    4444        moddi3.o \
     
    4848        qdivrem.o
    4949endif
    50 MOD_INCL = \
     50VBOXMOD_INCL = \
    5151        -I$(VBOXSF_DIR) \
    5252        -I$(VBOXSF_DIR)include \
    5353        -I$(VBOXSF_DIR)r0drv/linux
    54 MOD_DEFS = \
     54VBOXMOD_DEFS = \
    5555        RT_OS_LINUX \
    5656        IN_RING0 \
     
    6464        RT_NO_EXPORT_SYMBOL
    6565ifeq ($(BUILD_TARGET_ARCH),amd64)
    66 MOD_DEFS += VBOX_WITH_64_BITS_GUESTS
     66VBOXMOD_DEFS += VBOX_WITH_64_BITS_GUESTS
    6767endif
    6868ifeq ($(KERN_VERSION),24)
    69 MOD_CFLAGS =
     69VBOXMOD_CFLAGS =
    7070else
    71 MOD_CFLAGS = -Wno-declaration-after-statement -fshort-wchar -include $(VBOXSF_DIR)/include/VBox/VBoxGuestMangling.h -fno-pie
     71VBOXMOD_CFLAGS = -Wno-declaration-after-statement -fshort-wchar -include $(VBOXSF_DIR)/include/VBox/VBoxGuestMangling.h -fno-pie
    7272endif
    7373ifdef VBOX_NO_OMIT_FRAME_POINTER
    74 MOD_CFLAGS += -fno-omit-frame-pointer
     74VBOXMOD_CFLAGS += -fno-omit-frame-pointer
    7575endif
    7676
     
    7979# ClarkConnect 4.3 (cc4) and ClarkConnect 5 (v5)
    8080 ifeq ($(KERNELRELEASE),)
    81 MOD_EXTRA += $(foreach inc,$(KERN_INCL),\
     81VBOXMOD_CFLAGS += $(foreach inc,$(KERN_INCL),\
    8282               $(if $(wildcard $(inc)/linux/utsrelease.h),\
    8383                 $(if $(shell grep '"2.6.18.*fc6.*"' $(inc)/linux/utsrelease.h; \
     
    8787                   -DKERNEL_FC6,),))
    8888 else
    89 MOD_EXTRA += $(if $(shell echo "$(KERNELRELEASE)"|grep '2.6.18.*fc6.*';\
     89VBOXMOD_CFLAGS += $(if $(shell echo "$(KERNELRELEASE)"|grep '2.6.18.*fc6.*';\
    9090                          echo "$(KERNELRELEASE)"|grep '2.6.18.*el5.*';\
    9191                          echo "$(KERNELRELEASE)"|grep '2.6.18.*v5.*';\
     
    9595endif
    9696
    97 MOD_CLEAN = . linux r0drv r0drv/linux
     97VBOXMOD_CLEAN = . linux r0drv r0drv/linux
    9898
    9999include $(obj)/Makefile-footer.gmk
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