# Rule to link vmlinux - also used during CONFIG_KALLSYMS
# May be overridden by arch/$(ARCH)/Makefile
quiet_cmd_vmlinux__ ?= LD $@
cmd_vmlinux__ ?= $(LD) $(LDFLAGS) $(LDFLAGS_vmlinux) -o $@ \\
-T $(vmlinux-lds) $(vmlinux-init) \\
--start-group $(vmlinux-main) --end-group \\
$(filter-out $(vmlinux-lds) $(vmlinux-init) $(vmlinux-main) vmlinux.o FORCE ,$^)
# Generate new vmlinux version
quiet_cmd_vmlinux_version = GEN .version
cmd_vmlinux_version = set -e; \\
if [ ! -r .version ]; then \\
rm -f .version; \\
echo 1 >.version; \\
else \\
mv .version .old_version; \\
expr 0$$(cat .old_version) + 1 >.version; \\
fi; \\
$(MAKE) $(build)=init
# Link of vmlinux
# If CONFIG_KALLSYMS is set .version is already updated
# Generate System.map and verify that the content is consistent
# Use + in front of the vmlinux_version rule to silent warning with make -j2
# First command is ':' to allow us to use + in front of the rule
define rule_vmlinux__
include /home/beyes/makefile
-include /home/beyes/makefile/test