1 Hacking linux-kernel 2.6 2 ************************ 3 4 Edit the root Makefile to use ncc 5 6 HOSTCC = ncc -ncgcc -ncfabs -ncld 7 CC = $(CROSS_COMPILE)ncc -ncfabs -ncgcc -ncld 8 AR = $(CROSS_COMPILE)nccar 9 LD = $(CROSS_COMPILE)nccld 10 11 Also edit the file `scripts/Makefile.build` and search for the 12 line 'cmd_modversions =' and modify it in such a way: 13 14 ######################################################################### 15 rm -f $(@D)/.tmp_$(@F) $(@D)/.tmp_$(@F:.o=.ver); \ 16 else \ 17 mv -f $(@D)/.tmp_$(@F) $@; \ 18 + mv -f $(@D)/.tmp_$(@F).nccout $@.nccout; \ 19 fi; 20 endif 21 ######################################################################### 22 23 Then compile your kernel. If all goes well, the file vmlinux.nccout 24 should appear. Then do 25 26 nccnav vmlinux.nccout 27 28 to hack it. If you are building into another object directory (like 29 `make O=/tmp/kernobj`), then it is much better to invoke the nccnav 30 viewer from the root of the source tree. As 31 32 nccnav /tmp/kernobj/vmlinux.nccout 33 34 so that pathnames are relative -- and small.