add cchache and new kernels

This commit is contained in:
Mario Fetka
2011-12-31 20:31:14 +01:00
parent 4b69465507
commit d6cb1a98fc
17 changed files with 640 additions and 5 deletions

View File

@@ -312,12 +312,13 @@ if [ -n "${K_ONLY_SOURCES}" ] || [ -n "${K_FIRMWARE_PACKAGE}" ]; then
DEPEND="sys-apps/sed"
RDEPEND="${RDEPEND}"
else
IUSE="dmraid dracut"
IUSE="dmraid dracut ccache"
DEPEND="app-arch/xz-utils
sys-apps/sed
sys-devel/make
>=sys-kernel/genkernel-3.4.16-r1
dracut? ( sys-kernel/dracut )
ccache? ( dev-util/ccache )
sys-block/devio
dev-embedded/u-boot-tools
sys-fs/dosfstools"
@@ -532,6 +533,7 @@ _kernel_src_compile() {
einfo "Cross-compile is disabled"
unset CROSS_COMPILE
unset ARCH
use ccache && GKARGS="${GKARGS} --kernel-cc=/usr/lib/ccache/bin/gcc"
fi
unset LDFLAGS
@@ -565,12 +567,15 @@ _kernel_src_compile() {
K_NASKERNEL_TYPE="buffalo"
K_NASKERNEL_DEVICE="Buffalo Linkstation Pro/Live"
fi
if [ "${K_NASKERNEL_NAME}" = "buffalo_ls_pro_duo" ]; then
if [ "${K_NASKERNEL_NAME}" = "buffalo_ls_pro_duo_rev1" ]; then
devio > foo 'wl 0xe3a01c07,4' 'wl 0xe3811027,4' # Linkstation Pro Duo (2.6.30)
K_NASKERNEL_TYPE="buffalo"
# correction requred on the check there are ... - Revison 1 and ... - Revison 2
#the compare will fail
K_NASKERNEL_DEVICE="Buffalo Linkstation Pro Duo"
K_NASKERNEL_DEVICE="Buffalo Linkstation Pro Duo - Revision 1"
fi
if [ "${K_NASKERNEL_NAME}" = "buffalo_ls_pro_duo_rev2" ]; then
devio > foo 'wl 0xe3a01c07,4' 'wl 0xe3811027,4' # Linkstation Pro Duo (2.6.30)
K_NASKERNEL_TYPE="buffalo"
K_NASKERNEL_DEVICE="Buffalo Linkstation Pro Duo - Revision 2"
fi
if [ "${K_NASKERNEL_NAME}" = "buffalo_ls_xhl" ]; then
devio > foo 'wl 0xe3a01c0a,4' 'wl 0xe3811067,4' # Linkstation XHL/CHLv2 (2.6.30)