Skip to content

Commit

Permalink
kbuild: fix "mkdir -p" usage in scripts/package/mkspec
Browse files Browse the repository at this point in the history
"mkdir -p" does not only mean not to complain if the directory already
exists, but also to create the parent directories if needed. This patch
removes "lib" from the list of directories to create as we will also create
"lib/modules".

Signed-off-by: Rolf Eike Beer <[email protected]>
Signed-off-by: Sam Ravnborg <[email protected]>
  • Loading branch information
DerDakon authored and Sam Ravnborg committed Sep 25, 2006
1 parent 1ef9885 commit a5fa393
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/package/mkspec
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,9 @@ fi

echo "%install"
echo "%ifarch ia64"
echo 'mkdir -p $RPM_BUILD_ROOT/boot/efi $RPM_BUILD_ROOT/lib $RPM_BUILD_ROOT/lib/modules'
echo 'mkdir -p $RPM_BUILD_ROOT/boot/efi $RPM_BUILD_ROOT/lib/modules'
echo "%else"
echo 'mkdir -p $RPM_BUILD_ROOT/boot $RPM_BUILD_ROOT/lib $RPM_BUILD_ROOT/lib/modules'
echo 'mkdir -p $RPM_BUILD_ROOT/boot $RPM_BUILD_ROOT/lib/modules'
echo "%endif"

echo 'INSTALL_MOD_PATH=$RPM_BUILD_ROOT make %{_smp_mflags} modules_install'
Expand Down

0 comments on commit a5fa393

Please sign in to comment.