]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
rules.mk: replace GNU specific \w with POSIX equivalant
authorJeroen Hofstee <jeroen@myspectrum.nl>
Tue, 19 Jul 2011 10:41:50 +0000 (10:41 +0000)
committerWolfgang Denk <wd@denx.de>
Thu, 28 Jul 2011 19:18:49 +0000 (21:18 +0200)
If sed does not support the GNU \w regex extension, build attempts
lead to circular dependency warnings and finally build failure
(crc32.c not found). Build output before and after the patch on
FreeBSD is at:
http://lists.denx.de/pipermail/u-boot/2011-June/095235.html

Signed-off-by: Jeroen Hofstee <jeroen@myspectrum.nl>
rules.mk

index 5fd12a027df3ceebda011265a2a1cc0632dc5695..a6bae626796fe0c59dba53867c0bbf33dfac0ac0 100644 (file)
--- a/rules.mk
+++ b/rules.mk
@@ -29,11 +29,11 @@ $(obj).depend:      $(src)Makefile $(TOPDIR)/config.mk $(SRCS) $(HOSTSRCS)
                @rm -f $@
                @touch $@
                @for f in $(SRCS); do \
-                       g=`basename $$f | sed -e 's/\(.*\)\.\w/\1.o/'`; \
+                       g=`basename $$f | sed -e 's/\(.*\)\.[[:alnum:]_]/\1.o/'`; \
                        $(CC) -M $(CPPFLAGS) -MQ $(obj)$$g $$f >> $@ ; \
                done
                @for f in $(HOSTSRCS); do \
-                       g=`basename $$f | sed -e 's/\(.*\)\.\w/\1.o/'`; \
+                       g=`basename $$f | sed -e 's/\(.*\)\.[[:alnum:]_]/\1.o/'`; \
                        $(HOSTCC) -M $(HOSTCPPFLAGS) -MQ $(obj)$$g $$f >> $@ ; \
                done