There were reports of users destroying their Fedora installs by a kernel tarball that replaces the /lib -> /usr/lib symlink. Let's remove the toplevel directories from the tarball to prevent this from happening.
Unified · Split
| @@ -138,7 +138,7 @@ KBUILD_CFLAGS += $(call cc-option,-mno-avx,) · 137 unmodified lines | ||
| 138 | 138 | KBUILD_CFLAGS += $(mflags-y) |
| 139 | 139 | KBUILD_AFLAGS += $(mflags-y) |
| 140 | 140 | |
| 141 | −archscripts: scripts_basic | |
| 141 | +archscripts: | |
| 142 | 142 | $(Q)$(MAKE) $(build)=arch/x86/tools relocs |
| 143 | 143 | |
| 144 | 144 | ### |
| @@ -27,7 +27,7 @@ endif · 26 unmodified lines | ||
| 27 | 27 | installed-mod-fw := $(addprefix $(INSTALL_FW_PATH)/,$(mod-fw)) |
| 28 | 28 | |
| 29 | 29 | installed-fw := $(addprefix $(INSTALL_FW_PATH)/,$(fw-shipped-all)) |
| 30 | −installed-fw-dirs := $(sort $(dir $(installed-fw))) $(INSTALL_FW_PATH)/./ | |
| 30 | +installed-fw-dirs := $(sort $(dir $(installed-fw))) $(INSTALL_FW_PATH)/. | |
| 31 | 31 | |
| 32 | 32 | # Workaround for make < 3.81, where .SECONDEXPANSION doesn't work. |
| 33 | 33 | PHONY += $(INSTALL_FW_PATH)/$$(%) install-all-dirs |
| @@ -42,7 +42,7 @@ quiet_cmd_install = INSTALL $(subst $(srctree)/,,$@) · 8 unmodified lines | ||
| 42 | 42 | $(installed-fw-dirs): |
| 43 | 43 | $(call cmd,mkdir) |
| 44 | 44 | |
| 45 | −$(installed-fw): $(INSTALL_FW_PATH)/%: $(obj)/% | $(INSTALL_FW_PATH)/$$(dir %) | |
| 45 | +$(installed-fw): $(INSTALL_FW_PATH)/%: $(obj)/% | $$(dir $(INSTALL_FW_PATH)/%) | |
| 46 | 46 | $(call cmd,install) |
| 47 | 47 | |
| 48 | 48 | PHONY += __fw_install __fw_modinst FORCE |
| @@ -109,7 +109,7 @@ esac · 108 unmodified lines | ||
| 109 | 109 | if tar --owner=root --group=root --help >/dev/null 2>&1; then |
| 110 | 110 | opts="--owner=root --group=root" |
| 111 | 111 | fi |
| 112 | − tar cf - . $opts | ${compress} > "${tarball}${file_ext}" | |
| 112 | + tar cf - boot/* lib/* $opts | ${compress} > "${tarball}${file_ext}" | |
| 113 | 113 | ) |
| 114 | 114 | |
| 115 | 115 | echo "Tarball successfully created in ${tarball}${file_ext}" |