]> git.neil.brown.name Git - history.git/commitdiff
kbuild: sed compatibility fixes
authorKai Germaschewski <kai@tp1.ruhr-uni-bochum.de>
Mon, 10 Feb 2003 15:02:39 +0000 (09:02 -0600)
committerKai Germaschewski <kai@tp1.ruhr-uni-bochum.de>
Mon, 10 Feb 2003 15:02:39 +0000 (09:02 -0600)
Some versions of sed seem to think \w, as in word, doesn't include
digits, which breaks the build with CONFIG_MODVERSIONS. So we
just use the more compatible [<space><tab>]*.

scripts/Makefile.build

index 80aba4ee3b17df116fff9c5dbf1a3a75148ea498..988b49fbbca7876dc7ac4096e7e22b1340e37808 100644 (file)
@@ -94,7 +94,7 @@ define rule_vcc_o_c
        else                                                                  \
                $(CPP) -D__GENKSYMS__ $(c_flags) $<                           \
                | $(GENKSYMS) -k $(VERSION).$(PATCHLEVEL).$(SUBLEVEL)         \
-               | sed -n 's/\#define __ver_\(\w*\)\W*\(\w*\)/__crc_\1 = 0x\2 ;/gp' \
+               | sed -n 's/\#define __ver_\([^         ]*\)[   ]*\([^  ]*\)/__crc_\1 = 0x\2 ;/gp' \
                > $(@D)/.tmp_$(@F:.o=.ver);                                   \
                                                                              \
                $(LD) $(LDFLAGS) -r -o $@ $(@D)/.tmp_$(@F)                    \