blob: b9b43bbb81d16a0bccdbcd6a281d7c4d01950a4f [file] [log] [blame]
Stephen Cpreke7254c72015-02-19 14:33:38 -06001#### Version String Readme ####
2
3 ## Customrc ##
4
5 Create a file at the top level of op-build called 'customrc'
6 to specify custom $(OPBUILD_VENDOR), $(OPBUILD_PLATFORM), and $(OPBUILD_VERSION).
7
8 Example:
9 #!/bin/sh
10 #export OPBUILD_VENDOR=IBM
11 #export OPBUILD_PLATFORM=plat-ibm
12 #export OPBUILD_VERSION=v-1.0.1
13
14 ## Op-build Commands ##
15
Stephen Cprekded98fb2015-04-15 17:11:52 -050016 # Display subpackage version
Stephen Cpreke7254c72015-02-19 14:33:38 -060017 op-build $(package)-version
18
Stephen Cprekded98fb2015-04-15 17:11:52 -050019 # Display entire pnor version
20 op-build openpower-pnor-version
21
22 # Force a rebuild of a subpackage version
Stephen Cpreke7254c72015-02-19 14:33:38 -060023 op-build $(package)-build-version
24
Stephen Cprekded98fb2015-04-15 17:11:52 -050025 # Force a rebuild of all subpackage versions
26 op-build openpower-pnor-build-version-all
27
Stephen Cpreke7254c72015-02-19 14:33:38 -060028 ## Version String (ASCII) ##
29
30 General:
31 $(op-build)\n
32 \t$(subpackage0)\n
33 \t$(subpackage1)\n
34 \0
35
36 ## Version String Details ##
37
38 $(op-build):
39 - Clean
40 + $(vendor)-$(platform)-$(op-version)
41 - Dirty.
42 + $(vendor)-$(platform)-$(gitcommit+dirty)
43 $(sub-package):
44 - Directly upstream, no patches, op-build clean.
45 + $(package)-$(version)
46 - Directly upstream, no patches, op-build dirty.
47 + $(package)-$(version)-$(op-dirty)
48 - Directly upstream, op-build patches, op-build clean
49 + $(package)-$(version)-$(patch-level)
50 - Directly upstream, op-build patches, op-build dirty.
51 + $(package)-$(version)-$(op-dirty)-$(patch-level)
52 - SITE=local
53 + $(package)-site_local-$(user)-$(gitcommit+dirty)
54
55 ## Variable Details ##
56
57 - $(vendor) = $(OPBUILD_VENDOR) or 'open-power'.
58 - $(platform) = $(OPBUILD_PLATFORM) or defconfig
59 + Order $(OPBUILD_PLATFORM), defconfig
60 - $(op-version) = git tag or first 7 characters of commit or $(OPBUILD_VERSION) or 'unknown'.
61 + Order $(OPBUILD_VERSION), tag, commit, unknown
62 - **$(gitcommit+dirty) = abcd123 or abcd123-dirty or 'unknown'
63 - $(version) = git tag or first 7 characters of commit
64 - $(user) = `whoami`
65 - **$(op-dirty) = opdirty or 'unknown'
66 - $(patch-level) = $(first 7 characters of 'sha512sum *.patch | sha512sum')
67 + the output of this gives us a quick way to check all the patches with one string
68
69 ** Indicates possible unknown case when source downloaded versus git clone due to git commands required
70
71 ## Sub Packages ##
72
73 Current sub packages included in openpower-pnor.mk $(OPENPOWER_VERSIONED_SUBPACKAGES)
74
75 - hostboot
76 - occ
77 - skiboot
78 - $(platform)-xml
79 - hostboot-binaries
80 - capp-ucode
81
82 ## PNOR section ##
83
84 - There is one version PNOR section per side
85 - Each is one page w/o ECC so 4K
86 - The data in the section will just be ASCII
87
88 ## Op-build Command Examples ##
89
90 cmd> op-build openpower-pnor-version
91 === OPENPOWER_PNOR_VERSION ===
92 IBM-plat-ibm-v-1.2.3-dirty
93 hostboot-3593853-99cca2b
94 occ-cc8376d
95 skiboot-9a3f68b-7c66ab4
96 hostboot-binaries-e3c9356
97 habanero-xml-4c1e936
98 capp-ucode-d4b2683
99
100 cmd> op-build hostboot-version
101 === HOSTBOOT_VERSION ===
102 hostboot-3593853-opdirty-99cca2b
103
104 If a version does not already exist, the commands to make one will be run.
105 Additionally you can force with op-build $(package)-build-version
106
107 cmd> op-build hostboot-version (or op-build hostboot-build-version)
108 === HOSTBOOT_VERSION ===
109 Searching for patches...
110 op-build/openpower/package/hostboot/hostboot-0001-Increase-uart-delay.patch
111 op-build/openpower/package/hostboot/hostboot-0002-Disable-centaur-memory-throttle.patch
112 op-build/openpower/package/hostboot/hostboot-0003-GCC-4.9-Make-compiler-use-ELFv1-ABI-and-use-O2.patch
113 op-build/openpower/package/hostboot/hostboot-0004-Revert-SW294127-INITPROC-FSP-Hostboot-fast-exit-powe.patch
114 op-build/openpower/package/hostboot/hostboot-0005-Disable-SPD-writes-workaround-for-DRAM-repairs-error.patch
115 op-build/openpower/package/hostboot/hostboot-0006-Runtime-fixes-for-IPMI.patch
116 op-build/openpower/package/hostboot/hostboot-0007-Update-DIMM_TEMP-Sensor-Enum.patch
117 op-build/openpower/package/hostboot/hostboot-0008-mss-thermal-init-SW297647.patch
118 op-build/openpower/package/hostboot/hostboot-0009-Sel-instead-of-eSel.patch
119 op-build/openpower/package/hostboot/hostboot-0010-Reset-occ-when-fails-to-activate.patch
120 op-build/openpower/package/hostboot/hostboot-0011-eRepair-MBVPD-size-check-for-CDIMM-and-ISDIMM.patch
121 End of patches...
122 Creating version string (various output may display)...
123 heads/pnor_version-dirty
124 End creating version string...
125 version: hostboot-3593853-99cca2b