[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen master] tools: --with-system-{ovmf, seabios, ipxe} should provide absolute paths
commit 6f28c09aa96b636ed4027cada570c1f2b8dc590f Author: Wei Liu <wei.liu2@xxxxxxxxxx> AuthorDate: Mon Jul 16 15:02:55 2018 +0100 Commit: Wei Liu <wei.liu2@xxxxxxxxxx> CommitDate: Mon Jul 16 16:09:18 2018 +0100 tools: --with-system-{ovmf,seabios,ipxe} should provide absolute paths The paths shouldn't be set to "yes". We ask the user to set absolute paths because Xen's build system doesn't know where to search, and the build machine doesn't necessarily have those binaries present in the first place. Reported-by: Anthony Perard <anthony.perard@xxxxxxxxxx> Signed-off-by: Wei Liu <wei.liu2@xxxxxxxxxx> Acked-by: Ian Jackson <ian.jackson@xxxxxxxxxxxxx> --- tools/configure | 9 ++++++--- tools/configure.ac | 9 ++++++--- 2 files changed, 12 insertions(+), 6 deletions(-) diff --git a/tools/configure b/tools/configure index 4bff2c02fd..3b55fb2e36 100755 --- a/tools/configure +++ b/tools/configure @@ -4564,7 +4564,8 @@ if test "${with_system_seabios+set}" = set; then : seabios=n case $withval in no) seabios_path= ;; - *) seabios_path=$withval ;; + /*) seabios_path=$withval ;; + *) as_fn_error $? "Seabios specified, but is not an absolute path" "$LINENO" 5 ;; esac fi @@ -4587,7 +4588,8 @@ if test "${with_system_ovmf+set}" = set; then : ovmf=n case $withval in no) ovmf_path= ;; - *) ovmf_path=$withval ;; + /*) ovmf_path=$withval ;; + *) as_fn_error $? "OVMF specified, but is not an absolute path" "$LINENO" 5 ;; esac fi @@ -4610,7 +4612,8 @@ if test "${with_system_ipxe+set}" = set; then : ipxe=n case $withval in no) ipxe_path= ;; - *) ipxe_path=$withval ;; + /*) ipxe_path=$withval ;; + *) as_fn_error $? "IPXE specified, but is not an absolute path" "$LINENO" 5 ;; esac # IPXE depends on Rombios diff --git a/tools/configure.ac b/tools/configure.ac index 2db2356380..0f85472602 100644 --- a/tools/configure.ac +++ b/tools/configure.ac @@ -216,7 +216,8 @@ AC_ARG_WITH([system-seabios], seabios=n case $withval in no) seabios_path= ;; - *) seabios_path=$withval ;; + /*) seabios_path=$withval ;; + *) AC_MSG_ERROR([Seabios specified, but is not an absolute path]) ;; esac ],[]) AS_IF([test "x$seabios" = "xy" -o -n "$seabios_path" ], [ @@ -233,7 +234,8 @@ AC_ARG_WITH([system-ovmf], ovmf=n case $withval in no) ovmf_path= ;; - *) ovmf_path=$withval ;; + /*) ovmf_path=$withval ;; + *) AC_MSG_ERROR([OVMF specified, but is not an absolute path]) ;; esac ],[]) AS_IF([test "x$ovmf" = "xy" -o -n "$ovmf_path" ], [ @@ -250,7 +252,8 @@ AC_ARG_WITH([system-ipxe], ipxe=n case $withval in no) ipxe_path= ;; - *) ipxe_path=$withval ;; + /*) ipxe_path=$withval ;; + *) AC_MSG_ERROR([IPXE specified, but is not an absolute path]) ;; esac # IPXE depends on Rombios -- generated by git-patchbot for /home/xen/git/xen.git#master _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxxxxxxxxx https://lists.xenproject.org/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |