(In reply to Jiri Slaby from comment #2) > We can also try pinging upstream about this, so that autogenerated headers > are not removed on make clean... This should fix it. Let's see what upstream says. --- linux-5.2-rc3-master.orig/arch/s390/tools/Makefile +++ linux-5.2-rc3-master/arch/s390/tools/Makefile @@ -7,6 +7,7 @@ kapi := arch/$(ARCH)/include/generated/a kapi-hdrs-y := $(kapi)/facility-defs.h $(kapi)/dis-defs.h targets += $(addprefix ../../../,$(kapi-hdrs-y)) +no-clean-files += $(targets) PHONY += kapi kapi: $(kapi-hdrs-y)