Changeset 12252 in vbox for trunk/src/VBox/HostDrivers/Support
- Timestamp:
- Sep 9, 2008 1:58:29 AM (16 years ago)
- Location:
- trunk/src/VBox/HostDrivers/Support
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/HostDrivers/Support/Makefile.kmk
r12170 r12252 29 29 # 30 30 31 ifdef VBOX_SINGLE_MAKEFILE32 31 SUB_DEPTH = ../../../.. 33 else34 SUB_DEPTH = ..35 DEPTH ?= ../../../..36 endif37 32 include $(KBUILD_PATH)/subheader.kmk 38 33 … … 61 56 $(if $(VBOX_OSE),,$(PATH_BIN)/src/dkms.conf) 62 57 endif 63 INSTALLS.linux += vboxmod-bin vboxmod-sh58 INSTALLS.linux += vboxmod-bin vboxmod-sh 64 59 65 60 # … … 73 68 include $(PATH_SUB_CURRENT)/linux/files_vboxdrv 74 69 endif # !VBOX_ONLY_DOCS 75 76 vboxmod-bin_INST = bin/src/77 vboxmod-bin_MODE = a+r,u+w78 vboxmod-bin_SOURCES = $(subst ",,$(FILES_VBOXDRV_NOBIN)) #"79 80 vboxmod-sh_INST = bin/src/81 vboxmod-sh_MODE = a+rx,u+w82 vboxmod-sh_SOURCES = $(subst ",,$(FILES_VBOXDRV_BIN)) #"83 vboxmod-sh_CLEAN = $(PATH_TARGET)/vboxmod-sh-1.dep84 85 # Scripts needed for building the kernel modules86 ## @todo generate these else where and move them from OTHERS to vboxmod-bin (which btw installs NOBIN files contrary to its name).87 88 $(PATH_BIN)/src/build_in_tmp: \89 $(PATH_SUB_CURRENT)/linux/build_in_tmp \90 $(VBOX_VERSION_STAMP)91 $(call MSG_TOOL,Creating,,$@)92 $(QUIET)$(SED) -e "s;_VERSION_;${VBOX_VERSION_STRING};g; s;_MODULE_;vboxdrv;g" --output $@ $<93 $(QUIET)chmod 0755 $@94 95 $(PATH_BIN)/src/dkms.conf: \96 $(PATH_SUB_CURRENT)/linux/dkms.conf \97 $(VBOX_VERSION_STAMP)98 $(call MSG_TOOL,Creating,,$@)99 $(QUIET)$(SED) -e "s;_VERSION_;${VBOX_VERSION_STRING};g" --output $@ $<100 101 -include $(PATH_TARGET)/vboxmod-1.dep102 $(PATH_BIN)/src/Makefile: \103 $(PATH_SUB_CURRENT)/linux/Makefile \104 $$(if $$(eq $$(Support/linux/Makefile_VBOX_HARDENED),$$(VBOX_WITH_HARDENING)),,FORCE) \105 | $(call DIRDEP,$(PATH_TARGET))106 $(call MSG_TOOL,Creating,,$@)107 ifndef VBOX_WITH_HARDENING108 $(QUIET)$(SED) -e "s;-DVBOX_WITH_HARDENING;;g" --output $@ $<109 else110 $(QUIET)$(CP) -f $< $@111 endif112 %$(QUIET2)$(RM) -f -- $(PATH_TARGET)/vboxmod-1.dep113 %$(QUIET2)$(APPEND) '$(PATH_TARGET)/vboxmod-1.dep' 'Support/linux/Makefile_VBOX_HARDENED=$(VBOX_WITH_HARDENING)'114 70 115 71 … … 153 109 $(KBUILD_TARGET)/SUPLib-$(KBUILD_TARGET).cpp 154 110 111 ifndef VBOX_ONLY_DOCS 155 112 156 113 # … … 182 139 endif 183 140 ifeq ($(VBOX_LDR_FMT),lx) 184 SUPR0_SOURCES += $ (PATH_TARGET)/SUPR0.def185 $ (PATH_TARGET)/SUPR0.def: $(PATH_SUB_CURRENT)/SUPR0.def | $(call DIRDEP,$(PATH_TARGET))141 SUPR0_SOURCES += $$(PATH_SUPR0)/SUPR0.def 142 $$(PATH_SUPR0)/SUPR0.def: $(PATH_SUB_CURRENT)/SUPR0.def | $$(dir $$@) 186 143 $(SED) -e 's/^[ \t][ \t]*\([gA-Z]\)/ _\1/' -e 's/[ \t]DATA[ \t]*/ /' $< > [email protected] 187 144 $(MV) -f [email protected] $@ … … 284 241 $(KBUILD_TARGET)/SUPDrv-$(KBUILD_TARGET).mod.c 285 242 endif 243 244 245 # 246 # Targets for installing the linux sources. 247 # 248 vboxmod-bin_INST = bin/src/ 249 vboxmod-bin_MODE = a+r,u+w 250 vboxmod-bin_SOURCES = $(subst ",,$(FILES_VBOXDRV_NOBIN)) #" 251 252 vboxmod-sh_INST = bin/src/ 253 vboxmod-sh_MODE = a+rx,u+w 254 vboxmod-sh_SOURCES = $(subst ",,$(FILES_VBOXDRV_BIN)) #" 255 vboxmod-sh_CLEAN = $(PATH_TARGET)/vboxmod-sh-1.dep 256 257 # Scripts needed for building the kernel modules 258 ## @todo generate these else where and move them from OTHERS to vboxmod-bin (which btw installs NOBIN files contrary to its name). 259 260 $(PATH_BIN)/src/build_in_tmp: \ 261 $(PATH_SUB_CURRENT)/linux/build_in_tmp \ 262 $(VBOX_VERSION_STAMP) 263 $(call MSG_TOOL,Creating,,$@) 264 $(QUIET)$(SED) -e "s;_VERSION_;${VBOX_VERSION_STRING};g; s;_MODULE_;vboxdrv;g" --output $@ $< 265 $(QUIET)chmod 0755 $@ 266 267 $(PATH_BIN)/src/dkms.conf: \ 268 $(PATH_SUB_CURRENT)/linux/dkms.conf \ 269 $(VBOX_VERSION_STAMP) 270 $(call MSG_TOOL,Creating,,$@) 271 $(QUIET)$(SED) -e "s;_VERSION_;${VBOX_VERSION_STRING};g" --output $@ $< 272 273 includedep $(PATH_TARGET)/vboxmod-sh-1.dep 274 $(PATH_BIN)/src/Makefile: \ 275 $(PATH_SUB_CURRENT)/linux/Makefile \ 276 $$(if $$(eq $$(Support/linux/Makefile_VBOX_HARDENED),$$(VBOX_WITH_HARDENING)),,FORCE) \ 277 | $(PATH_TARGET)/ 278 $(call MSG_TOOL,Creating,,$@) 279 ifndef VBOX_WITH_HARDENING 280 $(QUIET)$(SED) -e "s;-DVBOX_WITH_HARDENING;;g" --output $@ $< 281 else 282 $(QUIET)$(CP) -f $< $@ 283 endif 284 %$(QUIET2)$(RM) -f -- $(PATH_TARGET)/vboxmod-sh-1.dep 285 %$(QUIET2)$(APPEND) '$(PATH_TARGET)/vboxmod-sh-1.dep' 'Support/linux/Makefile_VBOX_HARDENED=$(VBOX_WITH_HARDENING)' 286 286 287 endif # real linux 288 289 287 290 288 291 … … 308 311 VBoxDrv.kext_INST = $(INST_VBOXDRV)Contents/ 309 312 VBoxDrv.kext_SOURCES = \ 310 $(PATH_ TARGET)/VBoxDrv/Info.plist313 $(PATH_VBoxDrv.kext)/Info.plist 311 314 VBoxDrv.kext_CLEAN = \ 312 $(PATH_ TARGET)/VBoxDrv/Info.plist313 314 $ (PATH_TARGET)/VBoxDrv/Info.plist: $(PATH_SUB_CURRENT)/darwin/Info.plist $(VBOX_VERSION_MK) | $(call DIRDEP,$(PATH_TARGET)/VBoxDrv)315 $(PATH_VBoxDrv.kext)/Info.plist 316 317 $$(PATH_VBoxDrv.kext)/Info.plist: $(PATH_SUB_CURRENT)/darwin/Info.plist $(VBOX_VERSION_MK) | $$(dir $$@) 315 318 $(call MSG_GENERATE,VBoxDrv,$@,$<) 316 319 $(xQUIET)$(RM) -f $@ … … 353 356 VBoxDrvLib_DEFS = IN_RT_R0 IN_SUP_R0 354 357 VBoxDrvLib_INCS := \ 355 $(PATH_SUB_CURRENT) \ 356 $(PATH_TARGET) \ 358 . \ 357 359 $(PATH_ROOT)/src/VBox/Runtime/include 358 360 VBoxDrvLib_SOURCES = \ … … 404 406 405 407 408 endif # !VBOX_ONLY_DOCS 406 409 include $(KBUILD_PATH)/subfooter.kmk 407 410 -
trunk/src/VBox/HostDrivers/Support/testcase/Makefile.kmk
r12170 r12252 29 29 # 30 30 31 ifdef VBOX_SINGLE_MAKEFILE32 31 SUB_DEPTH = ../../../../.. 33 else34 SUB_DEPTH = ../..35 DEPTH ?= ../../../../..36 endif37 32 include $(KBUILD_PATH)/subheader.kmk 38 33
Note:
See TracChangeset
for help on using the changeset viewer.