dm7020hd/dm800se: enable wifi
[openembedded.git] / conf / machine / dm7020hd.conf
1 #@TYPE: Machine
2 #@NAME: Dreambox DM7020HD
3 #@DESCRIPTION: Machine configuration for the Dreambox DM7020HD
4
5 #comment out the following two lines to use currently experimental kernel 2.6.3x
6 PREFERRED_VERSION_linux-dm7020hd = "2.6.18"
7 PREFERRED_VERSION_linux-libc-headers = "2.6.18"
8 PREFERRED_VERSION_wpa-supplicant = "0.5.10"
9
10 #needed for wpa-supplicant (0.6.9)
11 COMBINED_FEATURES_append = "${@base_contains('PREFERRED_VERSION_linux-dm7020hd', '2.6.18', '', 'nl80211', d)}"
12
13 #take care when you do changes on MACHINE_ESSENTIAL_EXTRA_RDEPENDS/RRECOMMENDS you have to increment the recipes/tasks/task-boot.bb PR
14
15 MACHINE_ESSENTIAL_EXTRA_RDEPENDS_2.6.18 = "\
16         kernel-module-nls-iso8859-15 \
17         kernel-module-nls-iso8859-1 \
18         kernel-module-nls-cp437 \
19         kernel-module-nls-cp850 \
20         kernel-module-nls-utf8 \
21         v4l-dvb-module-dvb-core \
22         v4l-dvb-module-stv0299 \
23 "
24
25 MACHINE_ESSENTIAL_EXTRA_RRECOMMENDS_2.6.18 = "\
26         kernel-module-cifs \
27         kernel-module-exportfs \
28         kernel-module-ext2 \
29         kernel-module-reiserfs \
30         kernel-module-xfs \
31 "
32
33 MACHINE_ESSENTIAL_EXTRA_RDEPENDS_2.6.3x = "\
34         kernel-module-autofs4 \
35         kernel-module-dvb-core \
36         kernel-module-fb \
37         kernel-module-sg \
38         kernel-module-snd-pcm \
39         kernel-module-snd \
40         kernel-module-sr-mod \
41         kernel-module-stv0299 \
42         kernel-module-usbhid \
43 "
44
45 MACHINE_ESSENTIAL_EXTRA_RRECOMMENDS_2.6.3x = "\
46         kernel-module-cdrom \
47         kernel-module-cifs \
48         kernel-module-exportfs \
49         kernel-module-ext2 \
50         kernel-module-reiserfs \
51         kernel-module-xfs \
52 "
53
54 MACHINE_ESSENTIAL_EXTRA_RDEPENDS = ${@base_contains('PREFERRED_VERSION_linux-dm7020hd', '2.6.18', '${MACHINE_ESSENTIAL_EXTRA_RDEPENDS_2.6.18}', '${MACHINE_ESSENTIAL_EXTRA_RDEPENDS_2.6.3x}', d)}
55 MACHINE_ESSENTIAL_EXTRA_RRECOMMENDS = ${@base_contains('PREFERRED_VERSION_linux-dm7020hd', '2.6.18', '${MACHINE_ESSENTIAL_EXTRA_RRECOMMENDS_2.6.18}', '${MACHINE_ESSENTIAL_EXTRA_RRECOMMENDS_2.6.3x}', d)}
56
57 KERNEL_EXTRA_CMD = ${@base_contains('PREFERRED_VERSION_linux-dm7020hd', '2.6.18', '--disable-compressor=lzo ', '', d)}
58
59 EXTRA_IMAGECMD_jffs2 = " --eraseblock=0x4000 -n -l "
60 IMAGE_CMD_jffs2 = "\
61         mkfs.jffs2 \
62                 --root=${IMAGE_ROOTFS}/boot \
63                 --faketime \
64                 --disable-compressor=lzo \
65                 --compression-mode=size \
66                 --output=${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.boot.jffs2 \
67                 ${EXTRA_IMAGECMD}; \
68         rm -rf ${IMAGE_ROOTFS}/boot/*; \
69         mkfs.jffs2 \
70                 --root=${IMAGE_ROOTFS} \
71                 --faketime \
72                 ${KERNEL_EXTRA_CMD} \
73                 --compression-mode=size \
74                 --output=${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.jffs2 \
75                 ${EXTRA_IMAGECMD}; \
76         buildimage ${STAGING_LIBDIR}/dreambox-secondstage/main.bin.gz \
77                 ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.boot.jffs2 \
78                 ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.jffs2 \
79                 ${MACHINE} 64 \
80                 > ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.nfi"
81
82 GLIBC_EXTRA_OECONF = "--disable-profile --with-tls --with-__thread"
83 TARGET_FPU = "hard"
84
85 MACHINE_FEATURES += "modem wifi"
86
87 require conf/machine/include/dreambox-mipsel.inc