git-svn-id: svn+ssh://svn.gentoo.org/var/svnroot/genkernel/trunk@424
67a159dc-881f-0410-a524-
ba9dfbe2cb84
cd "${UNIONFS_DIR}"
# Compile unionfs module within the unionfs
# environment not within the kernelsrc dir
- make unionfs.ko
+ make unionfs.ko || gen_die 'failed to compile unionfs'
else
gen_die 'unionfs is only supported on 2.6 targets'
fi
if [ -f unionfs.ko ]
then
- cp unionfs.ko ${TEMP}/unionfs/lib/modules/${KV}/kernel/fs/unionfs
+ cp -f unionfs.ko ${TEMP}/unionfs/lib/modules/${KV}/kernel/fs/unionfs
else
- cp unionfs.o ${TEMP}/unionfs/lib/modules/${KV}/kernel/fs/unionfs
+ cp -f unionfs.o ${TEMP}/unionfs/lib/modules/${KV}/kernel/fs/unionfs
fi
cd ${TEMP}/unionfs
DMRAID_SRCTAR="${GK_SHARE}/pkg/dmraid-${DMRAID_VER}.tar.bz2"
DMRAID_BINCACHE="%%CACHE%%/dmraid-${DMRAID_VER}-%%ARCH%%.tar.bz2"
+# Kernel Version Compatibility
+# (from http://www.am-utils.org/project-unionfs.html)
+
+# 2.6.9 - 2.6.15 1.1.5
+# 2.6.16 1.2
+# 2.6.17 1.3
+
UNIONFS_VER="VERSION_UNIONFS"
UNIONFS_DIR="unionfs-${UNIONFS_VER}"
UNIONFS_SRCTAR="${GK_SHARE}/pkg/unionfs-${UNIONFS_VER}.tar.gz"