From: tchiwam <tchiwam@sgo.fi>
To: linux-kernel@vger.kernel.org
Subject: make include/linux/version.h cross compiled
Date: Sat, 5 Apr 2003 05:31:16 +0300 (EEST) [thread overview]
Message-ID: <Pine.LNX.4.44.0304050525450.3622-100000@is6.invers.fi> (raw)
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
reply other threads:[~2003-04-05 1:18 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=Pine.LNX.4.44.0304050525450.3622-100000@is6.invers.fi \
--to=tchiwam@sgo.fi \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).