aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/Makefile.clean
blob: 6ead00ec7313b3e4330a8de5f1342f2da1d6eb84 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
# SPDX-License-Identifier: GPL-2.0
# ==========================================================================
# Cleaning up
# ==========================================================================

src := $(srcroot)/$(obj)

PHONY := __clean
__clean:

include $(srctree)/scripts/Kbuild.include
include $(kbuild-file)

# Figure out what we need to build from the various variables
# ==========================================================================

subdir-ymn := $(sort $(subdir-y) $(subdir-m) $(subdir-) \
		$(patsubst %/,%, $(filter %/, $(obj-y) $(obj-m) $(obj-))))

# Add subdir path

subdir-ymn	:= $(addprefix $(obj)/,$(subdir-ymn))

# build a list of files to remove, usually relative to the current
# directory

__clean-files	:= \
	$(clean-files) $(targets) $(hostprogs) $(userprogs) \
	$(extra-y) $(extra-m) $(extra-) \
	$(always-y) $(always-m) $(always-) \
	$(hostprogs-always-y) $(hostprogs-always-m) $(hostprogs-always-) \
	$(userprogs-always-y) $(userprogs-always-m) $(userprogs-always-)

__clean-files   := $(filter-out $(no-clean-files), $(__clean-files))

__clean-files   := $(wildcard $(addprefix $(obj)/, $(__clean-files)))

# ==========================================================================

# To make this rule robust against "Argument list too long" error,
# remove $(obj)/ prefix, and restore it by a shell command.
quiet_cmd_clean = CLEAN   $(obj)
      cmd_clean = printf '$(obj)/%s ' $(patsubst $(obj)/%,%,$(__clean-files)) | xargs rm -rf

__clean: $(subdir-ymn)
ifneq ($(strip $(__clean-files)),)
	$(call cmd,clean)
endif
	@:


# ===========================================================================
# Generic stuff
# ===========================================================================

# Descending
# ---------------------------------------------------------------------------

PHONY += $(subdir-ymn)
$(subdir-ymn):
	$(Q)$(MAKE) $(clean)=$@

.PHONY: $(PHONY)
lc269.c?id=d33c3471047fc54966621d19329e6a23ebc8ec50&follow=1'>ALSA: hda/realtek: Fix mute led for HP Laptop 15-dw4xxPraful Adiga1-0/+1 2025-09-18drm/amdgpu: suspend KFD and KGD user queues for S0ixAlex Deucher1-14/+10 2025-09-18drm/amdkfd: add proper handling for S0ixAlex Deucher3-4/+60 2025-09-18io_uring: include dying ring in task_work "should cancel" stateJens Axboe5-7/+9 2025-09-18octeontx2-pf: Fix use-after-free bugs in otx2_sync_tstamp()Duoming Zhou1-1/+1 2025-09-18cnic: Fix use-after-free bugs in cnic_delete_taskDuoming Zhou1-2/+1 2025-09-18devlink rate: Remove unnecessary 'static' from a couple placesCosmin Ratiu1-2/+2 2025-09-18MAINTAINERS: update sundance entryDenis Kirjanov1-1/+1 2025-09-18net: liquidio: fix overflow in octeon_init_instr_queue()Alexey Nepomnyashih1-1/+1 2025-09-18net: clear sk->sk_ino in sk_set_socket(sk, NULL)Eric Dumazet1-2/+3 2025-09-18Revert "net/mlx5e: Update and set Xon/Xoff upon port speed set"Tariq Toukan1-2/+0 2025-09-18LoongArch: KVM: Avoid copy_*_user() with lock hold in kvm_pch_pic_regs_access()Bibo Mao1-7/+14 2025-09-18LoongArch: KVM: Avoid copy_*_user() with lock hold in kvm_eiointc_sw_status_a...Bibo Mao1-12/+17 2025-09-18LoongArch: KVM: Avoid copy_*_user() with lock hold in kvm_eiointc_regs_access()Bibo Mao1-12/+21 2025-09-18LoongArch: KVM: Avoid copy_*_user() with lock hold in kvm_eiointc_ctrl_access()Bibo Mao1-10/+15 2025-09-18LoongArch: KVM: Fix VM migration failure with PTW enabledBibo Mao2-8/+20 2025-09-18LoongArch: KVM: Remove unused returns and semicolonsTao Cui1-4/+2 2025-09-18LoongArch: vDSO: Check kcalloc() result in init_vdso()Guangshuo Li1-0/+3 2025-09-18LoongArch: Fix unreliable stack for live patchingTiezhu Yang1-1/+2 2025-09-18LoongArch: Replace sprintf() with sysfs_emit()Tao Cui1-1/+1 2025-09-18LoongArch: Check the return value when creating kobjTao Cui1-0/+2 2025-09-18LoongArch: Align ACPI structures if ARCH_STRICT_ALIGN enabledHuacai Chen1-4/+3 2025-09-18LoongArch: Update help info of ARCH_STRICT_ALIGNTiezhu Yang1-2/+6 2025-09-18LoongArch: Handle jump tables options for RUSTTiezhu Yang2-0/+9 2025-09-18LoongArch: Make LTO case independent in MakefileTiezhu Yang1-5/+5 2025-09-18objtool/LoongArch: Mark special atomic instruction as INSN_BUG typeTiezhu Yang2-0/+33 2025-09-18objtool/LoongArch: Mark types based on break immediate codeTiezhu Yang1-3/+9 2025-09-18btrfs: reject invalid compression levelQu Wenruo3-18/+33 2025-09-18selftests: tls: test skb copy under mem pressure and OOBJakub Kicinski1-0/+16 2025-09-18tls: make sure to abort the stream if headers are bogusJakub Kicinski3-7/+11 2025-09-18crypto: af_alg - Disallow concurrent writes in af_alg_sendmsgHerbert Xu2-4/+13 2025-09-18crypto: af_alg - Set merge to zero early in af_alg_sendmsgHerbert Xu1-1/+2 2025-09-18btrfs: ref-verify: handle damaged extent root treeDavid Sterba1-1/+8 2025-09-18btrfs: tree-checker: fix the incorrect inode ref size checkQu Wenruo1-2/+2 2025-09-17smb: client: let smbd_destroy() call disable_work_sync(&info->post_send_credi...Stefan Metzmacher1-0/+3 2025-09-17smb: client: use disable[_delayed]_work_sync in smbdirect.cStefan Metzmacher1-3/+3 2025-09-17smb: client: fix filename matching of deferred filesPaulo Alcantara3-27/+21 2025-09-17smb: client: let recv_done verify data_offset, data_length and remaining_data...Stefan Metzmacher1-1/+19 2025-09-17drm/xe/guc: Set RCS/CCS yield policyDaniele Ceraolo Spurio6-5/+98