blob: e48aefbdbdf8753a8e394c3d5e84d238719b4605 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
|
require linux.inc
require recipes-kernel/linux/linux-dtb.inc
require linux-dtb-append.inc
DESCRIPTION = "Linux kernel for the R-Car Generation 2 based board"
COMPATIBLE_MACHINE = "(alt|gose|koelsch|lager|porter|silk)"
FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
PV_append = "+git${SRCREV}"
RENESAS_BACKPORTS_URL="git://git.kernel.org/pub/scm/linux/kernel/git/horms/renesas-backport.git"
SRCREV = "165e12ce2d7839e755debbec78dfa43b54345275"
SRC_URI = "${RENESAS_BACKPORTS_URL};protocol=git;branch=bsp/v3.10.31-ltsi/rcar-gen2-1.9.7 \
file://0001-kernel-add-support-for-gcc-5.patch \
file://0001-arm-lager-Add-vmalloc-384M-to-bootargs-of-DTS.patch \
file://0001-arm-koelsch-Add-vmalloc-384M-to-bootargs-of-DTS.patch \
file://0001-arm-alt-Add-vmalloc-384M-to-bootargs-of-DTS.patch \
file://0001-arm-gose-Add-vmalloc-384M-to-bootargs-of-DTS.patch \
file://0049-Add-lsm9ds0-acc-gyro-mag-driver.patch \
file://0051-TI-ADS111X-sigma-delta-ADC-driver.patch \
file://0051a-Cleanup-TI-ADS111x-ADC-driver.patch \
file://0059-crypto-aead-Add-crypto_aead_set_reqsize-helper.patch \
file://sh-sci/0014-serial-sh-sci-Break-out-default-CTS-RTS-pin-setup.patch \
file://sh-sci/0015-serial-sh-sci-Fix-default-RTS-handling.patch \
file://sh-sci/0016-serial-sh-sci-Expose-default-CTS-pin.patch \
file://sh-sci/0017-serial-sh-sci-Add-SCIFA-SCIFB-CTS-RTS-pin-setup.patch \
file://sh-sci/0018-serial-sh-sci-Expose-SCIFA-SCIFB-CTS-pin.patch \
"
SRC_URI_append_porter = " file://porter.cfg"
SRC_URI_append_porter = '${@ " file://porter_ext01.cfg" if 'porter-ext01' in '${MACHINE_FEATURES}' else "" }'
SRC_URI_append_porter = " \
file://0001-kernel-Silk-board-support.patch \
file://0002-silk-reference-Add-DRM_RCAR_DU_CONNECT_VSP-configura.patch \
file://0002-kernel-silk-fix-ethernet-phy-irq.patch \
file://0003-kernel-silk-fix-sd-detect.patch \
file://0004-kernel-Revert-i2c-rcar-Support-ACK-by-HW-auto-restart-after-NACK.patch \
file://0006-Rcar-DU-add-RGB-connector.patch \
file://0007-SILK-add-i2c0.patch \
file://0008-Porter-board-support.patch \
file://0009-porter-reference-Add-DRM_RCAR_DU_CONNECT_VSP-configu.patch \
file://0009-shmobile-add-atag-dtb-compat.patch \
file://0010-Silk-Add-missing-pins-handle-to-Eth.patch \
file://0011-Silk-Add-missing-DU-pins.patch \
file://0012-can-add-Renesas-R-Car-CAN-driver.patch \
file://0013-sh-pfc-r8a7791-add-CAN-pin-groups.patch \
file://0014-sh-pfc-r8a7791-fix-CAN-pin-groups.patch \
file://0015-can-rcar_can-support-all-input-clocks.patch \
file://0016-can-rcar_can-document-device-tree-bindings.patch \
file://0017-can-rcar_can-add-device-tree-support.patch \
file://0018-porter-can-support.patch \
file://0019-i2c-busses-rcar-Workaround-arbitration-loss-error.patch \
file://0020-Silk-Remove-I2C1-clock-from-clk_enables.patch \
file://0001-ARM-shmobile-porter-board-Remove-Audio-platform-code.patch \
file://0002-ARM-shmobile-porter-Sound-PIO-support-on-DTS.patch \
file://0003-ARM-shmobile-porter-Sound-DMA-support-on-DTS.patch \
file://0004-ARM-shmobile-porter-Sound-DMA-support-via-BUSIF-on-D.patch \
file://0005-ARM-shmobile-porter-Sound-DMA-support-via-SRC-on-DTS.patch \
file://0006-ARM-shmobile-porter-Sound-DMA-support-via-DVC-on-DTS.patch \
file://0007-ARM-shmobile-porter-Fix-audio-clk-master-to-SSI-and-.patch \
file://0008-drm-rcar-du-r8a7791-disable-interlace-mode.patch \
file://0022-fanotify-fix-notification-of-groups-with-inode-mount.patch \
"
SRC_URI_append_porter = " \
file://porter/0003-Porter-add-LVDS-camera.patch \
file://porter/0004-GPIO-CPLD-gpio-extender-driver.patch \
file://porter/0012-regmap-Implemented-default-cache-sync-operation.patch \
file://porter/0013-regmap-cache-Don-t-attempt-to-sync-non-writeable-reg.patch \
file://porter/0014-ASoC-Add-SOC_DOUBLE_STS-macro.patch \
file://porter/0015-ASoC-pcm3168a-Add-binding-document-for-pcm3168a-code.patch \
file://porter/0016-ASoC-pcm3168a-Add-driver-for-pcm3168a-codec.patch \
file://porter/0017-ASoC-PCM3168A-add-TDM-modes.patch \
file://porter/0018-ASoC-PCM3168A-disable-16-bit-format.patch \
file://porter/0019-ASoC-PCM3168A-enable-on-power-on.patch \
file://porter/0020-ASoC-PCM3168A-merge-ADC-and-DAC-to-single-DAI.patch \
file://porter/0021-ASoC-PCM3168A-disable-PM.patch \
file://porter/0022-ASoC-fix-simple-card-do-not-respect-device-id.patch \
file://porter/0023-SPI-GPIO-get-master-fix.patch \
file://porter/0024-SPIDEV-extend-maximum-transfer-size.patch \
file://porter/0025-Radio-add-si468x-to-spidev.patch \
file://porter/0026-ASoC-add-dummy-Si468x-driver.patch \
file://porter/0027-ASoC-R-Car-initial-TDM-support.patch \
file://porter/0028-ASoC-rcar-correct-32bit-to-24-bit-sample-conv.patch \
file://porter/0029-ASoC-R-Car-fix-debug-output.patch \
file://porter/0030-R-Car-sound-disable-clock-hack.patch \
file://porter/0031-ASoC-R-car-SSI-fix-SSI-slave-mode-setup-while-TDM-an.patch \
file://porter/0032-ASoC-rsnd-care-SWSP-bit-for-TDM-non-TDM.patch \
file://porter/0033-ASoC-R-car-SSI-fix-SSI-slave-mode-setup-while-TDM-an.patch \
file://porter/0034-ASoC-RCar-fix-capture-in-TDM-mode.patch \
file://porter/0032-mmc-Add-SDIO-function-devicetree-subnode-parsing.patch \
file://porter/0038-Porter-LVDS-display-LQ123K1LG03.patch \
file://porter/0099-Porter-add-separate-dts-for-ext01-extension-board.patch \
file://porter/0100-Porter-ext01-add-dummy-regulator-to-select-48000-sou.patch \
file://porter/0101-porter-ext01-dts-disable-avb-mlb.patch \
"
SRC_URI_append_silk = " \
file://0001-kernel-Silk-board-support.patch \
file://0002-silk-reference-Add-DRM_RCAR_DU_CONNECT_VSP-configura.patch \
file://0002-kernel-silk-fix-ethernet-phy-irq.patch \
file://0003-kernel-silk-fix-sd-detect.patch \
file://0004-kernel-Revert-i2c-rcar-Support-ACK-by-HW-auto-restart-after-NACK.patch \
file://0006-Rcar-DU-add-RGB-connector.patch \
file://0007-SILK-add-i2c0.patch \
file://0008-Porter-board-support.patch \
file://0009-porter-reference-Add-DRM_RCAR_DU_CONNECT_VSP-configu.patch \
file://0009-shmobile-add-atag-dtb-compat.patch \
file://0010-Silk-Add-missing-pins-handle-to-Eth.patch \
file://0011-Silk-Add-missing-DU-pins.patch \
file://0012-can-add-Renesas-R-Car-CAN-driver.patch \
file://0013-sh-pfc-r8a7791-add-CAN-pin-groups.patch \
file://0014-sh-pfc-r8a7791-fix-CAN-pin-groups.patch \
file://0015-can-rcar_can-support-all-input-clocks.patch \
file://0016-can-rcar_can-document-device-tree-bindings.patch \
file://0017-can-rcar_can-add-device-tree-support.patch \
file://0018-porter-can-support.patch \
file://0019-i2c-busses-rcar-Workaround-arbitration-loss-error.patch \
file://0020-Silk-Remove-I2C1-clock-from-clk_enables.patch \
file://0021-drm-rcar-du-r8a7794-disable-interlace-mode.patch \
"
# smack patches are applied if DISTRO_FEATURES has "smack"
# smack patches from 3.10-rc1 to 3.14
SRC_URI_append_smack = " \
file://smack/0001-Smack-Local-IPv6-port-based-controls.patch \
file://smack/0002-Smack-Improve-access-check-performance.patch \
file://smack/0003-Smack-Add-smkfstransmute-mount-option.patch \
file://smack/0004-Smack-Fix-possible-NULL-pointer-dereference-at-smk_n.patch \
file://smack/0005-Smack-Fix-the-bug-smackcipso-can-t-set-CIPSO-correct.patch \
file://smack/0006-Security-Add-Hook-to-test-if-the-particular-xattr-is.patch \
file://smack/0007-xattr-Constify-name-member-of-struct-xattr.patch \
file://smack/0008-security-smack-fix-memleak-in-smk_write_rules_list.patch \
file://smack/0009-security-smack-add-a-hash-table-to-quicken-smk_find_.patch \
file://smack/0010-Smack-network-label-match-fix.patch \
file://smack/0011-Smack-IPv6-casting-error-fix-for-3.11.patch \
file://smack/0012-Smack-parse-multiple-rules-per-write-to-load2-up-to-.patch \
file://smack/0013-Smack-Implement-lock-security-mode.patch \
file://smack/0014-Smack-Ptrace-access-check-mode.patch \
file://smack/0015-smack-fix-allow-either-entry-be-missing-on-access-ac.patch \
file://smack/0016-Smack-Prevent-the-and-labels-from-being-used-in-SMAC.patch \
file://smack/0017-Smack-Make-the-syslog-control-configurable.patch \
file://smack/0018-Smack-change-rule-cap-check.patch \
file://smack/0019-Smack-Rationalize-mount-restrictions.patch \
file://smack/0020-Smack-File-receive-audit-correction.patch \
file://smack/0021-smack-call-WARN_ONCE-instead-of-calling-audit_log_st.patch \
"
# smack patches are applied if DISTRO_FEATURES has "smack"
# smack patches from 3.14 to 3.19
SRC_URI_append_smack = " \
file://smack/0022-smack-fix-key-permission-verification.patch \
file://smack/0023-Minor-improvement-of-smack_sb_kern_mount.patch \
file://smack/0024-Smack-fix-the-subject-object-order-in-smack_ptrace_t.patch \
file://smack/0025-Smack-unify-all-ptrace-accesses-in-the-smack.patch \
file://smack/0026-Smack-adds-smackfs-ptrace-interface.patch \
file://smack/0027-bugfix-patch-for-SMACK.patch \
file://smack/0028-SMACK-Fix-handling-value-NULL-in-post-setxattr.patch \
file://smack/0029-Smack-Correctly-remove-SMACK64TRANSMUTE-attribute.patch \
file://smack/0030-Smack-bidirectional-UDS-connect-check.patch \
file://smack/0031-Smack-Verify-read-access-on-file-open-v3.patch \
file://smack/0032-Smack-Label-cgroup-files-for-systemd.patch \
file://smack/0033-Warning-in-scanf-string-typing.patch \
file://smack/0034-Smack-fix-behavior-of-smack_inode_listsecurity.patch \
file://smack/0035-Smack-handle-zero-length-security-labels-without-pan.patch \
file://smack/0036-Smack-remove-unneeded-NULL-termination-from-securtit.patch \
file://smack/0037-Smack-Fix-setting-label-on-successful-file-open.patch \
file://smack/0038-Smack-Bring-up-access-mode.patch \
file://smack/0039-Small-fixes-in-comments-describing-function-paramete.patch \
file://smack/0040-Fix-a-bidirectional-UDS-connect-check-typo.patch \
file://smack/0041-Make-Smack-operate-on-smack_known-struct-where-it-st.patch \
file://smack/0042-Smack-Lock-mode-for-the-floor-and-hat-labels.patch \
file://smack/0043-Security-smack-replace-kzalloc-with-kmem_cache-for-i.patch \
file://smack/0044-security-smack-fix-out-of-bounds-access-in-smk_parse.patch \
"
# smack patches are applied if DISTRO_FEATURES has "smack"
# smack patches from 3.19 to 4.0
SRC_URI_append_smack = " \
file://smack/0045-smack-miscellaneous-small-fixes-in-function-comments.patch \
file://smack/0046-smack-fix-logic-in-smack_inode_init_security-functio.patch \
file://smack/0047-smack-introduce-a-special-case-for-tmpfs-in-smack_d_.patch \
file://smack/0048-smack-Fix-a-bidirectional-UDS-connect-check-typo.patch \
file://smack/0049-Smack-Rework-file-hooks.patch \
file://smack/0050-Smack-secmark-support-for-netfilter.patch \
file://smack/0051-smack-Add-missing-logging-in-bidirectional-UDS-conne.patch \
file://smack/0052-smack-fix-possible-use-after-frees-in-task_security-.patch \
file://smack/0053-Smack-Repair-netfilter-dependency.patch \
file://smack/0054-Smack-secmark-connections.patch \
"
S = "${WORKDIR}/git"
KERNEL_DEFCONFIG = "shmobile_defconfig"
do_configure_prepend() {
install -m 0644 ${S}/arch/${ARCH}/configs/${KERNEL_DEFCONFIG} ${WORKDIR}/defconfig || die "No default configuration for ${MACHINE} / ${KERNEL_DEFCONFIG} available."
}
|