SPECS (LINUX_2_6): kernel.spec - use kernel-config.awk; drop python dependancy

sparky sparky at pld-linux.org
Fri Sep 19 02:44:03 CEST 2008


Author: sparky                       Date: Fri Sep 19 00:44:03 2008 GMT
Module: SPECS                         Tag: LINUX_2_6
---- Log message:
- use kernel-config.awk; drop python dependancy

---- Files affected:
SPECS:
   kernel.spec (1.441.2.1951 -> 1.441.2.1952) 

---- Diffs:

================================================================
Index: SPECS/kernel.spec
diff -u SPECS/kernel.spec:1.441.2.1951 SPECS/kernel.spec:1.441.2.1952
--- SPECS/kernel.spec:1.441.2.1951	Thu Sep 18 11:28:41 2008
+++ SPECS/kernel.spec	Fri Sep 19 02:43:57 2008
@@ -154,7 +154,7 @@
 Source3:	kernel-autoconf.h
 Source4:	kernel-config.h
 Source5:	kernel-ppclibs.Makefile
-Source6:	kernel-config.py
+Source6:	kernel-config.awk
 Source7:	kernel-module-build.pl
 
 Source19:	kernel-multiarch.config
@@ -357,8 +357,6 @@
 # for hostname command
 BuildRequires:	net-tools
 BuildRequires:	perl-base
-BuildRequires:	python
-BuildRequires:	python-modules
 BuildRequires:	rpmbuild(macros) >= 1.217
 Autoreqprov:	no
 Requires(post):	coreutils
@@ -1057,9 +1055,9 @@
 	Config="%{_target_base_arch}"
 	KernelVer=%{kernel_release}
 	echo "Building config file using $Config.conf..."
-	cat $RPM_SOURCE_DIR/kernel-$Config.config > %{defconfig}
-	./kernel-config.py %{_target_base_arch} $RPM_SOURCE_DIR/kernel-multiarch.config \
-		%{defconfig} %{defconfig}
+	%{__awk} -v basearch=%{_target_base_arch} -v arch=%{_target_cpu} -f %{SOURCE6} \
+		$RPM_SOURCE_DIR/kernel-$Config.config $RPM_SOURCE_DIR/kernel-multiarch.config \
+		> %{defconfig}
 	TuneUpConfigForIX86 %{defconfig}
 
 # netfilter
@@ -1680,6 +1678,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.441.2.1952  2008/09/19 00:43:57  sparky
+- use kernel-config.awk; drop python dependancy
+
 Revision 1.441.2.1951  2008/09/18 09:28:41  pluto
 - vs22: not applicable, not usable, buuum!
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SPECS/kernel.spec?r1=1.441.2.1951&r2=1.441.2.1952&f=u



More information about the pld-cvs-commit mailing list