payloads/external/LinuxBoot: Add curl flag
add --show-error curl flag to see the error message, even on silent mode. Signed-off-by: Marcello Sylvester Bauer <sylvblck@sylv.io> Change-Id: I4ad40718caab60413ffe9c1503a9870cb875dd43 Reviewed-on: https://review.coreboot.org/c/coreboot/+/35169 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Patrick Georgi <pgeorgi@google.com>
This commit is contained in:
parent
d9a6afe1a4
commit
58e033d97d
|
@ -33,7 +33,7 @@ OBJCOPY:=$(LINUXBOOT_CROSS_COMPILE)objcopy
|
||||||
ifeq ($(CONFIG_LINUXBOOT_KERNEL_CUSTOM),y)
|
ifeq ($(CONFIG_LINUXBOOT_KERNEL_CUSTOM),y)
|
||||||
kernel_version:=$(CONFIG_LINUXBOOT_KERNEL_CUSTOM_VERSION)
|
kernel_version:=$(CONFIG_LINUXBOOT_KERNEL_CUSTOM_VERSION)
|
||||||
else
|
else
|
||||||
kernel_version:=$(shell curl -s -k https://www.kernel.org/feeds/kdist.xml | \
|
kernel_version:=$(shell curl -sS -k https://www.kernel.org/feeds/kdist.xml | \
|
||||||
sed -n -e 's@.*<guid isPermaLink="false">\(.*\)</guid>.*@\1@p' | \
|
sed -n -e 's@.*<guid isPermaLink="false">\(.*\)</guid>.*@\1@p' | \
|
||||||
awk -F ',' '/$(TAG-y)/{ print $$3 }' | \
|
awk -F ',' '/$(TAG-y)/{ print $$3 }' | \
|
||||||
head -n 1)
|
head -n 1)
|
||||||
|
@ -67,7 +67,7 @@ ifneq ($(shell [[ -d "$(kernel_dir)" && -f "$(kernel_dir)/$(decompress_flag)" ]]
|
||||||
if [[ ! -f $(tarball_dir)/$(kernel_tarball).xz && ! -f $(tarball_dir)/$(kernel_tarball).xz ]]; then \
|
if [[ ! -f $(tarball_dir)/$(kernel_tarball).xz && ! -f $(tarball_dir)/$(kernel_tarball).xz ]]; then \
|
||||||
echo " WWW $(kernel_tarball).xz"; \
|
echo " WWW $(kernel_tarball).xz"; \
|
||||||
cd $(tarball_dir); \
|
cd $(tarball_dir); \
|
||||||
curl -OLs "$(kernel_mirror_path)/$(kernel_tarball).xz"; \
|
curl -OLSs "$(kernel_mirror_path)/$(kernel_tarball).xz"; \
|
||||||
cd $(pwd); \
|
cd $(pwd); \
|
||||||
fi
|
fi
|
||||||
endif
|
endif
|
||||||
|
|
Loading…
Reference in New Issue