kernel.spec is the last piece that resides outside the rpmbuild/ directory. Move all the RPM-related files to rpmbuild/ consistently.
Showing the changes to scripts (3 of 5 files). Show all
Unified · Split
| @@ -69,9 +69,9 @@ $(linux-tarballs): .tmp_HEAD FORCE · 68 unmodified lines | ||
| 69 | 69 | # --------------------------------------------------------------------------- |
| 70 | 70 | |
| 71 | 71 | quiet_cmd_mkspec = GEN $@ |
| 72 | − cmd_mkspec = $(srctree)/scripts/package/mkspec > $@ | |
| 72 | + cmd_mkspec = $(srctree)/scripts/package/mkspec $@ | |
| 73 | 73 | |
| 74 | −kernel.spec: FORCE | |
| 74 | +rpmbuild/SPECS/kernel.spec: FORCE | |
| 75 | 75 | $(call cmd,mkspec) |
| 76 | 76 | |
| 77 | 77 | PHONY += rpm-sources |
| @@ -88,8 +88,8 @@ srcrpm-pkg: private build-type := s · 10 unmodified lines | ||
| 88 | 88 | binrpm-pkg: private build-type := b |
| 89 | 89 | |
| 90 | 90 | rpm-pkg srcrpm-pkg: rpm-sources |
| 91 | −rpm-pkg srcrpm-pkg binrpm-pkg: kernel.spec | |
| 92 | − +$(strip rpmbuild -b$(build-type) kernel.spec \ | |
| 91 | +rpm-pkg srcrpm-pkg binrpm-pkg: rpmbuild/SPECS/kernel.spec | |
| 92 | + +$(strip rpmbuild -b$(build-type) rpmbuild/SPECS/kernel.spec \ | |
| 93 | 93 | --define='_topdir $(abspath rpmbuild)' \ |
| 94 | 94 | $(if $(filter a b, $(build-type)), \ |
| 95 | 95 | --target $(UTS_MACHINE)-linux --build-in-place --noprep --define='_smp_mflags %{nil}' \ |
| @@ -9,6 +9,12 @@ · 8 unmodified lines | ||
| 9 | 9 | # Patched for non-x86 by Opencon (L) 2002 <opencon@rio.skydome.net> |
| 10 | 10 | # |
| 11 | 11 | |
| 12 | +output=$1 | |
| 13 | + | |
| 14 | +mkdir -p "$(dirname "${output}")" | |
| 15 | + | |
| 16 | +exec >"${output}" | |
| 17 | + | |
| 12 | 18 | if grep -q CONFIG_MODULES=y include/config/auto.conf; then |
| 13 | 19 | echo '%define with_devel %{?_without_devel: 0} %{?!_without_devel: 1}' |
| 14 | 20 | else |
| @@ -38,4 +38,4 @@ rm -rf include/ksym · 37 unmodified lines | ||
| 38 | 38 | |
| 39 | 39 | find . -name '*.usyms' | xargs rm -f |
| 40 | 40 | |
| 41 | −rm -f binkernel.spec | |
| 41 | +rm -f *.spec | |