conf/machine/dm8000.conf: add support for kernel 2.6.18
[vuplus_openembedded] / conf / machine / dm8000.conf
1 #@TYPE: Machine
2 #@NAME: Dreambox DM 8000 HD PVR
3 #@DESCRIPTION: Machine configuration for the Dreambox DM 8000 HD PVR
4
5 #comment out the following two lines to use currently experimental kernel 2.6.3x
6 PREFERRED_VERSION_linux-dm8000 = "2.6.18"
7 PREFERRED_VERSION_linux-libc-headers = "2.6.18"
8
9 PREFERRED_VERSION_madwifi-ng = "r3314-20080131"
10 JAVA_mipsel = ",java"
11
12 MACHINE_ESSENTIAL_EXTRA_RDEPENDS_2.6.18 = "\
13         kernel-module-cifs \
14         kernel-module-cdfs \
15         kernel-module-exportfs \
16         kernel-module-ext2 \
17         kernel-module-reiserfs \
18         kernel-module-xfs \
19 "
20
21 MACHINE_ESSENTIAL_EXTRA_RDEPENDS_2.6.3x = "\
22         kernel-module-autofs4 \
23         kernel-module-cdrom \
24         kernel-module-cifs \
25         kernel-module-dvb-core \
26         kernel-module-exportfs \
27         kernel-module-ext2 \
28         kernel-module-fb \
29         kernel-module-isofs \
30         kernel-module-reiserfs \
31         kernel-module-sg \
32         kernel-module-snd-pcm \
33         kernel-module-snd \
34         kernel-module-sr-mod \
35         kernel-module-stv0299 \
36         kernel-module-usbhid \
37         kernel-module-xfs \
38 "
39
40 MACHINE_ESSENTIAL_EXTRA_RDEPENDS = ${@base_contains('PREFERRED_VERSION_linux-dm8000', '2.6.18', '${MACHINE_ESSENTIAL_EXTRA_RDEPENDS_2.6.18}', '${MACHINE_ESSENTIAL_EXTRA_RDEPENDS_2.6.3x}', d)}
41
42 KERNEL_EXTRA_CMD = ${@base_contains('PREFERRED_VERSION_linux-dm8000', '2.6.18', '--disable-compressor=lzo ', '', d)}
43
44 EXTRA_IMAGECMD_jffs2 = " --eraseblock=0x20000 -n -l "
45 IMAGE_CMD_jffs2 = "\
46         mkfs.jffs2 \
47                 --root=${IMAGE_ROOTFS}/boot \
48                 --faketime \
49                 --disable-compressor=lzo \
50                 --compression-mode=size \
51                 --output=${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.boot.jffs2 \
52                 ${EXTRA_IMAGECMD}; \
53         rm -rf ${IMAGE_ROOTFS}/boot/*; \
54         mkfs.jffs2 \
55                 --root=${IMAGE_ROOTFS} \
56                 --faketime \
57                 ${KERNEL_EXTRA_CMD} \
58                 --compression-mode=size \
59                 --output=${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.jffs2 \
60                 ${EXTRA_IMAGECMD}; \
61         buildimage ${STAGING_LIBDIR}/dreambox-secondstage/main.bin.gz \
62                 ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.boot.jffs2 \
63                 ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.jffs2 \
64                 ${MACHINE} 64 large \
65                 > ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.nfi"
66
67 GLIBC_EXTRA_OECONF = "--disable-profile --with-tls --with-__thread"
68 TARGET_FPU = "hard"
69
70 require conf/machine/include/dreambox-mipsel.inc
71