Changeset 21575 in vbox for trunk/src/VBox/Installer
- Timestamp:
- Jul 14, 2009 11:19:28 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Installer/solaris/Makefile.kmk
r21182 r21575 36 36 VBOX_WITH_COMBINED_PACKAGE := 1 37 37 endif 38 VBOX_PATH_SOL_INST_SRC := $(PATH_SUB_CURRENT)39 SOLARIS_DIR_NAME_64 := amd6440 SOLARIS_DIR_NAME_32 := i38641 SOLARIS_INST_OUT_DIR := $(PATH_TARGET)/Installer42 SOLARIS_BASEINST_DIR := $(PATH_TARGET)/Installer/BasePkg43 SOLARIS_VBOXINST_SUBDIR := /opt/VirtualBox38 VBOX_PATH_SOL_INST_SRC := $(PATH_SUB_CURRENT) 39 SOLARIS_DIR_NAME_64 := amd64 40 SOLARIS_DIR_NAME_32 := i386 41 SOLARIS_INST_OUT_DIR := $(PATH_TARGET)/Installer 42 SOLARIS_BASEINST_DIR := $(PATH_TARGET)/Installer/BasePkg 43 SOLARIS_VBOXINST_SUBDIR := opt/VirtualBox 44 44 SOLARIS_VBOXINST_DIR := $(SOLARIS_BASEINST_DIR)/$(SOLARIS_VBOXINST_SUBDIR) 45 45 SOLARIS_VBOXINST_DIR_32 := $(SOLARIS_VBOXINST_DIR)/$(SOLARIS_DIR_NAME_32) … … 55 55 SOLARIS_ETC_DIR := $(SOLARIS_BASEINST_DIR)/etc 56 56 57 SOLARIS_OUT_BIN_64 := $(PATH_OUT_BASE)/solaris.amd64/$(KBUILD_TYPE)/bin58 SOLARIS_OUT_BIN_32 := $(PATH_OUT_BASE)/solaris.x86/$(KBUILD_TYPE)/bin59 SOLARIS_OUT_BIN := $(PATH_BIN)60 61 SOLARIS_DBG_DIR := $(PATH_TARGET)/Installer/DebugPkg62 SOLARIS_DBG_DIR_32 := $(SOLARIS_DBG_DIR)/$(SOLARIS_DIR_NAME_32)63 SOLARIS_DBG_DIR_64 := $(SOLARIS_DBG_DIR)/$(SOLARIS_DIR_NAME_64)64 SOLARIS_VBI_DIR := $(PATH_TARGET)/Installer/KernelPkg57 SOLARIS_OUT_BIN_64 := $(PATH_OUT_BASE)/solaris.amd64/$(KBUILD_TYPE)/bin 58 SOLARIS_OUT_BIN_32 := $(PATH_OUT_BASE)/solaris.x86/$(KBUILD_TYPE)/bin 59 SOLARIS_OUT_BIN := $(PATH_BIN) 60 61 SOLARIS_DBG_DIR := $(PATH_TARGET)/Installer/DebugPkg 62 SOLARIS_DBG_DIR_32 := $(SOLARIS_DBG_DIR)/$(SOLARIS_DIR_NAME_32) 63 SOLARIS_DBG_DIR_64 := $(SOLARIS_DBG_DIR)/$(SOLARIS_DIR_NAME_64) 64 SOLARIS_VBI_DIR := $(PATH_TARGET)/Installer/KernelPkg 65 65 66 66 ifeq ($(KBUILD_TARGET_ARCH),amd64) 67 67 SOLARIS_VBOXINST_DIR_ISA := $(SOLARIS_VBOXINST_DIR_64) 68 68 SOLARIS_DRIVERINST_DIR_ISA := $(SOLARIS_DRIVERINST_DIR_64) 69 SOLARIS_DBG_DIR_ISA := $(SOLARIS_DBG_DIR_64)70 SOL_DBG_OBJCOPY := /usr/sfw/bin/gobjcopy --only-keep-debug69 SOLARIS_DBG_DIR_ISA := $(SOLARIS_DBG_DIR_64) 70 SOL_DBG_OBJCOPY := /usr/sfw/bin/gobjcopy --only-keep-debug 71 71 SOL64_PKG := 1 72 72 else 73 73 SOLARIS_VBOXINST_DIR_ISA := $(SOLARIS_VBOXINST_DIR_32) 74 74 SOLARIS_DRIVERINST_DIR_ISA := $(SOLARIS_DRIVERINST_DIR_32) 75 SOLARIS_DBG_DIR_ISA := $(SOLARIS_DBG_DIR_32)76 SOL_DBG_OBJCOPY := $(CP) -p # Solaris ld/gobjcopy(2.15) don't get along on x86, works only on amd64. So just using cp for now.77 endif 78 SOL_OBJCOPY := /usr/sfw/bin/gobjcopy --strip-unneeded -R .comment75 SOLARIS_DBG_DIR_ISA := $(SOLARIS_DBG_DIR_32) 76 SOL_DBG_OBJCOPY := $(CP) -p # Solaris ld/gobjcopy(2.15) don't get along on x86, works only on amd64. So just using cp for now. 77 endif 78 SOL_OBJCOPY := /usr/sfw/bin/gobjcopy --strip-unneeded -R .comment 79 79 80 80 … … 102 102 # 103 103 PROGRAMS += VBoxZoneAccess VBoxISAExec 104 INSTALLS += solaris-doc solaris-bin 104 INSTALLS += solaris-doc solaris-bin solaris-drv-confs 105 105 106 106 BLDDIRS += \ … … 155 155 solaris-bin_SOURCES = \ 156 156 $(if $(VBOX_WITH_PYTHON),$(PATH_ROOT)/src/VBox/Frontends/VBoxShell/vboxshell.py=>vboxshell.py,) 157 158 solaris-drv-confs_INST = bin/ 159 solaris-drv-confs_MODE = a+r,u+w 160 solaris-drv-confs_SOURCES = \ 161 $(PATH_ROOT)/src/VBox/HostDrivers/Support/solaris/vboxdrv.conf=>vboxdrv.conf \ 162 $(if $(VBOX_WITH_NETFLT),$(PATH_ROOT)/src/VBox/HostDrivers/VBoxNetFlt/solaris/vboxflt.conf=>vboxflt.conf) \ 163 $(if $(VBOX_WITH_NETADP),$(PATH_ROOT)/src/VBox/HostDrivers/VBoxNetAdp/solaris/vboxnet.conf=>vboxnet.conf) \ 164 $(if $(VBOX_WITH_USB),$(PATH_ROOT)/src/VBox/HostDrivers/VBoxUSB/solaris/vboxusbmon.conf=>vboxusbmon.conf) 157 165 158 166 # … … 182 190 $(if $(VBOX_WITH_NETADP),vboxnet,) \ 183 191 $(if $(VBOX_WITH_USB),vboxusbmon,) 192 193 SOLARIS_DRIVER_CONFS = \ 194 vboxdrv.conf \ 195 $(if $(VBOX_WITH_NETFLT),vboxflt.conf,) \ 196 $(if $(VBOX_WITH_NETADP),vboxnet.conf,) \ 197 $(if $(VBOX_WITH_USB),vboxusbmon.conf,) 184 198 185 199 # Strip these binaries … … 254 268 VBox.png \ 255 269 autoresponse \ 256 vboxdrv.conf \257 $(if $(VBOX_WITH_NETFLT),vboxflt.conf,) \258 $(if $(VBOX_WITH_NETADP),vboxnet.conf,) \259 $(if $(VBOX_WITH_NETADP),hostname.vboxnet0,) \260 $(if $(VBOX_WITH_USB),vboxusbmon.conf,) \261 270 vboxdrv.sh \ 262 271 VBox.sh \ … … 343 352 $(SOLARIS_STRIP_EXES) \ 344 353 $(SOLARIS_DRIVER_BINS) \ 354 $(SOLARIS_DRIVER_CONFS) \ 345 355 $(SOLARIS_USRBIN_LINKS) \ 346 356 $(SOLARIS_STRIP_BINS) \ … … 389 399 $(addprefix $(SOLARIS_VBOXINST_DIR_ISA)/,$(SOLARIS_STRIP_BINS)) \ 390 400 $(addprefix $(SOLARIS_DRIVERINST_DIR_ISA)/,$(SOLARIS_DRIVER_BINS)) \ 401 $(addprefix $(SOLARIS_DRIVERINST_DIR)/,$(SOLARIS_DRIVER_CONFS)) \ 391 402 $(ifeq ($(KBUILD_TARGET_ARCH),x86),$(addprefix $(SOLARIS_VBOXINST_DIR_ISA)/,$(SOLARIS_STRIP_BIN_32)),) \ 392 403 $(ifeq ($(KBUILD_TARGET_ARCH),amd64),$(addprefix $(SOLARIS_VBOXINST_DIR_ISA)/,$(SOLARIS_STRIP_OBJ_64)),) \ … … 396 407 SOLARIS_DBG_DEPFILES = $(addprefix $(SOLARIS_DBG_DIR_ISA)/,$(SOLARIS_DBG_FILES)) 397 408 endif 398 SOLARIS_ARCH_DEPFILES += $(addprefix $(SOLARIS_VBOXINST_DIR)/,$(SOLARIS_COMMON)) 399 SOLARIS_ARCH_DEPFILES += $(addprefix $(SOLARIS_USRBIN_DIR)/,$(SOLARIS_USRBIN_LINKS)) 409 SOLARIS_ARCH_DEPFILES += $(addprefix $(SOLARIS_VBOXINST_DIR)/,$(SOLARIS_COMMON)) \ 410 $(addprefix $(SOLARIS_DRIVERINST_DIR)/,$(SOLARIS_DRIVER_CONFS)) \ 411 $(addprefix $(SOLARIS_USRBIN_DIR)/,$(SOLARIS_USRBIN_LINKS)) 400 412 401 413 BLDDIRS += $(foreach d,\ … … 467 479 $(if $(VBOX_OSE),,$(PATH_BIN)/LICENSE) \ 468 480 $(if $(and $(VBOX_LICENSE_BINS),$(VBOX_WITH_QTGUI)),$(VBOX_LICENSE_BINS),) \ 469 $(PATH_ROOT)/src/VBox/HostDrivers/Support/solaris/vboxdrv.conf \470 $(if $(VBOX_WITH_NETFLT),$(PATH_ROOT)/src/VBox/HostDrivers/VBoxNetFlt/solaris/vboxflt.conf,) \471 $(if $(VBOX_WITH_NETADP),$(PATH_ROOT)/src/VBox/HostDrivers/VBoxNetAdp/solaris/vboxnet.conf,) \472 481 $(if $(VBOX_WITH_NETADP),$(PATH_ROOT)/src/VBox/HostDrivers/VBoxNetAdp/solaris/hostname.vboxnet0,) \ 473 $(if $(VBOX_WITH_USB),$(PATH_ROOT)/src/VBox/HostDrivers/VBoxUSB/solaris/vboxusbmon.conf,) \474 482 $(if $(not $(VBOX_WITH_NETFLT))$(PATH_ROOT)/src/VBox/Devices/Network/solaris/vnicinit_solaris.sh,) \ 475 483 $(if $(not $(VBOX_WITH_NETFLT))$(PATH_ROOT)/src/VBox/Devices/Network/solaris/vnicterm_solaris.sh,) \ … … 496 504 $(QUIET)$(if $(VBOX_WITH_QTGUI),$(MKDIR) -p $(SOLARIS_USRSHR_APPS_DIR),) 497 505 $(QUIET)$(MKDIR) -p $(SOLARIS_USRSHR_PIXMAPS_DIR) 498 $(QUIET)$(INSTALL) -m 0644 $(PATH_ROOT)/src/VBox/HostDrivers/Support/solaris/vboxdrv.conf $(SOLARIS_DRIVERINST_DIR)/vboxdrv.conf499 $(QUIET)$(if $(VBOX_WITH_NETFLT),$(INSTALL) -m 0644 $(PATH_ROOT)/src/VBox/HostDrivers/VBoxNetFlt/solaris/vboxflt.conf $(SOLARIS_DRIVERINST_DIR)/vboxflt.conf,)500 $(QUIET)$(if $(VBOX_WITH_NETADP),$(INSTALL) -m 0644 $(PATH_ROOT)/src/VBox/HostDrivers/VBoxNetAdp/solaris/vboxnet.conf $(SOLARIS_DRIVERINST_DIR)/vboxnet.conf,)501 506 $(QUIET)$(if $(VBOX_WITH_NETADP),$(INSTALL) -m 0644 $(PATH_ROOT)/src/VBox/HostDrivers/VBoxNetAdp/solaris/hostname.vboxnet0 $(SOLARIS_ETC_DIR)/hostname.vboxnet0,) 502 $(QUIET)$(if $(VBOX_WITH_USB),$(INSTALL) -m 0644 $(PATH_ROOT)/src/VBox/HostDrivers/VBoxUSB/solaris/vboxusbmon.conf $(SOLARIS_DRIVERINST_DIR)/vboxusbmon.conf,)503 507 $(QUIET)$(if $(VBOX_OSE),,$(INSTALL) -m 0644 $(PATH_BIN)/LICENSE $(SOLARIS_VBOXINST_DIR)/LICENSE) 504 508 $(QUIET)$(if $(VBOX_OSE),,$(INSTALL) -m 0644 $(PATH_BIN)/LICENSE $(SOLARIS_BASEINST_DIR)/vbox.copyright) … … 532 536 $(QUIET)$(if $(VBOX_WITH_QTGUI),$(LN_SYMLINK) -f ../VirtualBox.chm $(SOLARIS_VBOXINST_DIR_ISA)/VirtualBox.chm,) 533 537 endif 534 $(QUIET)$(if $(VBOX_WITH_QTGUI),$(LN_SYMLINK) -f ../.. $(SOLARIS_VBOXINST_SUBDIR)/VBox.sh$(SOLARIS_USRBIN_DIR)/VBoxQtconfig,)538 $(QUIET)$(if $(VBOX_WITH_QTGUI),$(LN_SYMLINK) -f ../../$(SOLARIS_VBOXINST_SUBDIR)/VBox.sh $(SOLARIS_USRBIN_DIR)/VBoxQtconfig,) 535 539 $(QUIET)$(INSTALL) -m 0644 $(VBOX_PATH_SOL_INST_SRC)/virtualbox-zoneaccess.xml $(SOLARIS_VBOXSMF_DIR)/virtualbox-zoneaccess.xml 536 540 $(QUIET)$(if $(VBOX_WITH_WEBSERVICES),$(INSTALL) -m 0644 $(VBOX_PATH_SOL_INST_SRC)/virtualbox-webservice.xml $(SOLARIS_VBOXSMF_DIR)/virtualbox-webservice.xml,) … … 539 543 $(QUIET)$(if $(not $(VBOX_WITH_NETFLT))$(INSTALL) -m 0755 $(PATH_ROOT)/src/VBox/Devices/Network/solaris/vnicterm_solaris.sh $(SOLARIS_VBOXINST_DIR)/vnic_term.sh,) 540 544 $(QUIET)$(SED) \ 541 -e "s/_HARDENED_/$(if $(VBOX_WITH_HARDENED),hardened,) )/" \545 -e "s/_HARDENED_/$(if $(VBOX_WITH_HARDENED),hardened,)/" \ 542 546 --output $(SOLARIS_VBOXINST_DIR)/vboxdrv.sh.tmp \ 543 547 $(VBOX_PATH_SOL_INST_SRC)/vboxdrv.sh 544 $(QUIET)$(INSTALL) -m 0755 $(SOLARIS_VBOXINST_DIR)/vboxdrv.sh.tmp 548 $(QUIET)$(INSTALL) -m 0755 $(SOLARIS_VBOXINST_DIR)/vboxdrv.sh.tmp $(SOLARIS_VBOXINST_DIR)/vboxdrv.sh 545 549 $(QUIET)$(RM) -f $(SOLARIS_VBOXINST_DIR)/vboxdrv.sh.tmp 546 550 $(QUIET)$(INSTALL) -m 0755 $(VBOX_PATH_SOL_INST_SRC)/VBox.sh $(SOLARIS_VBOXINST_DIR)/VBox.sh … … 646 650 $(INSTALL) -m 0644 $< $@ 647 651 652 # Driver configuration files 653 $(addprefix $(SOLARIS_DRIVERINST_DIR)/,$(SOLARIS_DRIVER_CONFS)): \ 654 $(SOLARIS_DRIVERINST_DIR)/% : $(PATH_BIN)/% | $$(dir $$@) 655 $(INSTALL) -m 0644 $< $@ 656 657 648 658 # 649 659 # Common (relative symlinks to /opt/VirtualBox/ from /usr/bin/) … … 653 663 $(addprefix $(SOLARIS_USRBIN_DIR)/,$(SOLARIS_USRBIN_LINKS)): \ 654 664 $(SOLARIS_USRBIN_DIR)/% : % | $$(dir $$@) 655 $(LN_SYMLINK) -f ../.. $(SOLARIS_VBOXINST_SUBDIR)/VBox.sh $@665 $(LN_SYMLINK) -f ../../$(SOLARIS_VBOXINST_SUBDIR)/VBox.sh $@ 656 666 657 667
Note:
See TracChangeset
for help on using the changeset viewer.