-
Notifications
You must be signed in to change notification settings - Fork 5
/
patch.sh
109 lines (91 loc) · 4.2 KB
/
patch.sh
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
#!/bin/bash
#
# Copyright (c) 2009-2012 Robert Nelson <robertcnelson@gmail.com>
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
#
# The above copyright notice and this permission notice shall be included in
# all copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
# THE SOFTWARE.
# Split out, so build_kernel.sh and build_deb.sh can share..
git="git am"
#git="git am --whitespace=fix"
if [ -f ${DIR}/system.sh ] ; then
source ${DIR}/system.sh
fi
if [ "${RUN_BISECT}" ] ; then
git="git apply"
fi
echo "Starting patch.sh"
git_add () {
git add .
git commit -a -m 'testing patchset'
}
cleanup () {
git format-patch -${number} -o ${DIR}/patches/
exit
}
bugs_trivial () {
echo "bugs and trivial stuff"
${git} "${DIR}/patches/trivial/0001-kbuild-deb-pkg-set-host-machine-after-dpkg-gencontro.patch"
}
mainline_fixes () {
echo "mainline patches"
${git} "${DIR}/patches/mainline-fixes/0001-arm-add-definition-of-strstr-to-decompress.c.patch"
}
imx () {
echo "imx patches"
${git} "${DIR}/patches/imx/0001-ARM-dts-imx6q-enable-snvs-lp-rtc.patch"
${git} "${DIR}/patches/imx/0002-ARM-imx-enable-cpufreq-for-imx6q.patch"
}
drm () {
echo "drm"
#Status: pulled from next v3.7-rc:
#From: http://cgit.freedesktop.org/~airlied/linux/log/?h=drm-next
${git} "${DIR}/patches/drm/0001-DRM-Add-DRM-GEM-CMA-helper.patch"
${git} "${DIR}/patches/drm/0002-DRM-Add-DRM-KMS-FB-CMA-helper.patch"
#Status: maybe for v3.7-rc?
#From: https://patchwork.kernel.org/patch/1361511/
${git} "${DIR}/patches/drm/0003-ARM-export-set_irq_flags-irq_set_chip_and_handler.patch"
#Status: in staging for v3.7-rc
#From: http://git.kernel.org/?p=linux/kernel/git/gregkh/staging.git;a=summary
${git} "${DIR}/patches/drm_imx/0001-staging-drm-imx-Add-i.MX-drm-core-support.patch"
${git} "${DIR}/patches/drm_imx/0002-staging-drm-imx-Add-parallel-display-support.patch"
${git} "${DIR}/patches/drm_imx/0003-staging-drm-imx-add-i.MX-IPUv3-base-driver.patch"
${git} "${DIR}/patches/drm_imx/0004-staging-drm-imx-Add-i.MX-IPUv3-crtc-support.patch"
${git} "${DIR}/patches/drm_imx/0005-staging-drm-imx-Add-devicetree-binding-documentation.patch"
${git} "${DIR}/patches/drm_imx/0006-staging-drm-imx-Add-TODO.patch"
#Status: Cherry Picked from:
#http://git.pengutronix.de/?p=imx/linux-2.6.git;a=shortlog;h=refs/heads/work/gpu/imx-drm-ipu-complete-rebase
${git} "${DIR}/patches/drm_imx/0007-ARM-i.MX51-babbage-Add-IPU-support.patch"
${git} "${DIR}/patches/drm_imx/0008-ARM-i.MX53-LOCO-Add-IPU-support.patch"
${git} "${DIR}/patches/drm_imx/0009-ARM-i.MX51-setup-mipi.patch"
${git} "${DIR}/patches/drm_imx/0010-ARM-i.MX5-initialize-m4if-interface.patch"
${git} "${DIR}/patches/drm_imx/0011-ARM-i.MX5-Hard-reset-the-IPU-during-startup.patch"
${git} "${DIR}/patches/drm_imx/0012-clk-add-a-__clk_set_flags-function.patch"
${git} "${DIR}/patches/drm_imx/0013-ARM-i.MX53-clk-Fix-ldb-parent-clocks.patch"
${git} "${DIR}/patches/drm_imx/0014-ARM-i.MX5-IPU-clk-support.patch"
${git} "${DIR}/patches/drm_imx/0015-ARM-i.MX6-Add-IPU-device-support.patch"
${git} "${DIR}/patches/drm_imx/0016-ARM-i.MX6-clk-initialize-some-video-clocks.patch"
${git} "${DIR}/patches/drm_imx/0017-DRM-allow-create-map-destroy-dumb-buffer-ioctls-for-.patch"
${git} "${DIR}/patches/drm_imx/0018-ARM-i.MX53-Fix-IPU-clk.patch"
${git} "${DIR}/patches/drm_imx/0019-of-Add-videomode-helper.patch"
}
bugs_trivial
mainline_fixes
imx
#freescale_patch_tree
#drm
echo "patch.sh ran successful"