packaging: add spec file, gbs.conf
[platform/kernel/linux-stable.git] / packaging / README.update
1 How to bump kernel version
2 ==========================
3
4 Parameters:
5 -----------
6 * branch to upgrade to (example: linux-3.14.y as defined on git.kernel.org)
7 * tag to upgrade to (example: v3.14.20)
8 * kernel version
9
10 Define variables:
11 # linux_branch=linux-3.14.y
12 # linux_tag=v3.14.20
13
14 1. Clone linux-stable from tizen.org
15 ------------------------------------
16
17 # git clone review.tizen.org:platform/kernel/linux-stable
18 # cd linux-stable
19
20 2. add kernel.org as new origin and fetch it
21 --------------------------------------------
22
23 # git remote add kernel_org git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git
24 # git fetch kernel_org
25
26 3. import on upstream branch until given revision and push to tizen.org
27 -----------------------------------------------------------------------
28
29 # git checkout upstream
30 # git rebase kernel_org/${linux_branch}
31 # git push origin HEAD:upstream
32 # git push --tags origin HEAD:upstream
33
34 4. rebase tizen branch
35 ----------------------
36
37 # git checkout -B tizen origin/tizen
38 # git rebase -i ${linux_tag}
39
40 5. Bump the kernel version in the spec file
41 -------------------------------------------
42
43 # sed -ri "s/^(%define upstream_version).*$/\1 $(make kernelversion)/" packaging/*.spec