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