Skip to content

Commit

Permalink
kbuild: Fix packaging targets with relative $(srctree)
Browse files Browse the repository at this point in the history
All other users of Makefile.build set $(obj) to the name of the
subdirectory to build. Do the same for the packaging targets, otherwise
the build fails if $(srctree) is a relative directory:

    $ make O=build tar-pkg
    make[1]: Entering directory `/home/mmarek/linux-2.6/build'
      CHK     include/config/kernel.release
    ../scripts/Makefile.build:44: ../../scripts/package/Makefile: No such file or directory
    make[2]: *** No rule to make target `../../scripts/package/Makefile'.  Stop.

Fixes: 9da0763 ("kbuild: Use relative path when building in a subdir of the source tree")
Signed-off-by: Michal Marek <[email protected]>
  • Loading branch information
michal42 committed Jul 4, 2014
1 parent 066b7ed commit c79624c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -1176,7 +1176,7 @@ distclean: mrproper
# Packaging of the kernel to various formats
# ---------------------------------------------------------------------------
# rpm target kept for backward compatibility
package-dir := $(srctree)/scripts/package
package-dir := scripts/package

%src-pkg: FORCE
$(Q)$(MAKE) $(build)=$(package-dir) $@
Expand Down

0 comments on commit c79624c

Please sign in to comment.