diff options
Diffstat (limited to 'conf/machine/include/imx-base.inc')
-rw-r--r-- | conf/machine/include/imx-base.inc | 108 |
1 files changed, 108 insertions, 0 deletions
diff --git a/conf/machine/include/imx-base.inc b/conf/machine/include/imx-base.inc new file mode 100644 index 0000000..9ac5e8a --- /dev/null +++ b/conf/machine/include/imx-base.inc | |||
@@ -0,0 +1,108 @@ | |||
1 | # Provides the i.MX common settings | ||
2 | |||
3 | include conf/machine/include/fsl-default-settings.inc | ||
4 | include conf/machine/include/fsl-default-versions.inc | ||
5 | include conf/machine/include/fsl-default-providers.inc | ||
6 | |||
7 | include conf/machine/include/soc-family.inc | ||
8 | |||
9 | # Disable perf features as 2.6.35.3 fail to build otherwise | ||
10 | PERF_FEATURES_ENABLE = "" | ||
11 | |||
12 | # Set specific make target and binary suffix | ||
13 | UBOOT_MAKE_TARGET = "u-boot.imx" | ||
14 | UBOOT_SUFFIX ?= "imx" | ||
15 | |||
16 | UBOOT_ENTRYPOINT_mx3 = "0x80008000" | ||
17 | UBOOT_ENTRYPOINT_mx51 = "0x90008000" | ||
18 | UBOOT_ENTRYPOINT_mx53 = "0x70008000" | ||
19 | UBOOT_ENTRYPOINT_mx6 = "0x10008000" | ||
20 | UBOOT_ENTRYPOINT_mx6sl = "0x80008000" | ||
21 | UBOOT_ENTRYPOINT_vf60 = "0x80008000" | ||
22 | |||
23 | XSERVER_DRIVER = "xf86-video-fbdev" | ||
24 | XSERVER_DRIVER_mx5 = "xf86-video-imxfb" | ||
25 | XSERVER_DRIVER_mx6 = "xf86-video-imxfb-vivante" | ||
26 | XSERVER = "xserver-xorg \ | ||
27 | xf86-input-evdev \ | ||
28 | ${XSERVER_DRIVER}" | ||
29 | |||
30 | # FIXME: Use older versions until Vivante GPU is made compatible | ||
31 | PREFERRED_VERSION_xserver-xorg_mx6 = "2:1.14.4" | ||
32 | PREFERRED_VERSION_directfb_mx6 = "1.6.3" | ||
33 | PREFERRED_VERSION_directfb-examples_mx6 = "1.6.0" | ||
34 | |||
35 | # Ship kernel modules | ||
36 | MACHINE_EXTRA_RRECOMMENDS = "kernel-modules" | ||
37 | |||
38 | # Float-Point setting | ||
39 | DEFAULTTUNE_mx6 ?= "cortexa9hf-neon" | ||
40 | |||
41 | # Sub-architecture support | ||
42 | MACHINE_SOCARCH ?= "" | ||
43 | MACHINE_SOCARCH_mx3 = "${TUNE_PKGARCH}-mx3" | ||
44 | MACHINE_SOCARCH_mx5 = "${TUNE_PKGARCH}-mx5" | ||
45 | MACHINE_SOCARCH_mx6 = "${TUNE_PKGARCH}-mx6" | ||
46 | MACHINE_SOCARCH_vf60 = "${TUNE_PKGARCH}-vf60" | ||
47 | PACKAGE_EXTRA_ARCHS_append = " ${MACHINE_SOCARCH}" | ||
48 | |||
49 | MACHINE_ARCH_FILTER = "virtual/kernel" | ||
50 | MACHINE_SOCARCH_FILTER = "libfslcodec libfslvpuwrap libfslparser gst-fsl-plugins" | ||
51 | MACHINE_SOCARCH_FILTER_append_mx5 = " virtual/libgles1 virtual/libgles2 virtual/egl virtual/mesa virtual/libgl" | ||
52 | MACHINE_SOCARCH_FILTER_append_mx6 = " virtual/libgles1 virtual/libgles2 virtual/egl virtual/mesa virtual/libgl" | ||
53 | |||
54 | INHERIT += "fsl-dynamic-packagearch" | ||
55 | |||
56 | # Firmware | ||
57 | MACHINE_FIRMWARE ?= "" | ||
58 | MACHINE_FIRMWARE_append_mx6q = " firmware-imx-vpu-imx6q" | ||
59 | MACHINE_FIRMWARE_append_mx6dl = " firmware-imx-vpu-imx6d" | ||
60 | MACHINE_FIRMWARE_append_mx53 = " firmware-imx-vpu-imx53 firmware-imx-sdma-imx53" | ||
61 | MACHINE_FIRMWARE_append_mx51 = " firmware-imx-vpu-imx51 firmware-imx-sdma-imx51" | ||
62 | |||
63 | # FIXME: Needs addition of firmware-imx of official BSPs | ||
64 | #MACHINE_FIRMWARE_append_mx35 = " firmware-imx-sdma-imx35" | ||
65 | #MACHINE_FIRMWARE_append_mx31 = " firmware-imx-sdma-imx31" | ||
66 | #MACHINE_FIRMWARE_append_mx27 = " firmware-imx-vpu-imx27" | ||
67 | #MACHINE_FIRMWARE_append_mx25 = " firmware-imx-sdma-imx25" | ||
68 | |||
69 | MACHINE_EXTRA_RRECOMMENDS += "${MACHINE_FIRMWARE}" | ||
70 | |||
71 | # Extra audio support | ||
72 | # FIXME: Add support for ALL SoC families | ||
73 | MACHINE_EXTRA_RRECOMMENDS_append_mx6 = " fsl-alsa-plugins" | ||
74 | |||
75 | # Extra udev rules | ||
76 | MACHINE_EXTRA_RRECOMMENDS += "udev-extraconf" | ||
77 | |||
78 | # GStreamer 0.10 plugins | ||
79 | MACHINE_GSTREAMER_PLUGIN ?= "gst-fsl-plugin" | ||
80 | MACHINE_GSTREAMER_PLUGIN_mx3 ?= "" | ||
81 | MACHINE_GSTREAMER_PLUGIN_vf60 ?= "" | ||
82 | |||
83 | # GStreamer 1.0 plugins | ||
84 | MACHINE_GSTREAMER_1_0_PLUGIN ?= "" | ||
85 | MACHINE_GSTREAMER_1_0_PLUGIN_mx6 ?= "gstreamer1.0-plugins-imx-meta" | ||
86 | |||
87 | # mx5 GPU libraries | ||
88 | GPU_FLAVOUR = "${@base_contains('DISTRO_FEATURES', 'x11', 'x11-', '', d)}" | ||
89 | PREFERRED_PROVIDER_virtual/egl_mx5 ?= "amd-gpu-${GPU_FLAVOUR}bin-mx51" | ||
90 | PREFERRED_PROVIDER_virtual/libgles1_mx5 ?= "amd-gpu-${GPU_FLAVOUR}bin-mx51" | ||
91 | PREFERRED_PROVIDER_virtual/libgles2_mx5 ?= "amd-gpu-${GPU_FLAVOUR}bin-mx51" | ||
92 | |||
93 | # mx6 GPU libraries | ||
94 | PREFERRED_PROVIDER_virtual/egl_mx6 ?= "gpu-viv-bin-mx6q" | ||
95 | PREFERRED_PROVIDER_virtual/libgl_mx6 ?= "gpu-viv-bin-mx6q" | ||
96 | PREFERRED_PROVIDER_virtual/libgles1_mx6 ?= "gpu-viv-bin-mx6q" | ||
97 | PREFERRED_PROVIDER_virtual/libgles2_mx6 ?= "gpu-viv-bin-mx6q" | ||
98 | |||
99 | PREFERRED_PROVIDER_virtual/kernel_mx3 ?= "linux-fslc" | ||
100 | |||
101 | SDCARD_ROOTFS ?= "${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.ext3" | ||
102 | IMAGE_FSTYPES ?= "tar.bz2 ext3 sdcard" | ||
103 | |||
104 | SERIAL_CONSOLE = "115200 ttymxc0" | ||
105 | |||
106 | KERNEL_IMAGETYPE = "uImage" | ||
107 | |||
108 | MACHINE_FEATURES = "apm usbgadget usbhost vfat alsa touchscreen" | ||