Commit 0434f166 authored by Kai Germaschewski's avatar Kai Germaschewski

kbuild: Modversions fix

We're still using the old genksyms binary, that's why we have to 
postprocess the output to convert it into a linker script - that
postprocessing got confused by "__verify_write".

Kick out the grep, do it all and correctly within sed.

Bug reported by Thomas Molina.
parent 1f8b66c5
......@@ -94,8 +94,7 @@ define rule_vcc_o_c
else \
$(CPP) -D__GENKSYMS__ $(c_flags) $< \
| $(GENKSYMS) -k $(VERSION).$(PATCHLEVEL).$(SUBLEVEL) \
| grep __ver \
| sed 's/\#define __ver_\([^ ]*\)[ ]*\([^ ]*\)/__crc_\1 = 0x\2 ;/g' \
| sed -n 's/\#define __ver_\(\w*\)\W*\(\w*\)/__crc_\1 = 0x\2 ;/gp' \
> $(@D)/.tmp_$(@F:.o=.ver); \
\
$(LD) $(LDFLAGS) -r -o $@ $(@D)/.tmp_$(@F) \
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment