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>
This commit is contained in:
Arthur Heymans 2022-06-15 15:19:42 +02:00
parent 01dbba5e3d
commit 241c1c6d94
1 changed files with 1 additions and 4 deletions

View File

@ -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