]> git.hungrycats.org Git - linux/commitdiff
kbuild: Modversions fix
authorKai Germaschewski <kai@tp1.ruhr-uni-bochum.de>
Sat, 8 Feb 2003 08:30:37 +0000 (02:30 -0600)
committerKai Germaschewski <kai@tp1.ruhr-uni-bochum.de>
Sat, 8 Feb 2003 08:30:37 +0000 (02:30 -0600)
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.

scripts/Makefile.build

index 9628a6416d252b881d1f1e639db246eb9e943302..80aba4ee3b17df116fff9c5dbf1a3a75148ea498 100644 (file)
@@ -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)                    \