>>>>> "ural" == Ural Khassanov <[EMAIL PROTECTED]> writes:

ural> 1. To speed up rebuilding process, I manually %define in specfile:
ural> build_up=1, build_smp=0, build_enterprise=0
ural> Generated version.h (/usr/include/linux/version.h for kernel-headers and 
ural> kernel-source):
ural> ---------------------------------------------
ural> #include <linux/rhconfig.h>
ural> #else
ural> #define UTS_RELEASE "2.4.5-9mdk"
ural> #endif
ural> #define LINUX_VERSION_CODE 132101
ural> #define KERNEL_VERSION(a,b,c) (((a) << 16) + ((b) << 8) + (c))
ural> #define LINUX_VERSION_CODE 132101
ural> #define KERNEL_VERSION(a,b,c) (((a) << 16) + ((b) << 8) + (c))
ural> ---------------------------------------------
ural> which errors: "#else/#endif without preceding #if"

Just now, this is a bit hack to be able to compile test kernels only
once at a time (and up should always be there).  When I have this
stuff ready (remaining problem is here in kernel rpm: around line 1200
of spec file:)

echo "#include <linux/rhconfig.h>" >> version.h
keyword=if
for i in smp enterprise up; do
    if [ -d ../../savedheaders/%{_target_cpu}/$i -a -f 
../../savedheaders/%{_target_cpu}/$i/version.h ]; then
        if [ "$i" = up ]; then
            echo "#else" >> version.h
        else
            echo "#$keyword defined(__module__$i)" >> version.h
            keyword=elif
        fi
        grep UTS_RELEASE ../../savedheaders/%{_target_cpu}/$i/version.h >> version.h
    fi
done
echo "#endif" >> version.h


if you beat my in cleaning that part of the code (the rest of the spec
file has just been cleaned now, in -2mdk just about to be released
once that I get it to compile).

once that is finished, it will be possible to do something like:

rpm -bb kernel-2.4.spec --with-smp --with-atlhon 

and the system will do what you expect, build an smp kernel for athlon
(same for other processors, I suppose you get the idea).  Problem is
that:
- I am in one conference right now (LSM, Bourdeaux France)
- Kernel maintenance is taking too much time for working in nice new
  features
- I still have to rewrite the damn supermount patch, that is failing
  as crazy :(
- there are a lot of other things in my ToDo list (/me really needs
  48hours days)

Later, Juan.

-- 
In theory, practice and theory are the same, but in practice they 
are different -- Larry McVoy

Reply via email to