Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:olh:xen-4.5
xen
xen.1f627301e66ac62053ee246367a1b576cbded052.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File xen.1f627301e66ac62053ee246367a1b576cbded052.patch of Package xen
From: Ian Campbell <ian.campbell@citrix.com> Date: Fri, 26 Jun 2015 10:41:28 +0100 Subject: 1f627301e66ac62053ee246367a1b576cbded052 xen: Install unstripped version -syms version into /usr/lib/debug xen-*-syms cannot actually be booted, so putting it in /boot is a bit misleading. It also happens to cause a warning from update-grub (so at least it doesn't end up in grub.cfg) /usr/lib/debug seems to be a pretty common path for installing such debug info. Signed-off-by: Ian Campbell <ian.campbell@citrix.com> Acked-by: Jan Beulich <jbeulich@suse.com> [ ijc -- fixed typos ] --- INSTALL | 4 +++- config/StdGNU.mk | 1 + config/SunOS.mk | 1 + xen/Makefile | 5 +++-- 4 files changed, 8 insertions(+), 3 deletions(-) --- a/INSTALL +++ b/INSTALL @@ -184,26 +184,28 @@ Per default some parts of the tools code will print additional runtime debug. This option can be used to disable such code paths. debug=y debug_symbols=y If --prefix= was used during configure the and ocaml was enabled the resulting libraries will not be installed in the specified path. Instead the path provided by ocamlfind(1) will be used. This variable can be used to override this path. Using the environment variable OCAMLFIND_DESTDIR= and OCAMLFIND_METADIR= will have the same effect. OCAMLDESTDIR= The xen subsystem will install the hypervisor into fixed locations. -BOOT_DIR defaults to /boot, EFI_DIR to /usr/lib64/efi. +BOOT_DIR defaults to /boot, DEBUG_DIR defaults to /usr/lib/debug and +EFI_DIR to /usr/lib64/efi. BOOT_DIR= +DEBUG_DIR= EFI_DIR= The make target 'rpmball' will build a xen.rpm. This variable can be used to append a custom string to the name. PKG_SUFFIX= The hypervisor will report a certain version string. This variable can be used to append a custom string to the version. XEN_VENDORVERSION= During boot xen will report a certain user@host string, which can be changed with these variables. --- a/config/StdGNU.mk +++ b/config/StdGNU.mk @@ -16,24 +16,25 @@ OBJCOPY = $(CROSS_COMPILE)objcopy OBJDUMP = $(CROSS_COMPILE)objdump SIZEUTIL = $(CROSS_COMPILE)size # Allow git to be wrappered in the environment GIT ?= git INSTALL = install INSTALL_DIR = $(INSTALL) -d -m0755 -p INSTALL_DATA = $(INSTALL) -m0644 -p INSTALL_PROG = $(INSTALL) -m0755 -p BOOT_DIR ?= /boot +DEBUG_DIR ?= /usr/lib/debug SOCKET_LIBS = UTIL_LIBS = -lutil DLOPEN_LIBS = -ldl SONAME_LDFLAG = -soname SHLIB_LDFLAGS = -shared ifneq ($(debug),y) CFLAGS += -O2 -fomit-frame-pointer else # Less than -O1 produces bad code and large stack frames --- a/config/SunOS.mk +++ b/config/SunOS.mk @@ -9,24 +9,25 @@ STRIP = $(CROSS_COMPILE)gstrip OBJCOPY = $(CROSS_COMPILE)gobjcopy OBJDUMP = $(CROSS_COMPILE)gobjdump SIZEUTIL = $(CROSS_COMPILE)gsize SHELL = bash INSTALL = ginstall INSTALL_DIR = $(INSTALL) -d -m0755 -p INSTALL_DATA = $(INSTALL) -m0644 -p INSTALL_PROG = $(INSTALL) -m0755 -p BOOT_DIR ?= /boot +DEBUG_DIR ?= /usr/lib/debug SunOS_LIBDIR = /usr/sfw/lib SunOS_LIBDIR_x86_64 = /usr/sfw/lib/amd64 SOCKET_LIBS = -lsocket PTHREAD_LIBS = -lpthread UTIL_LIBS = DLOPEN_LIBS = -ldl SONAME_LDFLAG = -h SHLIB_LDFLAGS = -R $(SunOS_LIBDIR) -shared --- a/xen/Makefile +++ b/xen/Makefile @@ -35,48 +35,49 @@ endif _build: $(TARGET)$(CONFIG_XEN_INSTALL_SUFFIX) .PHONY: _install _install: D=$(DESTDIR) _install: T=$(notdir $(TARGET)) _install: Z=$(CONFIG_XEN_INSTALL_SUFFIX) _install: $(TARGET)$(CONFIG_XEN_INSTALL_SUFFIX) [ -d $(D)$(BOOT_DIR) ] || $(INSTALL_DIR) $(D)$(BOOT_DIR) $(INSTALL_DATA) $(TARGET)$(Z) $(D)$(BOOT_DIR)/$(T)-$(XEN_FULLVERSION)$(Z) ln -f -s $(T)-$(XEN_FULLVERSION)$(Z) $(D)$(BOOT_DIR)/$(T)-$(XEN_VERSION).$(XEN_SUBVERSION)$(Z) ln -f -s $(T)-$(XEN_FULLVERSION)$(Z) $(D)$(BOOT_DIR)/$(T)-$(XEN_VERSION)$(Z) ln -f -s $(T)-$(XEN_FULLVERSION)$(Z) $(D)$(BOOT_DIR)/$(T)$(Z) - $(INSTALL_DATA) $(TARGET)-syms $(D)$(BOOT_DIR)/$(T)-syms-$(XEN_FULLVERSION) + [ -d "$(D)$(DEBUG_DIR)" ] || $(INSTALL_DIR) $(D)$(DEBUG_DIR) + $(INSTALL_DATA) $(TARGET)-syms $(D)$(DEBUG_DIR)/$(T)-syms-$(XEN_FULLVERSION) if [ -r $(TARGET).efi -a -n '$(EFI_DIR)' ]; then \ [ -d $(D)$(EFI_DIR) ] || $(INSTALL_DIR) $(D)$(EFI_DIR); \ $(INSTALL_DATA) $(TARGET).efi $(D)$(EFI_DIR)/$(T)-$(XEN_FULLVERSION).efi; \ ln -sf $(T)-$(XEN_FULLVERSION).efi $(D)$(EFI_DIR)/$(T)-$(XEN_VERSION).$(XEN_SUBVERSION).efi; \ ln -sf $(T)-$(XEN_FULLVERSION).efi $(D)$(EFI_DIR)/$(T)-$(XEN_VERSION).efi; \ ln -sf $(T)-$(XEN_FULLVERSION).efi $(D)$(EFI_DIR)/$(T).efi; \ if [ -n '$(EFI_MOUNTPOINT)' -a -n '$(EFI_VENDOR)' ]; then \ $(INSTALL_DATA) $(TARGET).efi $(D)$(EFI_MOUNTPOINT)/efi/$(EFI_VENDOR)/$(T)-$(XEN_FULLVERSION).efi; \ elif [ "$(D)" = "$(patsubst $(shell cd $(XEN_ROOT) && pwd)/%,%,$(D))" ]; then \ echo 'EFI installation only partially done (EFI_VENDOR not set)' >&2; \ fi; \ fi .PHONY: _uninstall _uninstall: D=$(DESTDIR) _uninstall: T=$(notdir $(TARGET)) _uninstall: Z=$(CONFIG_XEN_INSTALL_SUFFIX) _uninstall: rm -f $(D)$(BOOT_DIR)/$(T)-$(XEN_FULLVERSION)$(Z) rm -f $(D)$(BOOT_DIR)/$(T)-$(XEN_VERSION).$(XEN_SUBVERSION)$(Z) rm -f $(D)$(BOOT_DIR)/$(T)-$(XEN_VERSION)$(Z) rm -f $(D)$(BOOT_DIR)/$(T)$(Z) - rm -f $(D)$(BOOT_DIR)/$(T)-syms-$(XEN_FULLVERSION) + rm -f $(D)$(DEBUG_DIR)/$(T)-syms-$(XEN_FULLVERSION) rm -f $(D)$(EFI_DIR)/$(T)-$(XEN_FULLVERSION).efi rm -f $(D)$(EFI_DIR)/$(T)-$(XEN_VERSION).$(XEN_SUBVERSION).efi rm -f $(D)$(EFI_DIR)/$(T)-$(XEN_VERSION).efi rm -f $(D)$(EFI_DIR)/$(T).efi rm -f $(D)$(EFI_MOUNTPOINT)/efi/$(EFI_VENDOR)/$(T)-$(XEN_FULLVERSION).efi .PHONY: _debug _debug: objdump -D -S $(TARGET)-syms > $(TARGET).s .PHONY: _clean _clean: delete-unfresh-files
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor