[Lunar-commits] r26556 - in moonbase/branches/crater/kernel: . create_headers
Moritz Heiber
moe at lunar-linux.org
Thu Nov 1 21:17:18 CET 2007
Author: moe
Date: 2007-11-01 21:17:18 +0100 (Thu, 01 Nov 2007)
New Revision: 26556
Added:
moonbase/branches/crater/kernel/create_headers/
moonbase/branches/crater/kernel/create_headers/BUILD.x86_64
Removed:
moonbase/branches/crater/kernel/kernel-headers-2.6/
Modified:
moonbase/branches/crater/kernel/create_headers/BUILD
moonbase/branches/crater/kernel/create_headers/DETAILS
moonbase/branches/crater/kernel/create_headers/PRE_BUILD
Log:
Okay .. this is the all new create_headers package. Ment to stay in crater.
All we need to do is run it on a ix86 machine and on a true 64bit box.
That will give us two sets of headers for two architectures .. which in turn
are then getting uploaded to doppio .. and then the kernel-headers-2.6 module
is going to get bumped.
Copied: moonbase/branches/crater/kernel/create_headers (from rev 26555, moonbase/branches/crater/kernel/kernel-headers-2.6)
Modified: moonbase/branches/crater/kernel/create_headers/BUILD
===================================================================
--- moonbase/branches/crater/kernel/kernel-headers-2.6/BUILD 2007-11-01 19:28:49 UTC (rev 26555)
+++ moonbase/branches/crater/kernel/create_headers/BUILD 2007-11-01 20:17:18 UTC (rev 26556)
@@ -1,34 +1,19 @@
(
- if [ ! -e /tmp/glibc-post_install ] ; then
- message "${BOLD}${PROBLEM_COLOR}This module is only to be called by the glibc POST_INSTALL script!${DEFAULT_COLOR}"
- exit 1
- fi &&
+ KERNEL_DIR="$SOURCE_DIRECTORY"
- KERNEL_DIR="/usr/src/linux"
+ # Ready the headers
+ cd ${KERNEL_DIR}
+ make headers_check
+ make INSTALL_HDR_PATH=${SOURCE_DIRECTORY}/kernel-headers-$VERSION headers_install
- if grep -q headers_install ${KERNEL_DIR}/Makefile; then
- mkdir ${SOURCE_DIRECTORY}/tmp-headers
+ # Remove some of them since they are provided by glibc already
+ rm -rf $SOURCE_DIRECTORY/kernel-headers-$VERSION/include/scsi
- # Ready the headers
- cd ${KERNEL_DIR}
- make headers_check
- make INSTALL_HDR_PATH=${SOURCE_DIRECTORY}/tmp-headers headers_install
+ prepare_install
- # Remove some of them since they are provided by glibc already
- rm -rf $SOURCE_DIRECTORY/tmp-headers/include/scsi
+ tar cjvf kernel-headers-$VERSION.tar.bz2 kernel-headers-$VERSION &&
- prepare_install
-
- cp -R ${SOURCE_DIRECTORY}/tmp-headers/include/* /usr/include/
+ install -m644 $SOURCE_DIRECTORY/kernel-headers-$VERSION.tar.bz2 $SOURCE_CACHE/
- else
- message "${PROBLEM_COLOR}This module requires at least linux-2.6 >= 2.6.18!"
- message "Please update your kernel.${DEFAULT_COLOR}"
- exit 1
- fi &&
-
- # Cleanup
- rm -f /tmp/glibc-post_install
-
) > $C_FIFO 2>&1
Added: moonbase/branches/crater/kernel/create_headers/BUILD.x86_64
===================================================================
--- moonbase/branches/crater/kernel/create_headers/BUILD.x86_64 (rev 0)
+++ moonbase/branches/crater/kernel/create_headers/BUILD.x86_64 2007-11-01 20:17:18 UTC (rev 26556)
@@ -0,0 +1,20 @@
+(
+
+ KERNEL_DIR="$SOURCE_DIRECTORY"
+
+ # Ready the headers
+ cd ${KERNEL_DIR}
+ make headers_check
+:x
+
+
+ # Remove some of them since they are provided by glibc already
+ rm -rf $SOURCE_DIRECTORY/kernel-headers-$VERSION-x86_64/include/scsi
+
+ prepare_install
+
+ tar cjvf kernel-headers-$VERSION-x86_64.tar.bz2 kernel-headers-$VERSION-x86_64 &&
+
+ install -m644 $SOURCE_DIRECTORY/kernel-headers-$VERSION-x86_64.tar.bz2 $SOURCE_CACHE/
+
+) > $C_FIFO 2>&1
Modified: moonbase/branches/crater/kernel/create_headers/DETAILS
===================================================================
--- moonbase/branches/crater/kernel/kernel-headers-2.6/DETAILS 2007-11-01 19:28:49 UTC (rev 26555)
+++ moonbase/branches/crater/kernel/create_headers/DETAILS 2007-11-01 20:17:18 UTC (rev 26556)
@@ -1,10 +1,12 @@
- MODULE=kernel-headers-2.6
- VERSION=0.1
+ MODULE=create_headers
+ VERSION=2.6.23
+ SOURCE=linux-$VERSION.tar.bz2
+ SOURCE_URL=$KERNEL_URL/pub/linux/kernel/v2.6/
WEB_SITE=http://www.lunar-linux.org
ENTERED=20071008
- UPDATED=20071008
- SHORT="installs the latest kernel headers"
+ UPDATED=20071101
+ SHORT="creates the latest kernel headers package"
cat << EOF
-Lunar Linux module to keep track of kernel headers in userspace.
-DO NOT INSTALL THIS MODULE ON YOUR OWN!
+Lunar Linux module to create the kernel headers package for userspace.
+DO NOT INSTALL THIS MODULE ON YOUR OWN! DO NOT MOVE THIS TO MOONBASE!
EOF
Modified: moonbase/branches/crater/kernel/create_headers/PRE_BUILD
===================================================================
--- moonbase/branches/crater/kernel/kernel-headers-2.6/PRE_BUILD 2007-11-01 19:28:49 UTC (rev 26555)
+++ moonbase/branches/crater/kernel/create_headers/PRE_BUILD 2007-11-01 20:17:18 UTC (rev 26556)
@@ -1,2 +1,10 @@
mk_source_dir &&
-validate_source_dir
+validate_source_dir &&
+
+cd $SOURCE_DIRECTORY &&
+
+message "${MESSAGE_COLOR}Extracting kernel sources ...${DEFAULT_COLOR}" &&
+
+tar xf $SOURCE_CACHE/$SOURCE --no-same-owner \
+ --no-same-permissions \
+ --strip-component=1
More information about the Lunar-commits
mailing list