summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2004-04-30 22:59:38 +0000
committerEric Andersen <andersen@codepoet.org>2004-04-30 22:59:38 +0000
commit64d5a0b1fb305691657df2f562a27562c5a2b927 (patch)
treec56d140e73ca944c7800e6f8715d94d585f70a0c
parent32066333b32bf6597d00b365c0f6b04ff26eab83 (diff)
Minor .deb updates
-rw-r--r--debian/changelog6
-rwxr-xr-xdebian/rules24
2 files changed, 20 insertions, 10 deletions
diff --git a/debian/changelog b/debian/changelog
index 1f6d9cc14..30b88f6e8 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,9 @@
+uclibc (0.9.26-2) unstable; urgency=low
+
+ * Fix some minor header file problems
+
+ -- Erik Andersen <andersen@codepoet.org> Fri, 30 Apr 2004 16:34:24 -0600
+
uclibc (0.9.26-1) unstable; urgency=low
* New upstream release
diff --git a/debian/rules b/debian/rules
index 4cc2ab5c8..997d6d046 100755
--- a/debian/rules
+++ b/debian/rules
@@ -13,8 +13,9 @@ major=$(shell grep '^MAJOR_VERSION' Rules.mak|sed 's/.*=//')
minor=$(shell grep '^MINOR_VERSION' Rules.mak|sed 's/.*=//')
version:=$(strip $(major)).$(strip $(minor))
-kernel_version=2.4.22
-kernel_source=kernel-source-$(kernel_version)
+kernel_version=2.4.25
+kernel_source=kernel-headers-$(kernel_version)
+kernel_source_dir=linux
builddir=$(shell pwd)
@@ -46,8 +47,11 @@ build-stamp:
dh_testdir
# Brute force method of getting kernel headers
- tar --bzip2 -xf /usr/src/$(kernel_source).tar.bz2 \
- $(kernel_source)/Makefile $(kernel_source)/include
+ if [ ! -f /usr/src/$(kernel_source).tar.bz2 ] ; then \
+ wget http://uclibc.org/downloads/$(kernel_source).tar.bz2 \
+ -O /usr/src/$(kernel_source).tar.bz2; \
+ fi;
+ tar --bzip2 -xf /usr/src/$(kernel_source).tar.bz2
# Hack to get include/asm-arm/arch directory. This should
@@ -55,11 +59,11 @@ build-stamp:
# it adds a link _in the kernel source_, which is almost
# certainly wrong in most situations.
#ifeq ($(target),arm)
- ln -s arch-sa1100 $(kernel_source)/include/asm-arm/arch
- ln -s proc-armo $(kernel_source)/include/asm-arm/proc
+ ln -s arch-sa1100 $(kernel_source_dir)/include/asm-arm/arch
+ ln -s proc-armo $(kernel_source_dir)/include/asm-arm/proc
#endif
- touch $(kernel_source)/include/linux/autoconf.h
+ touch $(kernel_source_dir)/include/linux/autoconf.h
# Various stupid programs use linux/version.h to find the
# Linux version.
@@ -67,7 +71,7 @@ build-stamp:
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
+ ) >$(kernel_source_dir)/include/linux/version.h
cp debian/config .config
@@ -75,7 +79,7 @@ build-stamp:
.config
sed -i -e 's,^TARGET_ARCH.*,TARGET_ARCH=\"$(target)\",g' \
.config
- sed -i -e 's,^KERNEL_SOURCE=.*,KERNEL_SOURCE=\"$(builddir)/$(kernel_source)\",g' \
+ sed -i -e 's,^KERNEL_SOURCE=.*,KERNEL_SOURCE=\"$(builddir)/$(kernel_source_dir)\",g' \
.config
sed -i -e 's,^RUNTIME_PREFIX=.*,RUNTIME_PREFIX=\"/\",g' \
.config
@@ -107,7 +111,7 @@ clean:
dh_testroot
rm -f build-stamp
- rm -rf kernel-source-*
+ rm -rf $(kernel_source_dir)
# Add here commands to clean up after the build process.
-$(MAKE) distclean