Stephen Cprek | e7254c7 | 2015-02-19 14:33:38 -0600 | [diff] [blame] | 1 | #### 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 Cprek | ded98fb | 2015-04-15 17:11:52 -0500 | [diff] [blame] | 16 | # Display subpackage version |
Stephen Cprek | e7254c7 | 2015-02-19 14:33:38 -0600 | [diff] [blame] | 17 | op-build $(package)-version |
| 18 | |
Stephen Cprek | ded98fb | 2015-04-15 17:11:52 -0500 | [diff] [blame] | 19 | # Display entire pnor version |
| 20 | op-build openpower-pnor-version |
| 21 | |
| 22 | # Force a rebuild of a subpackage version |
Stephen Cprek | e7254c7 | 2015-02-19 14:33:38 -0600 | [diff] [blame] | 23 | op-build $(package)-build-version |
| 24 | |
Stephen Cprek | ded98fb | 2015-04-15 17:11:52 -0500 | [diff] [blame] | 25 | # Force a rebuild of all subpackage versions |
| 26 | op-build openpower-pnor-build-version-all |
| 27 | |
Stephen Cprek | e7254c7 | 2015-02-19 14:33:38 -0600 | [diff] [blame] | 28 | ## 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 Cprek | e7254c7 | 2015-02-19 14:33:38 -0600 | [diff] [blame] | 75 | - skiboot |
Sam Mendoza-Jonas | 33f3044 | 2016-03-01 16:38:56 +1100 | [diff] [blame] | 76 | - hostboot |
| 77 | - petitboot kernel |
| 78 | - petitboot |
Stephen Cprek | e7254c7 | 2015-02-19 14:33:38 -0600 | [diff] [blame] | 79 | - $(platform)-xml |
Sam Mendoza-Jonas | 33f3044 | 2016-03-01 16:38:56 +1100 | [diff] [blame] | 80 | - occ |
Stephen Cprek | e7254c7 | 2015-02-19 14:33:38 -0600 | [diff] [blame] | 81 | - 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 |