lkml.org 
[lkml]   [2003]   [Apr]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subjectmake 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/

\
 
 \ /
  Last update: 2005-03-22 13:34    [W:0.014 / U:0.424 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site