Hi,

I need to compile the moblin kernal source v2.1 with using intel c++ 
compiler.iam using suse linux v2.1.
 i am following the instruction given below:

1.  Prepare for build
       a.  su into root.
       b.  Create a ~/.rpmmacros file containing:
       %_topdir %(echo $HOME)/rpmbuild
      %_smp_mflags -j3
      %__arch_install_post /usr/lib/rpm/check-rpaths 
/usr/lib/rpm/check-buildroot
      %_default_patch_fuzz 2
      #end of file
      fuzz=2 is critical to allow the 915 patches to merge correctly.
_smp_mflags -jN, N should be set to the number of processor cores on your build 
system

 Download the kernel source from a source repository:
(Used 
http://repo.moblin.org/moblin/development/core/source/kernel-2.6.29.4-6.1.moblin2.src.rpm)
  
build with Intel Compiler
1.  Perform step 1 in the previous section
2.  Setup Intel Compiler environment:
       a.  Set the compiler environment:
       $ source /opt/intel/Compiler/11.1/XXX/bin/ia32/iccvars_ia32.sh
       where XXX is the particular version you are using
      b.  Edit icc.cfg (in bin directory) and add the following line:
      -mia32
3.  Make source code modifications.
      a.  Modify include/linux/compiler-intel.h and add the following line at
           the end of the file:
                  #undef __compiler_offsetof
       b.  Modify arch/x86/include/asm/xor_32.h at line 843, change
                  : "+r" (lines),
                  To:
                   : "+rm" (lines),

       This change is required because the code is written to work with gcc's 
assumption that the stack is 16 byte aligned (contrary to the ABI) and      
         thus there is one additional register available.
      c.  Add libirc_s.a to the link command by modifying Makefile at line 696. 
 Change:

                    --start-group $(vmlinux-main) --end-group
                      to:
                   --start-group $(vmlinux-main) 
/opt/intel/Compiler/11.1/XXX/lib/ia32/libirc_s.a
                  --end-group

       d.  Modify arch/x86/include/asm/delay.h and remove the references to 
__bad_udelay and replace the calls to it with 0.
       e.  Modify include/linux/log2.h and remove the references to 
____ilog2_NaN() and replace the calls to it with 0.

  4.  Start the build:
                $ cd <build path>/rpmbuild/BUILD/kernel-2.6.27/linux-2.6.27.i686
                $ make clean
                $ make HOSTCC=icc CC=icc CPP="gcc -E" 
CONFIG_DEBUG_SECTION_MISMATCH=y KBUILD_MODPOST_WARN=n bzImage
                $ make HOSTCC=icc CC=icc CPP="gcc -E" 
CONFIG_DEBUG_SECTION_MISMATCH=y KBUILD_MODPOST_WARN=n modules
                $ make HOSTCC=icc CC=icc CPP="gcc -E" 
CONFIG_DEBUG_SECTION_MISMATCH=y KBUILD_MODPOST_WARN=n 
                   modules_install     
                $ make HOSTCC=icc CC=icc CPP="gcc -E" 
CONFIG_DEBUG_SECTION_MISMATCH=y KBUILD_MODPOST_WARN=n install     

my questions is in step 4 ie (   $ cd <build 
path>/rpmbuild/BUILD/kernel-2.6.27/linux-2.6.27.i686) WHAT IS THE <build 
path>???
i have already done all the changes whatever is mentioned till step 3. 

Thanks in advance
ankit
Please do not print this email unless it is absolutely necessary. 

The information contained in this electronic message and any attachments to 
this message are intended for the exclusive use of the addressee(s) and may 
contain proprietary, confidential or privileged information. If you are not the 
intended recipient, you should not disseminate, distribute or copy this e-mail. 
Please notify the sender immediately and destroy all copies of this message and 
any attachments. 

WARNING: Computer viruses can be transmitted via email. The recipient should 
check this email and any attachments for the presence of viruses. The company 
accepts no liability for any damage caused by any virus transmitted by this 
email. 

www.wipro.com
_______________________________________________
Moblin dev Mailing List
dev@moblin.org

To manage or unsubscribe from this mailing list visit:
http://lists.moblin.org/listinfo/dev or your user account on http://moblin.org 
once logged in.

For more information on the Moblin Developer Mailing lists visit:
http://moblin.org/community/mailing-lists

Reply via email to