trying to fix following warning: 'override: reassigning to symbol SYSFS_DEPRECATED_V2'
[linux-2.6.git] / Makefile
index 07b9005..0bcb0bf 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -10,7 +10,7 @@ SHA1SUM       = sha1sum
 SED    = sed
 
 # this is passed on the command line as the full path to <build>/SPECS/kernel.spec
-SPECFILE = kernel.spec
+SPECFILE = kernel-2.6.spec
 
 # Thierry - when called from within the build, PWD is /build
 PWD=$(shell pwd)
@@ -90,7 +90,11 @@ srpm: sources
         for downloaded in $(SOURCEFILES) ; do cp ../$$downloaded . ; done ; \
         cat config-vserver >> config-generic ; \
         cat config-planetlab >> config-generic ; \
-        sed -i -e s,CONFIG_IPV6=m,CONFIG_IPV6=y, config-generic)
+        sed -i -e "s,CONFIG_IPV6=m,CONFIG_IPV6=y,g" config-generic ;\
+        sed -i -e "s,# CONFIG_SYSFS_DEPRECATED is not set,CONFIG_SYSFS_DEPRECATED=y,g" config-generic ;\
+        sed -i -e "s,# CONFIG_SYSFS_DEPRECATED_V2 is not set,CONFIG_SYSFS_DEPRECATED_V2=y,g" config-generic ;\
+        sed -i -e "s,CONFIG_MODULE_SIG=y,CONFIG_MODULE_SIG=n,g" config-generic-rhel ;\
+        sed -i -e "/\# CONFIG_KVM is not set/d" config-x86-generic-rhel)
        ./rpmmacros.sh
        export HOME=$(shell pwd) ; rpmbuild $(RPMDIRDEFS) $(RPMDEFS) --nodeps -bs $(SPECFILE)