lkml.org 
[lkml]   [2006]   [May]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH] Add dependency on kernel.release to the package targets
Date

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>
---

Makefile | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)

Index: 2.6.17-rc3-mm1-rds/Makefile
===================================================================
--- 2.6.17-rc3-mm1-rds.orig/Makefile
+++ 2.6.17-rc3-mm1-rds/Makefile
@@ -986,9 +986,9 @@ distclean: mrproper
# rpm target kept for backward compatibility
package-dir := $(srctree)/scripts/package

-%pkg: FORCE
+%pkg: include/config/kernel.release FORCE
$(Q)$(MAKE) $(build)=$(package-dir) $@
-rpm: FORCE
+rpm: include/config/kernel.release FORCE
$(Q)$(MAKE) $(build)=$(package-dir) $@


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
\
 
 \ /
  Last update: 2006-05-12 23:37    [W:1.375 / U:0.004 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site