- 時間撮記:
- 2011-7-27 上午09:55:19 (13 年 以前)
- 檔案:
-
- 修改 1 筆資料
圖例:
- 未更動
- 新增
- 刪除
-
trunk/src/VBox/Additions/linux/sharedfolders/Makefile.kmk
r35380 r38194 5 5 6 6 # 7 # Copyright (C) 2006-201 0Oracle Corporation7 # Copyright (C) 2006-2011 Oracle Corporation 8 8 # 9 9 # This file is part of VirtualBox Open Source Edition (OSE), as … … 19 19 include $(KBUILD_PATH)/subheader.kmk 20 20 21 PROGRAMS += mount.vboxsf22 INSTALLS += vboxsf-mod vboxsf-sh23 ifdef VBOX_WITH_ADDITION_DRIVERS24 SYSMODS += vboxsf25 endif26 21 27 22 # 28 23 # Populate FILES_VBOXSF_NOBIN 29 24 # 25 INSTALLS += vboxsf-mod 30 26 include $(PATH_SUB_CURRENT)/files_vboxsf 27 vboxsf-mod_INST = $(INST_ADDITIONS)src/vboxsf/ 28 vboxsf-mod_SOURCES = \ 29 $(subst $(DQUOTE),,$(FILES_VBOXSF_NOBIN)) 30 vboxsf-mod_EXEC_SOURCES = \ 31 $(subst $(DQUOTE),,$(FILES_VBOXSF_BIN)) \ 32 $(vboxsf-mod_0_OUTDIR)/build_in_tmp \ 33 $(PATH_ROOT)/src/VBox/HostDrivers/linux/do_Module.symvers 34 vboxsf-mod_CLEAN += $(vboxsf-mod_0_OUTDIR)/build_in_tmp 31 35 32 vboxsf-mod_INST = $(INST_ADDITIONS)src/vboxsf/ 33 vboxsf-mod_MODE = a+r,u+w 34 vboxsf-mod_SOURCES = $(subst ",,$(FILES_VBOXSF_NOBIN)) 36 # Script needed for building the kernel module. 37 $$(vboxsf-mod_0_OUTDIR)/build_in_tmp: \ 38 $(PATH_ROOT)/src/VBox/HostDrivers/linux/build_in_tmp \ 39 $(VBOX_VERSION_STAMP) \ 40 | $$(dir $$@) 41 $(call MSG_TOOL,Creating,,$@) 42 $(QUIET)$(RM) -f -- $@ 43 $(QUIET)$(SED) -e "s;_VERSION_;${VBOX_VERSION_STRING};g; s;_MODULE_;vboxsf;g; s;_BUILDTYPE_;${KBUILD_TYPE};g" \ 44 --output $@ $< 45 $(QUIET)$(CHMOD) 0755 $@ 35 46 36 vboxsf-sh_INST = $(INST_ADDITIONS)src/vboxsf/37 vboxsf-sh_MODE = a+rx,u+w38 vboxsf-sh_SOURCES = $(subst ",,$(FILES_VBOXSF_BIN))39 vboxsf-sh_SOURCES += \40 $(vboxsf-sh_0_OUTDIR)/build_in_tmp \41 $(PATH_ROOT)/src/VBox/HostDrivers/linux/do_Module.symvers42 vboxsf-sh_CLEAN += $(vboxsf-sh_0_OUTDIR)/build_in_tmp43 47 44 48 … … 47 51 # The DEBUG_HASH* stuff is for CONFIG_DYNAMIC_DEBUG-enabled kernels 48 52 # 49 vboxsf_TEMPLATE = VBOXGUESTR0 50 vboxsf_NOINST = 1 51 vboxsf_CFLAGS = -fshort-wchar 52 vboxsf_DEFS = \ 53 MODULE IN_RT_R0 VBOXGUEST VBOX_WITH_HGCM \ 54 KBUILD_MODNAME=KBUILD_STR\(vboxsf\) \ 55 KBUILD_BASENAME=KBUILD_STR\(vboxsf\) \ 56 DEBUG_HASH=2 DEBUG_HASH2=3 57 vboxsf_INCS = \ 58 $(PATH_ROOT)/src/VBox/Additions/common/VBoxGuestLib \ 59 $(PATH_ROOT)/src/VBox/Runtime/r0drv/linux 60 vboxsf_SOURCES = \ 61 vfsmod.c \ 62 utils.c \ 63 dirops.c \ 64 lnkops.c \ 65 regops.c 66 vboxsf_LIBS = \ 67 $(VBOX_LIB_VBGL_R0) 53 ifdef VBOX_WITH_ADDITION_DRIVERS 54 SYSMODS += vboxsf 55 vboxsf_TEMPLATE = VBOXGUESTR0 56 vboxsf_NOINST = 1 57 vboxsf_CFLAGS = -fshort-wchar 58 vboxsf_DEFS = \ 59 MODULE IN_RT_R0 VBOXGUEST VBOX_WITH_HGCM \ 60 KBUILD_MODNAME=KBUILD_STR\(vboxsf\) \ 61 KBUILD_BASENAME=KBUILD_STR\(vboxsf\) \ 62 DEBUG_HASH=2 DEBUG_HASH2=3 63 # detect fc6 2.6.18 64 vboxsf_DEFS += \ 65 $(foreach inc, $(VBOX_LINUX_INCS),\ 66 $(if $(wildcard $(inc)/linux/utsrelease.h),\ 67 $(if $(shell if grep -q '"2.6.18.*fc6.*"' $(inc)/linux/utsrelease.h;\ 68 then echo yes; fi),KERNEL_FC6,),)) 69 # detect rhel5 2.6.18 70 vboxsf_DEFS += \ 71 $(foreach inc, $(VBOX_LINUX_INCS),\ 72 $(if $(wildcard $(inc)/linux/utsrelease.h),\ 73 $(if $(shell if grep -q '"2.6.18.*el5.*"' $(inc)/linux/utsrelease.h;\ 74 then echo yes; fi),KERNEL_FC6,),)) 68 75 69 # detect fc6 2.6.18 70 vboxsf_DEFS += $(foreach inc,$(VBOX_LINUX_INCS),\ 71 $(if $(wildcard $(inc)/linux/utsrelease.h),\ 72 $(if $(shell if grep -q '"2.6.18.*fc6.*"' $(inc)/linux/utsrelease.h;\ 73 then echo yes; fi),KERNEL_FC6,),)) 74 # detect rhel5 2.6.18 75 vboxsf_DEFS += $(foreach inc,$(VBOX_LINUX_INCS),\ 76 $(if $(wildcard $(inc)/linux/utsrelease.h),\ 77 $(if $(shell if grep -q '"2.6.18.*el5.*"' $(inc)/linux/utsrelease.h;\ 78 then echo yes; fi),KERNEL_FC6,),)) 79 76 vboxsf_INCS = \ 77 $(PATH_ROOT)/src/VBox/Additions/common/VBoxGuestLib \ 78 $(PATH_ROOT)/src/VBox/Runtime/r0drv/linux 79 vboxsf_SOURCES = \ 80 vfsmod.c \ 81 utils.c \ 82 dirops.c \ 83 lnkops.c \ 84 regops.c 85 vboxsf_LIBS = \ 86 $(VBOX_LIB_VBGL_R0) 87 endif 80 88 81 89 # 82 90 # The mount util. 83 91 # 92 PROGRAMS += mount.vboxsf 84 93 mount.vboxsf_TEMPLATE = VBOXGUESTR3EXE 85 94 mount.vboxsf_DEFS = _GNU_SOURCE … … 88 97 vbsfmount.c 89 98 90 ## Scripts needed for building kernel modules91 92 $$(vboxsf-sh_0_OUTDIR)/build_in_tmp: \93 $(PATH_ROOT)/src/VBox/HostDrivers/linux/build_in_tmp \94 $(VBOX_VERSION_STAMP) \95 | $$(dir $$@)96 $(call MSG_TOOL,Creating,,$@)97 $(QUIET)$(SED) -e "s;_VERSION_;${VBOX_VERSION_STRING};g; s;_MODULE_;vboxsf;g; s;_BUILDTYPE_;${KBUILD_TYPE};g" --output $@ $<98 $(QUIET)chmod 0755 $@99 100 99 include $(KBUILD_PATH)/subfooter.kmk 101 100
注意:
瀏覽 TracChangeset
來幫助您使用更動檢視器