1
0
mirror of https://github.com/home-assistant/operating-system.git synced 2026-04-18 07:56:19 +01:00
Files
operating-system/buildroot-external/package/xe-guest-utilities/xe-guest-utilities.mk
Jan Čermák 454d764676 Update Buildroot to 2024.02 (#3241)
* Update Buildroot to tag 2024.02 with rebased HAOS patchset

* udisks2: update to v2.10.1

  * Updated to version 2.10.x compatible with libblockdev v3
  * Rebased patches to new codebase
  * Autoreconf patch is not needed anymore
  * libblockdev-nvme is now hard dependency of udisks daemon

* patches/grub2: remove upstreamed efidisk patch

* patches/network-manager: update multiple gateway patch

* package/os-agent: fix go download

  After the Go update, build fails with the following error on mod vendor:

    GOPROXY list is not the empty string, but contains no entries

  Turns out this step is not having the environment variables set, use
  those used for download to fix it.

* package/xe-guest-utilities: set DL env for go mod vendor

* Bump buildroot to fix missing unit file from nfs-utils

* buildroot 3f950a1aee...a1b2d12f32 (1):
  > package/nfs-utils: only install fsidd binary and unit file with enabled nfsd

* CI: install flake8 for pr-checks runner

  Use distribution package, as it's what's used in Buidlroot's Gitlab CI
  Docker image at buildroot/support/docker/Dockefile.

* Disable check for Upstream section in the patch header for now

  It was introduced in latest BR - disable it for now and re-enable
  for HAOS in a later separate PR.
2024-03-13 15:16:54 +01:00

60 lines
1.8 KiB
Makefile

################################################################################
#
# xe-guest-utilities
#
################################################################################
XE_GUEST_UTILITIES_VERSION = 7.33.0
XE_GUEST_UTILITIES_SITE = $(call github,xenserver,xe-guest-utilities,v$(XE_GUEST_UTILITIES_VERSION))
XE_GUEST_UTILITIES_LICENSE = BSD-2-Clause
XE_GUEST_UTILITIES_LICENSE_FILES = LICENSE
XE_GUEST_UTILITIES_DEPENDENCIES = host-pkgconf
XE_GUEST_UTILITIES_XENSTORE_ALIAS = \
xenstore-ls \
xenstore-exists \
xenstore-chmod \
xenstore-rm \
xenstore-read \
xenstore-write \
xenstore-watch \
xenstore-list
define XE_GUEST_UTILITIES_BUILD_CMDS
cd $(@D); \
$(HOST_GO_TARGET_ENV) $(TARGET_MAKE_ENV); \
$(XE_GUEST_UTILITIES_DL_ENV) $(GO_BIN) mod vendor; \
$(MAKE)
endef
define XE_GUEST_UTILITIES_INSTALL_TARGET_CMDS
$(INSTALL) -m 755 $(@D)/build/stage/usr/sbin/xe-linux-distribution \
$(TARGET_DIR)/usr/sbin/xe-linux-distribution
$(INSTALL) -m 755 $(@D)/build/stage/usr/sbin/xe-daemon \
$(TARGET_DIR)/usr/sbin/xe-daemon
$(INSTALL) -m 755 $(@D)/build/stage/usr/bin/xenstore \
$(TARGET_DIR)/usr/bin/xenstore
$(foreach f,$(XE_GUEST_UTILITIES_XENSTORE_ALIAS), \
ln -sf xenstore $(TARGET_DIR)/usr/bin/$(f)
)
$(INSTALL) -D -m 644 $(@D)/mk/xen-vcpu-hotplug.rules \
$(TARGET_DIR)/usr/lib/udev/rules.d/10-xen-vcpu-hotplug.rules
endef
define XE_GUEST_UTILITIES_INSTALL_INIT_SYSTEMD
$(INSTALL) -D -m 0644 $(XE_GUEST_UTILITIES_PKGDIR)/proc-xen.mount \
$(TARGET_DIR)/usr/lib/systemd/system/proc-xen.mount
$(INSTALL) -D -m 0644 $(XE_GUEST_UTILITIES_PKGDIR)/tmpfile.conf \
$(TARGET_DIR)/usr/lib/tmpfiles.d/30-xenstored.conf
$(INSTALL) -D -m 0644 $(XE_GUEST_UTILITIES_PKGDIR)/xe-daemon.service \
$(TARGET_DIR)/usr/lib/systemd/system/xe-daemon.service
endef
$(eval $(golang-package))