Stephen Cprek | e7254c7 | 2015-02-19 14:33:38 -0600 | [diff] [blame] | 1 | ################################################################################ |
| 2 | # |
| 3 | # pkg-versions |
| 4 | # |
| 5 | # Read VERSION.readme in the current directory to learn about the version |
| 6 | # string structure |
| 7 | # |
| 8 | ################################################################################ |
| 9 | |
| 10 | define OPENPOWER_SUBPACKAGE_VERSION |
| 11 | |
| 12 | $(2)_VERSION_FILE = $$(OPENPOWER_VERSION_DIR)/$(1).version.txt |
| 13 | ALL_SUBPACKAGE_VERSIONS += $$($(2)_VERSION_FILE) |
| 14 | |
| 15 | ### Create subpackage patch file |
| 16 | define $(2)_OPENPOWER_PATCH_FILE |
| 17 | |
| 18 | mkdir -p "$$(OPENPOWER_VERSION_DIR)"; |
| 19 | |
| 20 | # Remove patch file to start off fresh |
| 21 | if [ -f $$(OPENPOWER_VERSION_DIR)/$(1).patch.txt ]; then \ |
| 22 | rm -rf $$(OPENPOWER_VERSION_DIR)/$(1).patch.txt; \ |
| 23 | fi |
| 24 | |
| 25 | # Check all global patch directories |
| 26 | $$(foreach path, $$(BR2_GLOBAL_PATCH_DIR),if ls $$(path)/$(1)/*.patch 2>/dev/null; then \ |
| 27 | sha512sum $$(path)/$(1)/*.patch | sha512sum | \ |
| 28 | xargs echo >> $$(OPENPOWER_VERSION_DIR)/$(1).tmp_patch.txt; fi;) |
| 29 | |
| 30 | # Check the package patch dir, $$(PKGDIR) doesn't exist when running the version rules |
| 31 | if [ -n "$$(PKGDIR)" ]; then \ |
| 32 | if ls $$(PKGDIR)*.patch 2>/dev/null; then sha512sum $$(PKGDIR)*.patch | sha512sum | \ |
| 33 | xargs echo >> $$(OPENPOWER_VERSION_DIR)/$(1).tmp_patch.txt; \ |
| 34 | fi; \ |
| 35 | else \ |
Joel Stanley | 5ab5fdb | 2016-10-31 23:10:24 +1030 | [diff] [blame] | 36 | if ls $$(BR2_EXTERNAL_OP_BUILD_PATH)/package/$(1)/*.patch 2>/dev/null; then sha512sum \ |
| 37 | $$(BR2_EXTERNAL_OP_BUILD_PATH)/package/$(1)/*.patch | sha512sum | \ |
Stephen Cprek | e7254c7 | 2015-02-19 14:33:38 -0600 | [diff] [blame] | 38 | xargs echo >> $$(OPENPOWER_VERSION_DIR)/$(1).tmp_patch.txt; \ |
| 39 | fi; \ |
| 40 | fi |
| 41 | |
Sam Mendoza-Jonas | e56617a | 2016-03-09 11:59:08 +1100 | [diff] [blame] | 42 | # If this is for linux, also check openpower/linux |
Stewart Smith | fd7a226 | 2017-02-17 17:20:54 +1100 | [diff] [blame] | 43 | if [ "LINUX" == "$(2)" ]; then \ |
Joel Stanley | 5ab5fdb | 2016-10-31 23:10:24 +1030 | [diff] [blame] | 44 | if ls $$(BR2_EXTERNAL_OP_BUILD_PATH)/$(1)/*.patch 2>/dev/null; then sha512sum \ |
| 45 | $$(BR2_EXTERNAL_OP_BUILD_PATH)/$(1)/*.patch | sha512sum | \ |
Sam Mendoza-Jonas | e56617a | 2016-03-09 11:59:08 +1100 | [diff] [blame] | 46 | xargs echo >> $$(OPENPOWER_VERSION_DIR)/$(1).tmp_patch.txt; \ |
| 47 | fi; \ |
| 48 | fi; |
| 49 | |
Stephen Cprek | e7254c7 | 2015-02-19 14:33:38 -0600 | [diff] [blame] | 50 | # Combine all the patches found in the package and global package directories |
| 51 | if [ -f $$(OPENPOWER_VERSION_DIR)/$(1).tmp_patch.txt ]; then \ |
| 52 | cat $$(OPENPOWER_VERSION_DIR)/$(1).tmp_patch.txt | sha512sum | cut -c 1-7 | \ |
| 53 | xargs echo -n > $$(OPENPOWER_VERSION_DIR)/$(1).patch.txt; \ |
| 54 | fi |
| 55 | |
| 56 | # Remove the tmp_patch file |
| 57 | if [ -f $$(OPENPOWER_VERSION_DIR)/$(1).tmp_patch.txt ]; then \ |
| 58 | rm -rf $$(OPENPOWER_VERSION_DIR)/$(1).tmp_patch.txt; \ |
| 59 | fi |
| 60 | |
Klaus Heinrich Kiwi | d255124 | 2020-07-16 16:59:04 -0300 | [diff] [blame] | 61 | endef # $(2)_OPENPOWER_PATCH_FILE |
Stephen Cprek | e7254c7 | 2015-02-19 14:33:38 -0600 | [diff] [blame] | 62 | |
| 63 | ### Create subpackage version file |
| 64 | define $(2)_OPENPOWER_VERSION_FILE |
| 65 | |
| 66 | mkdir -p "$$(OPENPOWER_VERSION_DIR)" |
| 67 | |
| 68 | # Add package name |
| 69 | echo -n " $(1)-" > $$($(2)_VERSION_FILE) |
| 70 | |
| 71 | # If site local |
| 72 | # Add site local and user, local commit, if local is dirty |
| 73 | # Else not local |
Sam Mendoza-Jonas | ddc5fab | 2016-03-11 14:37:04 +1100 | [diff] [blame] | 74 | # Add package version, extraversion if linux, op-build is dirty, op-build patches |
Stephen Cprek | e7254c7 | 2015-02-19 14:33:38 -0600 | [diff] [blame] | 75 | if [ "$$($(2)_SITE_METHOD)" == "local" ]; then \ |
| 76 | echo -n "site_local-" >> $$($(2)_VERSION_FILE); \ |
| 77 | whoami | xargs echo -n >> $$($(2)_VERSION_FILE); \ |
| 78 | echo -n "-" >> $$($(2)_VERSION_FILE); \ |
| 79 | \ |
Stewart Smith | fd7a226 | 2017-02-17 17:20:54 +1100 | [diff] [blame] | 80 | cd "$$($(2)_SITE)"; (git describe --always --dirty || echo "unknown") \ |
| 81 | |sed -e 's/$(1)-//' | xargs echo -n\ |
Stephen Cprek | e7254c7 | 2015-02-19 14:33:38 -0600 | [diff] [blame] | 82 | >> $$($(2)_VERSION_FILE); \ |
| 83 | \ |
Stephen Cprek | e7254c7 | 2015-02-19 14:33:38 -0600 | [diff] [blame] | 84 | else \ |
| 85 | \ |
| 86 | [ `echo -n $$($(2)_VERSION) | wc -c` == "40" ] && (echo -n $$($(2)_VERSION) | \ |
Stewart Smith | 93157d1 | 2015-05-14 16:01:44 +1000 | [diff] [blame] | 87 | sed "s/^\([0-9a-f]\{7\}\).*/\1/;s/$(1)-//;" >> $$($(2)_VERSION_FILE)) \ |
| 88 | || echo -n $$($(2)_VERSION) | sed -e 's/$(1)-//' >> $$($(2)_VERSION_FILE); \ |
Stephen Cprek | e7254c7 | 2015-02-19 14:33:38 -0600 | [diff] [blame] | 89 | \ |
Stewart Smith | fd7a226 | 2017-02-17 17:20:54 +1100 | [diff] [blame] | 90 | if [ "LINUX" == "$(2)" ]; then \ |
Sam Mendoza-Jonas | ddc5fab | 2016-03-11 14:37:04 +1100 | [diff] [blame] | 91 | if ls $$(BUILD_DIR)/$(1)-$$($(2)_VERSION)/Makefile 1>/dev/null; then \ |
| 92 | head $$(BUILD_DIR)/$(1)-$$($(2)_VERSION)/Makefile | grep EXTRAVERSION \ |
| 93 | | cut -d ' ' -f 3 | \ |
| 94 | xargs echo -n >> $$($(2)_VERSION_FILE); \ |
| 95 | fi; \ |
| 96 | fi; \ |
| 97 | \ |
Stephen Cprek | e7254c7 | 2015-02-19 14:33:38 -0600 | [diff] [blame] | 98 | if [ -f $$(OPENPOWER_VERSION_DIR)/$(1).patch.txt ]; then \ |
Stewart Smith | fd7a226 | 2017-02-17 17:20:54 +1100 | [diff] [blame] | 99 | echo -n "-p" >> $$($(2)_VERSION_FILE); \ |
Stephen Cprek | e7254c7 | 2015-02-19 14:33:38 -0600 | [diff] [blame] | 100 | cat $$(OPENPOWER_VERSION_DIR)/$(1).patch.txt >> $$($(2)_VERSION_FILE); fi \ |
| 101 | fi |
| 102 | |
| 103 | # Add new line to version.txt |
| 104 | echo "" >> $$($(2)_VERSION_FILE); |
| 105 | |
Klaus Heinrich Kiwi | d255124 | 2020-07-16 16:59:04 -0300 | [diff] [blame] | 106 | endef # $(2)_OPENPOWER_VERSION_FILE |
Stephen Cprek | e7254c7 | 2015-02-19 14:33:38 -0600 | [diff] [blame] | 107 | |
Klaus Heinrich Kiwi | d255124 | 2020-07-16 16:59:04 -0300 | [diff] [blame] | 108 | # Add appropriate templates to hooks if they're not there already |
| 109 | ifeq (,$$(findstring $(2)_OPENPOWER_PATCH_FILE,$$($(2)_POST_PATCH_HOOKS))) |
Stephen Cprek | e7254c7 | 2015-02-19 14:33:38 -0600 | [diff] [blame] | 110 | $(2)_POST_PATCH_HOOKS += $(2)_OPENPOWER_PATCH_FILE |
Klaus Heinrich Kiwi | d255124 | 2020-07-16 16:59:04 -0300 | [diff] [blame] | 111 | endif |
| 112 | ifeq (,$$(findstring $(2)_OPENPOWER_VERSION_FILE,$$($(2)_PRE_CONFIGURE_HOOKS))) |
Samuel Mendoza-Jonas | d38455d | 2016-07-15 16:32:18 +1000 | [diff] [blame] | 113 | $(2)_PRE_CONFIGURE_HOOKS += $(2)_OPENPOWER_VERSION_FILE |
Klaus Heinrich Kiwi | d255124 | 2020-07-16 16:59:04 -0300 | [diff] [blame] | 114 | endif |
Stephen Cprek | e7254c7 | 2015-02-19 14:33:38 -0600 | [diff] [blame] | 115 | |
| 116 | # Top-level rule to print or generate a subpackage version |
| 117 | $(1)-version: $$(if $$(wildcard $$($(2)_VERSION_FILE)),$(1)-print-version,$(1)-build-version) |
| 118 | |
| 119 | # Rule to print out subpackage version |
| 120 | $(1)-print-version: |
| 121 | @echo "=== $(2)_VERSION ===" |
| 122 | @cat $$($(2)_VERSION_FILE) | xargs echo |
| 123 | |
| 124 | # Rule to generate subpackage version |
| 125 | $(1)-build-version: |
| 126 | @echo "=== $(2)_VERSION ===" |
| 127 | @echo " Searching for patches..." |
| 128 | @$$($(2)_OPENPOWER_PATCH_FILE) |
| 129 | @echo " End of patches..."; |
| 130 | @echo " Creating version string (various output may display)..." |
| 131 | @$$($(2)_OPENPOWER_VERSION_FILE) |
| 132 | @echo " End creating version string..." |
| 133 | @echo -n " version: "; cat $$($(2)_VERSION_FILE) | xargs echo |
| 134 | |
Klaus Heinrich Kiwi | d255124 | 2020-07-16 16:59:04 -0300 | [diff] [blame] | 135 | endef # OPENPOWER_SUBPACKAGE_VERSION |
Stephen Cprek | e7254c7 | 2015-02-19 14:33:38 -0600 | [diff] [blame] | 136 | |
Stephen Cprek | e7254c7 | 2015-02-19 14:33:38 -0600 | [diff] [blame] | 137 | |
Klaus Heinrich Kiwi | d255124 | 2020-07-16 16:59:04 -0300 | [diff] [blame] | 138 | #### |
| 139 | # $(1) is the lowercase package version |
| 140 | # $(2) is the uppercase pacakge version |
| 141 | #### |
| 142 | define INNER_OPENPOWER_VERSION |
| 143 | |
| 144 | $(2)_VERSION_FILE = $$(OPENPOWER_VERSION_DIR)/$(1).version.txt |
| 145 | ifeq ($$(BR2_PACKAGE_OPENPOWER_PNOR_P10),y) |
| 146 | UPPER_CASE_SIGN_MODE = $(call UPPERCASE,$$(BR2_OPENPOWER_P10_SECUREBOOT_SIGN_MODE)) |
| 147 | CONFIG_NAME = $$(BR2_OPENPOWER_P10_CONFIG_NAME) |
| 148 | VERSIONED_SUBPACKAGES = $$(OPENPOWER_PNOR_P10_VERSIONED_SUBPACKAGES) |
| 149 | else |
Nick Bofferding | 6fafd62 | 2017-09-28 15:23:23 -0500 | [diff] [blame] | 150 | UPPER_CASE_SIGN_MODE = $(call UPPERCASE,$$(BR2_OPENPOWER_SECUREBOOT_SIGN_MODE)) |
Klaus Heinrich Kiwi | d255124 | 2020-07-16 16:59:04 -0300 | [diff] [blame] | 151 | CONFIG_NAME = $$(BR2_OPENPOWER_CONFIG_NAME) |
| 152 | VERSIONED_SUBPACKAGES = $$(OPENPOWER_VERSIONED_SUBPACKAGES) |
| 153 | endif |
Stephen Cprek | e7254c7 | 2015-02-19 14:33:38 -0600 | [diff] [blame] | 154 | |
Klaus Heinrich Kiwi | d255124 | 2020-07-16 16:59:04 -0300 | [diff] [blame] | 155 | $$(eval $$(foreach pkg,$$(VERSIONED_SUBPACKAGES), \ |
Stephen Cprek | e7254c7 | 2015-02-19 14:33:38 -0600 | [diff] [blame] | 156 | $$(call OPENPOWER_SUBPACKAGE_VERSION,$$(pkg),$$(call UPPERCASE,$$(pkg))))) |
| 157 | |
| 158 | ### Combine subpackage files into one version file |
Klaus Heinrich Kiwi | d255124 | 2020-07-16 16:59:04 -0300 | [diff] [blame] | 159 | define $(2)_OPENPOWER_VERSION_FILE |
Stephen Cprek | e7254c7 | 2015-02-19 14:33:38 -0600 | [diff] [blame] | 160 | |
| 161 | mkdir -p "$$(OPENPOWER_VERSION_DIR)" |
| 162 | |
| 163 | # Add vendor or default open-power |
Stewart Smith | fd7a226 | 2017-02-17 17:20:54 +1100 | [diff] [blame] | 164 | if [ -n "$$(OPBUILD_VENDOR)" ]; then \ |
Klaus Heinrich Kiwi | d255124 | 2020-07-16 16:59:04 -0300 | [diff] [blame] | 165 | echo -n "$$(OPBUILD_VENDOR)-" > $$($(2)_VERSION_FILE); \ |
Stephen Cprek | e7254c7 | 2015-02-19 14:33:38 -0600 | [diff] [blame] | 166 | else \ |
Klaus Heinrich Kiwi | d255124 | 2020-07-16 16:59:04 -0300 | [diff] [blame] | 167 | echo -n "open-power-" > $$($(2)_VERSION_FILE); \ |
Stephen Cprek | e7254c7 | 2015-02-19 14:33:38 -0600 | [diff] [blame] | 168 | fi |
| 169 | |
| 170 | # Add platform or default from defconfig |
Stewart Smith | fd7a226 | 2017-02-17 17:20:54 +1100 | [diff] [blame] | 171 | if [ -n "$$(OPBUILD_PLATFORM)" ]; then \ |
Klaus Heinrich Kiwi | d255124 | 2020-07-16 16:59:04 -0300 | [diff] [blame] | 172 | echo -n "$$(OPBUILD_PLATFORM)-" >> $$($(2)_VERSION_FILE); \ |
Stephen Cprek | e7254c7 | 2015-02-19 14:33:38 -0600 | [diff] [blame] | 173 | else \ |
Klaus Heinrich Kiwi | d255124 | 2020-07-16 16:59:04 -0300 | [diff] [blame] | 174 | echo -n "$$(CONFIG_NAME)-" >> $$($(2)_VERSION_FILE); \ |
Stephen Cprek | e7254c7 | 2015-02-19 14:33:38 -0600 | [diff] [blame] | 175 | fi |
| 176 | |
| 177 | # Add op-build version |
| 178 | # Order: OPBUILD_VERSION, tag, commit, unknown |
Stewart Smith | fd7a226 | 2017-02-17 17:20:54 +1100 | [diff] [blame] | 179 | if [ -n "$$(OPBUILD_VERSION)" ]; then \ |
Klaus Heinrich Kiwi | d255124 | 2020-07-16 16:59:04 -0300 | [diff] [blame] | 180 | echo -n "$$(OPBUILD_VERSION)" >> $$($(2)_VERSION_FILE); \ |
Stephen Cprek | e7254c7 | 2015-02-19 14:33:38 -0600 | [diff] [blame] | 181 | else \ |
Stewart Smith | fd7a226 | 2017-02-17 17:20:54 +1100 | [diff] [blame] | 182 | cd "$$(BR2_EXTERNAL_OP_BUILD_PATH)"; (git describe --always --dirty || echo "unknown") \ |
| 183 | | xargs echo -n \ |
Klaus Heinrich Kiwi | d255124 | 2020-07-16 16:59:04 -0300 | [diff] [blame] | 184 | >> $$($(2)_VERSION_FILE); \ |
Stephen Cprek | e7254c7 | 2015-02-19 14:33:38 -0600 | [diff] [blame] | 185 | fi |
| 186 | |
Nick Bofferding | 6fafd62 | 2017-09-28 15:23:23 -0500 | [diff] [blame] | 187 | # Flag whether op-build is production signed |
| 188 | if [ "$$(UPPER_CASE_SIGN_MODE)" == 'PRODUCTION' ]; then \ |
Klaus Heinrich Kiwi | d255124 | 2020-07-16 16:59:04 -0300 | [diff] [blame] | 189 | echo -n "-prod" >> $$($(2)_VERSION_FILE); \ |
Nick Bofferding | 6fafd62 | 2017-09-28 15:23:23 -0500 | [diff] [blame] | 190 | fi |
| 191 | |
Klaus Heinrich Kiwi | d255124 | 2020-07-16 16:59:04 -0300 | [diff] [blame] | 192 | # Add new line to $$($(2)_VERSION_FILE) |
| 193 | echo "" >> $$($(2)_VERSION_FILE); |
Stephen Cprek | e7254c7 | 2015-02-19 14:33:38 -0600 | [diff] [blame] | 194 | |
Sam Mendoza-Jonas | dc7e238 | 2016-03-09 16:13:02 +1100 | [diff] [blame] | 195 | # Add a specific line for op-build if it has been overwritten |
Stewart Smith | fd7a226 | 2017-02-17 17:20:54 +1100 | [diff] [blame] | 196 | if [ -n "$$(OPBUILD_VENDOR)" ]; then \ |
Klaus Heinrich Kiwi | d255124 | 2020-07-16 16:59:04 -0300 | [diff] [blame] | 197 | echo -n " op-build-" >> $$($(2)_VERSION_FILE); \ |
Stewart Smith | fd7a226 | 2017-02-17 17:20:54 +1100 | [diff] [blame] | 198 | (cd "$$(BR2_EXTERNAL_OP_BUILD_PATH)"; (git describe --always --dirty || echo "unknown")) \ |
| 199 | | xargs echo \ |
Klaus Heinrich Kiwi | d255124 | 2020-07-16 16:59:04 -0300 | [diff] [blame] | 200 | >> $$($(2)_VERSION_FILE); \ |
Sam Mendoza-Jonas | dc7e238 | 2016-03-09 16:13:02 +1100 | [diff] [blame] | 201 | fi |
| 202 | |
| 203 | # Include the currently checked-out buildroot version |
Klaus Heinrich Kiwi | d255124 | 2020-07-16 16:59:04 -0300 | [diff] [blame] | 204 | echo -n " buildroot-" >> $$($(2)_VERSION_FILE); |
Stewart Smith | fd7a226 | 2017-02-17 17:20:54 +1100 | [diff] [blame] | 205 | (git describe --always --dirty || echo "unknown") \ |
| 206 | | xargs echo \ |
Klaus Heinrich Kiwi | d255124 | 2020-07-16 16:59:04 -0300 | [diff] [blame] | 207 | >> $$($(2)_VERSION_FILE); \ |
Sam Mendoza-Jonas | dc7e238 | 2016-03-09 16:13:02 +1100 | [diff] [blame] | 208 | |
| 209 | |
Klaus Heinrich Kiwi | d255124 | 2020-07-16 16:59:04 -0300 | [diff] [blame] | 210 | # Combing subpackage version files into $$($(2)_VERSION_FILE) |
Stephen Cprek | e7254c7 | 2015-02-19 14:33:38 -0600 | [diff] [blame] | 211 | $$(foreach verFile,$$(ALL_SUBPACKAGE_VERSIONS), |
| 212 | if [ -f $$(verFile) ]; then cat $$(verFile) \ |
Klaus Heinrich Kiwi | d255124 | 2020-07-16 16:59:04 -0300 | [diff] [blame] | 213 | >>$$($(2)_VERSION_FILE); fi ) |
Stephen Cprek | e7254c7 | 2015-02-19 14:33:38 -0600 | [diff] [blame] | 214 | |
Klaus Heinrich Kiwi | d255124 | 2020-07-16 16:59:04 -0300 | [diff] [blame] | 215 | endef # $(2)_OPENPOWER_VERSION_FILE |
Stephen Cprek | e7254c7 | 2015-02-19 14:33:38 -0600 | [diff] [blame] | 216 | |
Klaus Heinrich Kiwi | d255124 | 2020-07-16 16:59:04 -0300 | [diff] [blame] | 217 | $(2)_PRE_BUILD_HOOKS += $(2)_OPENPOWER_VERSION_FILE |
Stephen Cprek | e7254c7 | 2015-02-19 14:33:38 -0600 | [diff] [blame] | 218 | |
| 219 | # Top-level rule to print or generate openpower-pnor version |
Klaus Heinrich Kiwi | d255124 | 2020-07-16 16:59:04 -0300 | [diff] [blame] | 220 | $(1)-version: $$(if $$(wildcard $$($(2)_VERSION_FILE)),$(1)-print-version,$(1)-build-version) |
Stephen Cprek | e7254c7 | 2015-02-19 14:33:38 -0600 | [diff] [blame] | 221 | |
| 222 | # Rule to print out pnor version |
| 223 | $(1)-print-version: |
Klaus Heinrich Kiwi | d255124 | 2020-07-16 16:59:04 -0300 | [diff] [blame] | 224 | @echo "=== $(2)_VERSION ===" |
| 225 | @cat $$($(2)_VERSION_FILE) |
Stephen Cprek | e7254c7 | 2015-02-19 14:33:38 -0600 | [diff] [blame] | 226 | @echo ""; echo "**See openpower/package/VERSION.readme for detailed info on package strings"; echo "" |
| 227 | |
Stephen Cprek | e7254c7 | 2015-02-19 14:33:38 -0600 | [diff] [blame] | 228 | # Rule to generate pnor version |
Klaus Heinrich Kiwi | d255124 | 2020-07-16 16:59:04 -0300 | [diff] [blame] | 229 | $(1)-build-version: $$(foreach pkg,$$(VERSIONED_SUBPACKAGES), $$(pkg)-version) |
| 230 | @$$($(2)_OPENPOWER_VERSION_FILE) |
| 231 | @echo "=== $(2)_VERSION ===" |
| 232 | @cat $$($(2)_VERSION_FILE) |
Stephen Cprek | e7254c7 | 2015-02-19 14:33:38 -0600 | [diff] [blame] | 233 | @echo ""; echo "**See openpower/package/VERSION.readme for detailed info on package strings"; echo "" |
| 234 | |
Stephen Cprek | ded98fb | 2015-04-15 17:11:52 -0500 | [diff] [blame] | 235 | # Rule to force re-generation of all versioned subpackages |
Klaus Heinrich Kiwi | d255124 | 2020-07-16 16:59:04 -0300 | [diff] [blame] | 236 | $(1)-build-version-all: $$(foreach pkg,$$(VERSIONED_SUBPACKAGES), $$(pkg)-build-version) |
| 237 | @$$($(2)_OPENPOWER_VERSION_FILE) |
| 238 | @echo "=== $(2)_VERSION ===" |
| 239 | @cat $$($(2)_VERSION_FILE) |
Stephen Cprek | ded98fb | 2015-04-15 17:11:52 -0500 | [diff] [blame] | 240 | @echo ""; echo "**See openpower/package/VERSION.readme for detailed info on package strings"; echo "" |
| 241 | |
Klaus Heinrich Kiwi | d255124 | 2020-07-16 16:59:04 -0300 | [diff] [blame] | 242 | endef # INNER_OPENPOWER_VERSION |
| 243 | |
| 244 | OPENPOWER_VERSION = $(call INNER_OPENPOWER_VERSION,$(pkgname),$(call UPPERCASE,$(pkgname))) |
| 245 | |