Messages in this thread Patch in this message | | | Date | Sat, 5 Apr 2003 05:31:16 +0300 (EEST) | From | tchiwam <> | Subject | make include/linux/version.h cross compiled |
| |
Hello,
I have had some troubles trying to compile linux from a platform that is not using gnu expr (sh-utils) the term "lenght" is not the least common denominator. If I am not wrong my little patch makes this easier to cross compiler from foreign arch and should not affect native compiles...
I leave it to you guys to decide what to do with this. Thank you for your work.
Philippe Trottier
--- linux-2.4.20/Makefile Fri Nov 29 01:53:16 2002 +++ linux-2.4.20/Makefile Fri Apr 4 23:17:10 2003 @@ -347,7 +347,7 @@ @rm -f .ver1
include/linux/version.h: ./Makefile - @expr length "$(KERNELRELEASE)" \<= $(uts_len) > /dev/null || \ + @expr `expr "$(KERNELRELEASE)" : '.*'` \<= $(uts_len) > /dev/null || \ (echo KERNELRELEASE \"$(KERNELRELEASE)\" exceeds $(uts_len) characters >&2; fa lse) @echo \#define UTS_RELEASE \"$(KERNELRELEASE)\" > .ver @echo \#define LINUX_VERSION_CODE `expr $(VERSION) \\* 65536 + $(PATCHLEVEL) \\* 256 + $(SUBLEVEL)` >> .ver
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |