summaryrefslogtreecommitdiffstats
path: root/payloads
diff options
context:
space:
mode:
authorArthur Heymans <arthur@aheymans.xyz>2022-06-15 15:19:42 +0200
committerArthur Heymans <arthur@aheymans.xyz>2022-06-17 07:12:05 +0000
commit241c1c6d9435a2edac64e2af79c4a8c571335550 (patch)
tree085329144a1bb1de09b3d49f8ee11f26e375e074 /payloads
parent01dbba5e3dd8ad5c3258157784291461862b9c01 (diff)
downloadcoreboot-241c1c6d9435a2edac64e2af79c4a8c571335550.tar.gz
coreboot-241c1c6d9435a2edac64e2af79c4a8c571335550.tar.bz2
coreboot-241c1c6d9435a2edac64e2af79c4a8c571335550.zip
payloads/LinuxBoot: Use wildcards
If no directory is found then no harm is done either. Change-Id: I0842ec106f11eca80bf01fd4771e1dfc4588b3fa Signed-off-by: Arthur Heymans <arthur@aheymans.xyz> Reviewed-on: https://review.coreboot.org/c/coreboot/+/65153 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Elyes Haouas <ehaouas@noos.fr> Reviewed-by: Paul Menzel <paulepanter@mailbox.org>
Diffstat (limited to 'payloads')
-rw-r--r--payloads/external/LinuxBoot/Makefile5
1 files changed, 1 insertions, 4 deletions
diff --git a/payloads/external/LinuxBoot/Makefile b/payloads/external/LinuxBoot/Makefile
index afe9c9e22c85..cd9f7eaa0e7a 100644
--- a/payloads/external/LinuxBoot/Makefile
+++ b/payloads/external/LinuxBoot/Makefile
@@ -1,7 +1,6 @@
## SPDX-License-Identifier: GPL-2.0-only
project_dir=linuxboot
-kernel_names=$(shell ls $(project_dir) | grep kernel)
unexport $(COREBOOT_EXPORTS)
@@ -52,9 +51,7 @@ endif
linuxboot: kernel initramfs_compressed
clean:
- if [ ! -z "$(kernel_names)" ]; then \
- rm -rf $(project_dir)/kernel*; \
- fi
+ rm -rf $(project_dir)/kernel*
rm -f $(project_dir)/u-root
rm -f $(project_dir)/initramfs*
rm -f $(project_dir)/bzImage