peng_devel.jpeg
***If you are using a higher / different version of the compiler to work with you will need to make the following changes to a few lines in the source:

Assuming you are using version 10.1.021:

1.) Makefile, add libirc_s.a as follows:

--start-group $(vmlinux-main) /opt/intel/cc/10.1.021/lib/libirc_s.a --end-group \

(in the source now it is 10.1.018 - replace like above with whatever version you are using... in this case 10.1.021)

2.) Edit arch/x86/boot/Makefile

Find these lines:

LDFLAGS_setup.elf := -T
$(obj)/setup.elf: $(src)/setup.ld $(SETUP_OBJS) FORCE
$(call if_changed,ld)

Then add: /opt/intel/cc/10.1.021/lib/libirc_s.a after "FORCE":

LDFLAGS_setup.elf := -T
$(obj)/setup.elf: $(src)/setup.ld $(SETUP_OBJS) FORCE /opt/intel/cc/10.1.021/lib/libirc_s.a
$(call if_changed,ld)

3.) Edit ./scripts/Makefile.modpost

Change:

quiet_cmd_ld_ko_o = LD [M] $@
cmd_ld_ko_o = $(LD) $(LDFLAGS) $(LDFLAGS_MODULE) -o $@ \
$(filter-out FORCE,$^)

And make it:

quiet_cmd_ld_ko_o = LD [M] $@
cmd_ld_ko_o = $(LD) $(LDFLAGS) $(LDFLAGS_MODULE) -o $@ \
$(filter-out FORCE,$^) /opt/intel/cc/10.1.021/lib/libirc_s.a

*For other versions you may need to change the entire /opt/intel/ path so that it finds libirc_s.a

CC-GNU GPL
The name LinuxDNA is licensed under the CC-GNU GPL version 2.0 or later.