Commit 031ecc6de7d17752c57720a118a37e97a8454872
Committed by
Sam Ravnborg
1 parent
c30a02e022
Exists in
master
and in
20 other branches
kbuild: add dependency on kernel.release to the package targets
The binrpm-pkg target uses KERNELRELEASE when generated its .spec file. When binrpm-pkg was the first build target run in a tree it generated the .spec before kernel.release so the Version: tag in the .spec was empty. I don't know if this is the best fix, but binrpm-pkg works when we explicitly build kernel.release before descending into package-dir. Signed-off-by: Zach Brown <zach.brown@oracle.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Showing 1 changed file with 2 additions and 2 deletions Side-by-side Diff
Makefile
... | ... | @@ -984,9 +984,9 @@ |
984 | 984 | # rpm target kept for backward compatibility |
985 | 985 | package-dir := $(srctree)/scripts/package |
986 | 986 | |
987 | -%pkg: FORCE | |
987 | +%pkg: include/config/kernel.release FORCE | |
988 | 988 | $(Q)$(MAKE) $(build)=$(package-dir) $@ |
989 | -rpm: FORCE | |
989 | +rpm: include/config/kernel.release FORCE | |
990 | 990 | $(Q)$(MAKE) $(build)=$(package-dir) $@ |
991 | 991 | |
992 | 992 |