diff options
-rw-r--r-- | recipes-kernel/linux/linux-imx/no-unaligned-access.patch | 17 | ||||
-rw-r--r-- | recipes-kernel/linux/linux-imx_2.6.35.3.bb | 28 |
2 files changed, 43 insertions, 2 deletions
diff --git a/recipes-kernel/linux/linux-imx/no-unaligned-access.patch b/recipes-kernel/linux/linux-imx/no-unaligned-access.patch new file mode 100644 index 0000000..3015b90 --- /dev/null +++ b/recipes-kernel/linux/linux-imx/no-unaligned-access.patch | |||
@@ -0,0 +1,17 @@ | |||
1 | diff --git a/Makefile b/Makefile | ||
2 | index 554683d..7b4fe94 100644 | ||
3 | --- a/Makefile | ||
4 | +++ b/Makefile | ||
5 | @@ -333,10 +333,10 @@ CHECK = sparse | ||
6 | CHECKFLAGS := -D__linux__ -Dlinux -D__STDC__ -Dunix -D__unix__ \ | ||
7 | -Wbitwise -Wno-return-void $(CF) | ||
8 | MODFLAGS = -DMODULE | ||
9 | -CFLAGS_MODULE = $(MODFLAGS) | ||
10 | +CFLAGS_MODULE = $(MODFLAGS) -mno-unaligned-access | ||
11 | AFLAGS_MODULE = $(MODFLAGS) | ||
12 | LDFLAGS_MODULE = -T $(srctree)/scripts/module-common.lds | ||
13 | -CFLAGS_KERNEL = | ||
14 | +CFLAGS_KERNEL = -mno-unaligned-access | ||
15 | AFLAGS_KERNEL = | ||
16 | CFLAGS_GCOV = -fprofile-arcs -ftest-coverage | ||
17 | |||
diff --git a/recipes-kernel/linux/linux-imx_2.6.35.3.bb b/recipes-kernel/linux/linux-imx_2.6.35.3.bb index 97e7ac4..817f70d 100644 --- a/recipes-kernel/linux/linux-imx_2.6.35.3.bb +++ b/recipes-kernel/linux/linux-imx_2.6.35.3.bb | |||
@@ -4,16 +4,40 @@ | |||
4 | DESCRIPTION = "Linux kernel for imx platforms" | 4 | DESCRIPTION = "Linux kernel for imx platforms" |
5 | LICENSE = "GPLv2" | 5 | LICENSE = "GPLv2" |
6 | LIC_FILES_CHKSUM = "file://COPYING;md5=d7810fab7487fb0aad327b76f1be7cd7" | 6 | LIC_FILES_CHKSUM = "file://COPYING;md5=d7810fab7487fb0aad327b76f1be7cd7" |
7 | PR = "r8" | 7 | PR = "r9" |
8 | 8 | ||
9 | inherit kernel | 9 | inherit kernel |
10 | COMPATIBLE_MACHINE = "(imx53qsb|imx53ard)" | 10 | COMPATIBLE_MACHINE = "(imx53qsb|imx53ard)" |
11 | 11 | ||
12 | SRC_URI = "git://opensource.freescale.com/pub/scm/imx/linux-2.6-imx.git;tag=rel_imx_2.6.35_11.09.01;protocol=http \ | 12 | SRC_URI = "git://opensource.freescale.com/pub/scm/imx/linux-2.6-imx.git;tag=rel_imx_2.6.35_11.09.01;protocol=http \ |
13 | file://egalax_ts-enable-single-event-support.patch \ | 13 | file://egalax_ts-enable-single-event-support.patch \ |
14 | file://1130-ENGR00157473-MX5X-UART-disable-UART2-DMA-to-make-G.patch \ | ||
15 | file://1132-ENGR00155891-mx53_loco-enable-mc34708-s-WDI-functio.patch \ | ||
16 | file://1134-ENGR00159738-v4l2-correct-wrong-parameter-when-V4l2.patch \ | ||
17 | file://1136-ENGR00161215-1-arch-arm-Add-two-new-IOCTLs-in-mxc_v.patch \ | ||
18 | file://1137-ENGR00161215-2-vpu-Add-ioctls-for-querying-and-sett.patch \ | ||
19 | file://1139-ENGR00162464-update-pm4-microcode-pm4_microcode_r18.patch \ | ||
20 | file://1140-ENGR00162711-DA9053-Add-dummy-write-for-DA9053-I2C.patch \ | ||
21 | file://1141-ENGR00162708-MX5-Add-I2C-dummy-write-and-mask-nONKE.patch \ | ||
22 | file://1142-ENGR00163698-MX53-ARD-fix-typo-error-for-pwm1-pad-d.patch \ | ||
14 | file://1143-ENGR00162578-DMA-mx5-increase-DMA-Zone-size-to-112.patch \ | 23 | file://1143-ENGR00162578-DMA-mx5-increase-DMA-Zone-size-to-112.patch \ |
15 | file://devtmpfs-init-options-alignment.patch \ | 24 | file://1144-ENGR00169603-MX53-ARD-FlexCAN-Set-lp_apm-as-clock.patch \ |
25 | file://1145-ENGR00170342-PWM-fix-pwm-output-can-t-be-set-to-100.patch \ | ||
26 | file://1146-ENGR00170244-1-ARM-AHCI-Enable-PDDQ-mode-when-no-d.patch \ | ||
27 | file://1147-ENGR00170244-2-ARM-AHCI-Enable-PDDQ-mode-when-no-d.patch \ | ||
28 | file://no-unaligned-access.patch \ | ||
16 | file://defconfig \ | 29 | file://defconfig \ |
17 | " | 30 | " |
18 | 31 | ||
32 | # TODO: Work in progress to follow Freescale. The following patches are | ||
33 | # causing black screens when using VPU video playout. | ||
34 | # -- Leon Woestenberg <leon@sidebranch.com> | ||
35 | # | ||
36 | # file://1131-ENGR00158480-IPUv3-Set-IDMAC-LOCK-for-SDC-display-ch.patch \ | ||
37 | # file://1133-ENGR00159010-IPUv3-Restore-IDMAC_CH_LOCK_EN_1-for-re.patch \ | ||
38 | # file://1138-ENGR00162195-IPUv3M-Clear-IDMAC_LOCK_EN_1-for-tough.patch \ | ||
39 | # file://1135-ENGR00160566-IPUv3-Improve-IDMAC_LOCK_EN-setting.patch \ | ||
40 | # file://devtmpfs-init-options-alignment.patch \ | ||
41 | #EXTRA_OEMAKE += "V=1" | ||
42 | |||
19 | S = "${WORKDIR}/git" | 43 | S = "${WORKDIR}/git" |