diff options
author | Zach Brown <zach.brown@oracle.com> | 2006-06-09 01:12:37 -0400 |
---|---|---|
committer | Sam Ravnborg <sam@mars.ravnborg.org> | 2006-06-09 10:31:44 -0400 |
commit | 031ecc6de7d17752c57720a118a37e97a8454872 (patch) | |
tree | a6f00ae22ecc879a123cb1005c4cc0bfdd75d499 /Makefile | |
parent | c30a02e022576c1b49a6c9b39ad83559167399c6 (diff) |
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>
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -984,9 +984,9 @@ distclean: mrproper | |||
984 | # rpm target kept for backward compatibility | 984 | # rpm target kept for backward compatibility |
985 | package-dir := $(srctree)/scripts/package | 985 | package-dir := $(srctree)/scripts/package |
986 | 986 | ||
987 | %pkg: FORCE | 987 | %pkg: include/config/kernel.release FORCE |
988 | $(Q)$(MAKE) $(build)=$(package-dir) $@ | 988 | $(Q)$(MAKE) $(build)=$(package-dir) $@ |
989 | rpm: FORCE | 989 | rpm: include/config/kernel.release FORCE |
990 | $(Q)$(MAKE) $(build)=$(package-dir) $@ | 990 | $(Q)$(MAKE) $(build)=$(package-dir) $@ |
991 | 991 | ||
992 | 992 | ||