blob: 9cd9943361653f8b45c7dbeb00a64147eb650059 [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
Stephen Cpreke7254c72015-02-19 14:33:38 -060075 - skiboot
Sam Mendoza-Jonas33f30442016-03-01 16:38:56 +110076 - hostboot
77 - petitboot kernel
78 - petitboot
Stephen Cpreke7254c72015-02-19 14:33:38 -060079 - $(platform)-xml
Sam Mendoza-Jonas33f30442016-03-01 16:38:56 +110080 - occ
Stephen Cpreke7254c72015-02-19 14:33:38 -060081 - hostboot-binaries
82 - capp-ucode
83
84 ## PNOR section ##
85
86 - There is one version PNOR section per side
87 - Each is one page w/o ECC so 4K
88 - The data in the section will just be ASCII
89
90 ## Op-build Command Examples ##
91
92 cmd> op-build openpower-pnor-version
93 === OPENPOWER_PNOR_VERSION ===
94 IBM-plat-ibm-v-1.2.3-dirty
95 hostboot-3593853-99cca2b
96 occ-cc8376d
97 skiboot-9a3f68b-7c66ab4
98 hostboot-binaries-e3c9356
99 habanero-xml-4c1e936
100 capp-ucode-d4b2683
101
102 cmd> op-build hostboot-version
103 === HOSTBOOT_VERSION ===
104 hostboot-3593853-opdirty-99cca2b
105
106 If a version does not already exist, the commands to make one will be run.
107 Additionally you can force with op-build $(package)-build-version
108
109 cmd> op-build hostboot-version (or op-build hostboot-build-version)
110 === HOSTBOOT_VERSION ===
111 Searching for patches...
112 op-build/openpower/package/hostboot/hostboot-0001-Increase-uart-delay.patch
113 op-build/openpower/package/hostboot/hostboot-0002-Disable-centaur-memory-throttle.patch
114 op-build/openpower/package/hostboot/hostboot-0003-GCC-4.9-Make-compiler-use-ELFv1-ABI-and-use-O2.patch
115 op-build/openpower/package/hostboot/hostboot-0004-Revert-SW294127-INITPROC-FSP-Hostboot-fast-exit-powe.patch
116 op-build/openpower/package/hostboot/hostboot-0005-Disable-SPD-writes-workaround-for-DRAM-repairs-error.patch
117 op-build/openpower/package/hostboot/hostboot-0006-Runtime-fixes-for-IPMI.patch
118 op-build/openpower/package/hostboot/hostboot-0007-Update-DIMM_TEMP-Sensor-Enum.patch
119 op-build/openpower/package/hostboot/hostboot-0008-mss-thermal-init-SW297647.patch
120 op-build/openpower/package/hostboot/hostboot-0009-Sel-instead-of-eSel.patch
121 op-build/openpower/package/hostboot/hostboot-0010-Reset-occ-when-fails-to-activate.patch
122 op-build/openpower/package/hostboot/hostboot-0011-eRepair-MBVPD-size-check-for-CDIMM-and-ISDIMM.patch
123 End of patches...
124 Creating version string (various output may display)...
125 heads/pnor_version-dirty
126 End creating version string...
127 version: hostboot-3593853-99cca2b