[PATCH] Make the OLPC build not depend on mkinitrd

Bernardo Innocenti bernie at codewiz.org
Fri Dec 14 02:46:03 EST 2007


---
 SPECS/olpc-2.6.spec |    8 +++++++-
 buildd.sh           |    2 +-
 2 files changed, 8 insertions(+), 2 deletions(-)

diff --git a/SPECS/olpc-2.6.spec b/SPECS/olpc-2.6.spec
index c823a54..2ead835 100644
--- a/SPECS/olpc-2.6.spec
+++ b/SPECS/olpc-2.6.spec
@@ -15,6 +15,9 @@ Summary: The Linux kernel (the core of the Linux operating system)
 %define buildkdump 0
 %define buildheaders 1
 
+# Disable debuginfo package because it makes the build fail
+%define _enable_debug_packages 0
+
 # Versions of various parts
 
 # After branching, please hardcode these values as the
@@ -213,8 +216,11 @@ Summary: The Linux kernel (the core of the Linux operating system)
 #
 # Packages that need to be installed before the kernel is, because the %post
 # scripts use them.
+# On the OLPC, we use a fancy initrd that doesn't rely on mkinitrd
+# We drop mkinitrd because it also drags in lvm2 and other nasty dependencies
 #
-%define kernel_prereq  fileutils, module-init-tools, initscripts >= 8.11.1-1, mkinitrd >= 4.2.21-1
+%define kernel_prereq  fileutils, module-init-tools, initscripts >= 8.11.1-1 \
+	%{?!olpc:, mkinitrd >= 4.2.21-1}
 
 Name: kernel
 Group: System Environment/Kernel
diff --git a/buildd.sh b/buildd.sh
index 24ba127..6e8de51 100755
--- a/buildd.sh
+++ b/buildd.sh
@@ -7,7 +7,7 @@ GITWEB="http://dev.laptop.org/git?p=olpc-2.6"
 if [ x"$BRANCH" = x"" ]; then
 	BRANCH="master"
 fi
-BUILDDIR="/home/dilinger/public_html/builds-${BRANCH}"
+BUILDDIR="$HOME/public_html/builds-${BRANCH}"
 BASE="$BUILDDIR/`date '+%s'`"
 
 SUBLEVEL=$(wget -O- "${GITWEB};a=blob_plain;hb=${BRANCH};f=Makefile" 2>/dev/null | sed -ne 's/^.*SUBLEVEL[[:space:]]*=[[:space:]]*\([0-9]\+\).*$/\1/p')
-- 
1.5.3.3




More information about the Devel mailing list