diff options
author | Daniel Drake <dsd@laptop.org> | 2009-12-22 20:56:06 (GMT) |
---|---|---|
committer | Daniel Drake <dsd@laptop.org> | 2009-12-22 20:56:06 (GMT) |
commit | 1e925e2eb0fff5c1f62cd115891d4dadb50bb7a2 (patch) | |
tree | e1d08a269766e4db32b2ddddfada4aea15401df4 /modules/xo1 | |
parent | f02ad4ba2dfa053fa901502440900e4be605a13c (diff) |
Add xo1 module for XO-1 build tweaks
Diffstat (limited to 'modules/xo1')
-rw-r--r-- | modules/xo1/README | 4 | ||||
-rw-r--r-- | modules/xo1/kspost.50.xo1-tweaks.inc | 12 |
2 files changed, 16 insertions, 0 deletions
diff --git a/modules/xo1/README b/modules/xo1/README new file mode 100644 index 0000000..a57d1d3 --- /dev/null +++ b/modules/xo1/README @@ -0,0 +1,4 @@ +This module applies various build tweaks required for the XO-1 platform. +If you are building for XO-1, include this module. Do not include it +otherwise. + diff --git a/modules/xo1/kspost.50.xo1-tweaks.inc b/modules/xo1/kspost.50.xo1-tweaks.inc new file mode 100644 index 0000000..a5d2aa2 --- /dev/null +++ b/modules/xo1/kspost.50.xo1-tweaks.inc @@ -0,0 +1,12 @@ +# permanently set %__dbi_cdb rpm macro to work around jffs2's lack of writeable mmap() +mkdir -p /etc/rpm +echo "%__dbi_cdb create private nommap" > /etc/rpm/macros.rpmdb + +# FIXME: old olpc.fth looks for olpcrd.img, but we now use initrd.img +# any nicer way to fix this? +[ -e "/boot/olpcrd.img" ] || ln -s initrd.img /boot/olpcrd.img + +# FIXME: really need to teach dracut about mtd devices and stop using mtdblock +# what's more, olpc.fth really shouldnt specify a root device +sed -i -e 's:root=mtd0:root=/dev/mtdblock0:g' /boot/olpc.fth + |