Changeset 77400 in vbox
- Timestamp:
- Feb 20, 2019 6:36:27 PM (6 years ago)
- Location:
- trunk/src/VBox
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/HostDrivers/Support/linux/Makefile
r77399 r77400 172 172 include $(obj)/Makefile-footer.gmk 173 173 174 check: $( MODULE)174 check: $(VBOXMOD_0_TARGET) 175 175 @if ! readelf -p __ksymtab_strings vboxdrv.ko | grep -E "\[.*\] *(RT|g_..*RT.*)"; then \ 176 176 echo "All exported IPRT symbols are properly renamed!"; \ -
trunk/src/VBox/Installer/linux/Makefile-footer.gmk
r77399 r77400 18 18 # 19 19 20 # override is required by the Debian guys 21 override MODULE = $(VBOXMOD_NAME) 22 OBJS = $(VBOXMOD_OBJS) 20 VBOXMOD_0_TARGET = $(VBOXMOD_NAME) 23 21 24 22 KBUILD_VERBOSE ?= 1 … … 50 48 # 2.4 51 49 # 52 53 50 # Note: while 2.4 kernels could also do "proper" builds from kbuild, the make 54 51 # script needed to support it was somewhat different from 2.6. Since this 55 52 # script works and 2.4 is not a moving target we will not try do do things the 56 53 # "proper" way. 54 # 55 VBOXMOD_EXT := o 57 56 58 57 ifeq ($(BUILD_TARGET_ARCH),amd64) … … 61 60 62 61 CFLAGS := -O2 -DVBOX_LINUX_2_4 $(VBOXMOD_CFLAGS) $(VBOX_INCL) $(KFLAGS) $(KDEBUG) 63 MODULE_EXT := o64 62 65 63 # 2.4 Module linking 66 $( MODULE).$(MODULE_EXT): $(OBJS)67 $(LD) -o $@ -r $( OBJS)64 $(VBOXMOD_0_TARGET).$(VBOXMOD_EXT): $(VBOXMOD_OBJS) 65 $(LD) -o $@ -r $(VBOXMOD_OBJS) 68 66 69 .PHONY: $( MODULE)70 all: $( MODULE)71 $( MODULE): $(MODULE).$(MODULE_EXT)67 .PHONY: $(VBOXMOD_0_TARGET) 68 all: $(VBOXMOD_0_TARGET) 69 $(VBOXMOD_0_TARGET): $(VBOXMOD_0_TARGET).$(VBOXMOD_EXT) 72 70 73 install: $( MODULE)71 install: $(VBOXMOD_0_TARGET) 74 72 @mkdir -p $(MODULE_DIR); \ 75 install -m 0644 -o root -g root $( MODULE).$(MODULE_EXT) $(MODULE_DIR); \73 install -m 0644 -o root -g root $(VBOXMOD_0_TARGET).$(VBOXMOD_EXT) $(MODULE_DIR); \ 76 74 PATH="$(PATH):/bin:/sbin" depmod -a; sync 77 75 78 76 clean: 79 for f in $(sort $(dir $( OBJS))); do rm -f $$f/*.o $$f/.*.cmd $$f/.*.flags; done77 for f in $(sort $(dir $(VBOXMOD_OBJS))); do rm -f $$f/*.o $$f/.*.cmd $$f/.*.flags; done 80 78 rm -rf .$(VBOXMOD_NAME)* .tmp_ver* $(VBOXMOD_NAME).* Modules.symvers modules.order 81 79 … … 83 81 # 84 82 # 2.6 and later 83 # 85 84 ## @todo XXX does not work for 2.6.5 and earlier (see KBUILD_EXTMOD in header). 86 85 # 87 88 MODULE_EXT := ko 89 90 $(MODULE)-y := $(OBJS) 86 VBOXMOD_EXT := ko 91 87 92 88 # build defs 93 89 EXTRA_CFLAGS += $(VBOXMOD_CFLAGS) $(VBOX_INCL) $(KFLAGS) $(KDEBUG) 90 $(VBOXMOD_0_TARGET)-y := $(VBOXMOD_OBJS) 91 obj-m += $(VBOXMOD_0_TARGET).o 94 92 95 .PHONY: $(MODULE) 96 all: $(MODULE) 97 98 obj-m += $(MODULE).o 99 93 # Trigger parallel make job. 100 94 JOBS := $(shell (getconf _NPROCESSORS_ONLN || grep -Ec '^processor|^CPU[0-9]' /proc/cpuinfo) 2>/dev/null) 101 95 ifeq ($(JOBS),0) 102 96 override JOBS := 1 103 97 endif 104 98 99 # rules: 100 .PHONY: $(VBOXMOD_0_TARGET) 101 all: $(VBOXMOD_0_TARGET) 102 105 103 # OL/UEK: disable module signing for external modules -- we don't have any private key 106 $( MODULE):104 $(VBOXMOD_0_TARGET): 107 105 $(MAKE) V=$(LINUX_VERBOSE) CONFIG_MODULE_SIG= -C $(KERN_DIR) SUBDIRS=$(CURDIR) SRCROOT=$(CURDIR) $(if $(JOBS),-j$(JOBS),) modules 108 106 109 install: $( MODULE)107 install: $(VBOXMOD_0_TARGET) 110 108 $(MAKE) V=$(LINUX_VERBOSE) CONFIG_MODULE_SIG= -C $(KERN_DIR) SUBDIRS=$(CURDIR) SRCROOT=$(CURDIR) INSTALL_MOD_PATH=$(INSTALL_MOD_PATH) INSTALL_MOD_DIR=$(INSTALL_MOD_DIR) modules_install 111 109 … … 115 113 $(MAKE) V=$(LINUX_VERBOSE) CONFIG_MODULE_SIG= -C $(KERN_DIR) SUBDIRS=$(CURDIR) SRCROOT=$(CURDIR) clean 116 114 117 .PHONY: $(MODULE) install modules_install clean115 .PHONY: all $(VBOXMOD_0_TARGET) install modules_install clean 118 116 endif
Note:
See TracChangeset
for help on using the changeset viewer.