diff options
author | Masahiro Yamada <masahiroy@kernel.org> | 2023-09-30 19:38:47 +0900 |
---|---|---|
committer | Masahiro Yamada <masahiroy@kernel.org> | 2023-10-03 20:49:09 +0900 |
commit | ffa46bbc5892ebba8a95c839dc302cad7f22c209 (patch) | |
tree | ce75b6f4fb256c59c02c6631c3b34a65ce707f32 /scripts/package | |
parent | 4074532758c5c367d3fcb8d124150824a254659d (diff) |
kbuild: rpm-pkg: generate kernel.spec in rpmbuild/SPECS/
kernel.spec is the last piece that resides outside the rpmbuild/
directory. Move all the RPM-related files to rpmbuild/ consistently.
Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Reviewed-by: Nathan Chancellor <nathan@kernel.org>
Tested-by: Nathan Chancellor <nathan@kernel.org>
Diffstat (limited to 'scripts/package')
-rwxr-xr-x | scripts/package/mkspec | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/scripts/package/mkspec b/scripts/package/mkspec index d41608efb747..ce201bfa8377 100755 --- a/scripts/package/mkspec +++ b/scripts/package/mkspec @@ -9,6 +9,12 @@ # Patched for non-x86 by Opencon (L) 2002 <opencon@rio.skydome.net> # +output=$1 + +mkdir -p "$(dirname "${output}")" + +exec >"${output}" + if grep -q CONFIG_MODULES=y include/config/auto.conf; then echo '%define with_devel %{?_without_devel: 0} %{?!_without_devel: 1}' else |