Author: shadzik Date: Thu May 4 01:57:48 2006 GMT Module: SPECS Tag: HEAD ---- Log message: - new way of kernel module building
---- Files affected: SPECS: dLAN.spec (1.2 -> 1.3) ---- Diffs: ================================================================ Index: SPECS/dLAN.spec diff -u SPECS/dLAN.spec:1.2 SPECS/dLAN.spec:1.3 --- SPECS/dLAN.spec:1.2 Thu May 4 03:45:02 2006 +++ SPECS/dLAN.spec Thu May 4 03:57:43 2006 @@ -87,25 +87,30 @@ if [ ! -r "%{_kernelsrcdir}/config-$cfg" ]; then exit 1 fi - rm -rf include - install -d include/{linux,config} - ln -sf %{_kernelsrcdir}/config-$cfg .config - ln -sf %{_kernelsrcdir}/include/linux/autoconf-$cfg.h include/linux/autoconf.h - ln -sf %{_kernelsrcdir}/include/asm-%{_target_base_arch} include/asm - ln -sf %{_kernelsrcdir}/Module.symvers-$cfg Module.symvers - touch include/config/MARKER - - %{__make} -C %{_kernelsrcdir} modules - CC="%{__cc}" CPP="%{__cpp}" \ - M=$PWD O=$PWD \ + install -d o/include/linux + ln -sf %{_kernelsrcdir}/config-$cfg o/.config + ln -sf %{_kernelsrcdir}/Module.symvers-$cfg o/Module.symvers + ln -sf %{_kernelsrcdir}/include/linux/autoconf-$cfg.h o/include/linux/autoconf.h + %{__make} -C %{_kernelsrcdir} O=$PWD/o prepare scripts + %{__make} -C %{_kernelsrcdir} clean \ + RCS_FIND_IGNORE="-name '*.ko' -o" \ + M=$PWD O=$PWD/o \ %{?with_verbose:V=1} - for mod in *.ko; do - mod=$(echo "$mod" | sed -e 's#\.ko##g') - mv $mod.ko ../$mod-$cfg.ko - done + %{__make} -C %{_kernelsrcdir} modules \ +%if "%{_target_base_arch}" != "%{_arch}" + ARCH=%{_target_base_arch} \ + CROSS_COMPILE=%{_target_base_cpu}-pld-linux- \ +%endif + HOSTCC="%{__cc}" \ + CPP="%{__cpp}" \ + M=$PWD O=$PWD/o \ + %{?with_verbose:V=1} + mv devolo_usb{,-$cfg}.ko done %endif +%endif + %install rm -rf $RPM_BUILD_ROOT install -d $RPM_BUILD_ROOT @@ -170,6 +175,9 @@ All persons listed below can be reached at <cvs_login>@pld-linux.org $Log$ +Revision 1.3 2006/05/04 01:57:43 shadzik +- new way of kernel module building + Revision 1.2 2006/05/04 01:45:02 shadzik - added patch, should build now ================================================================ ---- CVS-web: http://cvs.pld-linux.org/SPECS/dLAN.spec?r1=1.2&r2=1.3&f=u _______________________________________________ pld-cvs-commit mailing list pld-cvs-commit@lists.pld-linux.org http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit