VisionFive2 Linux kernel

StarFive Tech Linux Kernel for VisionFive (JH7110) boards (mirror)

More than 9999 Commits   32 Branches   54 Tags
author: David S. Miller <davem@davemloft.net> 2021-02-16 13:14:06 -0800 committer: David S. Miller <davem@davemloft.net> 2021-02-16 13:14:06 -0800 commit: b8af417e4d93caeefb89bbfbd56ec95dedd8dab5 parent: 9ec5eea5b6acfae7279203097eeec5d02d01d9b7
Commit Summary:
Merge git://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf-next
Diffstat:
1 file changed, 10 insertions, 1 deletion
diff --git a/Makefile b/Makefile
index b83df651018b..c03225c359a4 100644
--- a/Makefile
+++ b/Makefile
@@ -1082,6 +1082,17 @@ ifdef CONFIG_STACK_VALIDATION
   endif
 endif
 
+PHONY += resolve_btfids_clean
+
+resolve_btfids_O = $(abspath $(objtree))/tools/bpf/resolve_btfids
+
+# tools/bpf/resolve_btfids directory might not exist
+# in output directory, skip its clean in that case
+resolve_btfids_clean:
+ifneq ($(wildcard $(resolve_btfids_O)),)
+	$(Q)$(MAKE) -sC $(srctree)/tools/bpf/resolve_btfids O=$(resolve_btfids_O) clean
+endif
+
 ifdef CONFIG_BPF
 ifdef CONFIG_DEBUG_INFO_BTF
   ifeq ($(has_libelf),1)
@@ -1491,7 +1502,7 @@ vmlinuxclean:
 	$(Q)$(CONFIG_SHELL) $(srctree)/scripts/link-vmlinux.sh clean
 	$(Q)$(if $(ARCH_POSTLINK), $(MAKE) -f $(ARCH_POSTLINK) clean)
 
-clean: archclean vmlinuxclean
+clean: archclean vmlinuxclean resolve_btfids_clean
 
 # mrproper - Delete all generated files, including .config
 #