From 241c1c6d9435a2edac64e2af79c4a8c571335550 Mon Sep 17 00:00:00 2001 From: Arthur Heymans Date: Wed, 15 Jun 2022 15:19:42 +0200 Subject: payloads/LinuxBoot: Use wildcards If no directory is found then no harm is done either. Change-Id: I0842ec106f11eca80bf01fd4771e1dfc4588b3fa Signed-off-by: Arthur Heymans Reviewed-on: https://review.coreboot.org/c/coreboot/+/65153 Tested-by: build bot (Jenkins) Reviewed-by: Elyes Haouas Reviewed-by: Paul Menzel --- payloads/external/LinuxBoot/Makefile | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'payloads') diff --git a/payloads/external/LinuxBoot/Makefile b/payloads/external/LinuxBoot/Makefile index afe9c9e22c..cd9f7eaa0e 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 -- cgit v1.2.3