summaryrefslogtreecommitdiff
path: root/debian/rules
diff options
context:
space:
mode:
authorDavid Schleef <ds@schleef.org>2002-08-09 23:05:27 +0000
committerDavid Schleef <ds@schleef.org>2002-08-09 23:05:27 +0000
commit44549659536afa8e378fd3612acf6354e71d2117 (patch)
tree9eef3354004814794094fa8522396e9fc5711868 /debian/rules
parent5ebd661263e12344da578d2794363ef958d6b20e (diff)
update to last Debian upload. Dumbass Debian maintainer forgets to check
stuff in.
Diffstat (limited to 'debian/rules')
-rwxr-xr-xdebian/rules11
1 files changed, 7 insertions, 4 deletions
diff --git a/debian/rules b/debian/rules
index 36777ee55..7595b8ba8 100755
--- a/debian/rules
+++ b/debian/rules
@@ -13,7 +13,8 @@ major=$(shell grep '^MAJOR_VERSION' Rules.mak|sed 's/.*=//')
minor=$(shell grep '^MINOR_VERSION' Rules.mak|sed 's/.*=//')
version:=$(strip $(major)).$(strip $(minor))
-kernel_source=kernel-source-2.4.18
+kernel_version=2.4.18
+kernel_source=kernel-source-$(kernel_version)
target=$(DEB_HOST_GNU_CPU)
#target=arm
@@ -77,15 +78,16 @@ build-stamp: debian/control
# Various stupid programs use linux/version.h to find the
# Linux version.
( \
- echo '#define UTS_RELEASE "2.4.16"' \
- echo '#define LINUX_VERSION_CODE 132112' \
- echo '#define KERNEL_VERSION(a,b,c) (((a) << 16) + ((b) << 8) + (c))' \
+ echo '#define UTS_RELEASE "$(kernel_version)"'; \
+ echo '#define KERNEL_VERSION(a,b,c) (((a) << 16) + ((b) << 8) + (c))'; \
+ echo '#define LINUX_VERSION_CODE KERNEL_VERSION($(shell echo $(kernel_version) | sed s/\\./,/g))'; \
) >$(kernel_source)/include/linux/version.h
extra/Configs/uClibc_config_fix.pl \
--arch=$(target) \
$(cross_options) \
--devel_prefix=/usr/$(target)-linux-uclibc \
+ --system_devel_prefix=/usr \
--kernel_dir=`pwd`/$(kernel_source) \
--large_file=true \
--rpc_support=true \
@@ -94,6 +96,7 @@ build-stamp: debian/control
--long_long=true \
--float=true \
--shadow=true \
+ --mmu=true \
--ldso_path="/lib" \
--shared_support=$(shared_libs_true) \
--file=$(config_orig) \