[Buildroot] [PATCH v4 4/4] package/xen: add custom git support
Neal Frager via buildroot <[email protected]> Mon, 3 Aug 2026 15:51:44 +0100
| Newsgroups | net.busybox.buildroot |
|---|---|
| Message-ID | <[email protected]> |
For completeness, add custom git support to match the capabilities of other packages such as Linux, uboot or ATF. To test this feature, use the following configs to test latest release of the Xilinx Xen vendor tree. To test: BR2_aarch64=y BR2_TOOLCHAIN_EXTERNAL=y BR2_TOOLCHAIN_EXTERNAL_BOOTLIN=y BR2_TOOLCHAIN_EXTERNAL_BOOTLIN_AARCH64_GLIBC_STABLE=y BR2_PACKAGE_XEN=y BR2_PACKAGE_XEN_CUSTOM_GIT=y BR2_PACKAGE_XEN_CUSTOM_REPO_URL="https://github.com/Xilinx/xen.git" BR2_PACKAGE_XEN_CUSTOM_REPO_VERSION="791ade0eeae73a851f728cf2c9964dd303cc7d8e" Add to package/xen/xen.hash: sha256 bb4c156bedcf2e621f8de258fcc3d84a189c522fcf39df8de3865ba53bc10874 xen-791ade0eeae73a851f728cf2c9964dd303cc7d8e-git4.tar.gz Signed-off-by: Neal Frager <[email protected]> Tested-by: Matthew Weber <[email protected]> Prior test details: https://gist.github.com/matthew-l-weber/c17f14a3793ccee440a383e4177ff3db Reviewed-by: John Ernberg <[email protected]> --- V1->V2: - rebased to updated master branch V2->V4: - merged into new patch series as the second patch --- package/xen/Config.in | 18 ++++++++++++++++++ package/xen/xen.mk | 9 +++++++++ 2 files changed, 27 insertions(+) diff --git a/package/xen/Config.in b/package/xen/Config.in index 3726504334..eb58c6928f 100644 --- a/package/xen/Config.in +++ b/package/xen/Config.in @@ -26,6 +26,9 @@ config BR2_PACKAGE_XEN_CUSTOM_VERSION config BR2_PACKAGE_XEN_CUSTOM_TARBALL bool "Custom tarball" +config BR2_PACKAGE_XEN_CUSTOM_GIT + bool "Custom Git repository" + endchoice if BR2_PACKAGE_XEN_CUSTOM_TARBALL @@ -45,6 +48,21 @@ config BR2_PACKAGE_XEN_VERSION default BR2_PACKAGE_XEN_CUSTOM_VERSION_VALUE \ if BR2_PACKAGE_XEN_CUSTOM_VERSION default "custom" if BR2_PACKAGE_XEN_CUSTOM_TARBALL + default BR2_PACKAGE_XEN_CUSTOM_REPO_VERSION \ + if BR2_PACKAGE_XEN_CUSTOM_GIT + +if BR2_PACKAGE_XEN_CUSTOM_GIT + +config BR2_PACKAGE_XEN_CUSTOM_REPO_URL + string "URL of custom repository" + +config BR2_PACKAGE_XEN_CUSTOM_REPO_VERSION + string "Custom repository version" + help + Revision to use in the typical format used by Git + E.G. a sha id, a tag, .. + +endif config BR2_PACKAGE_XEN_HYPERVISOR bool "Xen hypervisor" diff --git a/package/xen/xen.mk b/package/xen/xen.mk index 81568020d5..e22ac440c7 100644 --- a/package/xen/xen.mk +++ b/package/xen/xen.mk @@ -23,6 +23,9 @@ ifeq ($(BR2_PACKAGE_XEN_CUSTOM_TARBALL),y) XEN_TARBALL = $(call qstrip,$(BR2_PACKAGE_XEN_CUSTOM_TARBALL_LOCATION)) XEN_SITE = $(patsubst %/,%,$(dir $(XEN_TARBALL))) XEN_SOURCE = $(notdir $(XEN_TARBALL)) +else ifeq ($(BR2_PACKAGE_XEN_CUSTOM_GIT),y) +XEN_SITE = $(call qstrip,$(BR2_PACKAGE_XEN_CUSTOM_REPO_URL)) +XEN_SITE_METHOD = git else # Handle stable official Xen versions XEN_SITE = https://downloads.xenproject.org/release/xen/$(XEN_VERSION) @@ -107,4 +110,10 @@ $(error No tarball location specified. Please check BR2_PACKAGE_XEN_CUSTOM_TARBA endif endif +ifeq ($(BR2_PACKAGE_XEN_CUSTOM_GIT),y) +ifeq ($(call qstrip,$(BR2_PACKAGE_XEN_CUSTOM_REPO_URL)),) +$(error No repository specified. Please check BR2_PACKAGE_XEN_CUSTOM_REPO_URL) +endif +endif + $(eval $(autotools-package)) -- 2.43.0 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot