diff options
Diffstat (limited to 'doc/Makefile')
-rw-r--r-- | doc/Makefile | 154 |
1 files changed, 80 insertions, 74 deletions
diff --git a/doc/Makefile b/doc/Makefile index 0b23b4f..9c68e80 100644 --- a/doc/Makefile +++ b/doc/Makefile | |||
@@ -1,3 +1,5 @@ | |||
1 | #2017-03-27 Replaced poky autocloning for parameter extraction with XML file updated by the ELTF test system | ||
2 | |||
1 | #Path to this subsystem's root directory | 3 | #Path to this subsystem's root directory |
2 | SUBSYSROOT := $(shell pwd) | 4 | SUBSYSROOT := $(shell pwd) |
3 | 5 | ||
@@ -7,21 +9,13 @@ include manifest_conf.mk | |||
7 | MANIFESTDIR := $(shell echo "$(MANIFESTURL)" | sed 's/.*\///;s/\.git//') | 9 | MANIFESTDIR := $(shell echo "$(MANIFESTURL)" | sed 's/.*\///;s/\.git//') |
8 | 10 | ||
9 | # Further down we extract the list of target manifest file names from the manifest itself | 11 | # Further down we extract the list of target manifest file names from the manifest itself |
10 | # We need all to get all README, but only first in alphabetic list is used to extract info from poky/ | 12 | |
11 | 13 | ||
12 | 14 | ||
13 | # ***************** Generic docbuild.git auto-clone + s_docbuild symlink *** | 15 | # ***************** Generic docbuild.git auto-clone + s_docbuild symlink *** |
14 | # This also defines TMPCLONEROOT which optionally can be nondefault using BOOK_GLOBALCLONEROOT=yes or a path | 16 | # This also defines TMPCLONEROOT which optionally can be nondefault using BOOK_GLOBALCLONEROOT=yes or a path |
15 | include init.mk | 17 | include init.mk |
16 | 18 | ||
17 | # ****************** SUPPORT FOR TARGETS *************************** | ||
18 | PATH_TARGETS = $(SUBSYSROOT)/s_targets | ||
19 | #Git repositories to be cloned | ||
20 | NAME_TARGETS := targets | ||
21 | #Path to the directory under which repos shall be cloned. | ||
22 | DOCBASEDIR=$(shell pwd) | ||
23 | REPODIR=$(DOCBASEDIR)/.. | ||
24 | TMPCLONEROOT_TARGETS := $(TMPCLONEROOT)/$(NAME_TARGETS) | ||
25 | TMPCLONEROOT_MANIFEST := $(TMPCLONEROOT)/manifest | 19 | TMPCLONEROOT_MANIFEST := $(TMPCLONEROOT)/manifest |
26 | 20 | ||
27 | 21 | ||
@@ -32,7 +26,11 @@ BUILDBOOT_TEMPLATE := book-enea-linux-release-info/doc/build_boot_template.xml | |||
32 | PKGDIFF_GEN_XML := book-enea-linux-release-info/doc/pkgdiff_generated.xml | 26 | PKGDIFF_GEN_XML := book-enea-linux-release-info/doc/pkgdiff_generated.xml |
33 | JIRA_ISSUES_GEN_XML := book-enea-linux-release-info/doc/jiraissues_generated.xml | 27 | JIRA_ISSUES_GEN_XML := book-enea-linux-release-info/doc/jiraissues_generated.xml |
34 | 28 | ||
35 | MANIFESTFILES_XML := book-enea-linux-release-info/doc/manifestfiles_generated.xml | 29 | MACHINE_LIST_XML := book-enea-linux-release-info/doc/machine_list_generated.xml |
30 | |||
31 | ELTF_PARAMS_TEMPLATE := book-enea-linux-release-info/doc/eltf_params_template.xml | ||
32 | ELTF_PARAMS_UPDATED := book-enea-linux-release-info/doc/eltf_params_updated.xml | ||
33 | |||
36 | 34 | ||
37 | 35 | ||
38 | # ----------------------------------------------------- | 36 | # ----------------------------------------------------- |
@@ -73,12 +71,12 @@ VALIDATE = no | |||
73 | # Export all parameters including those on the command line | 71 | # Export all parameters including those on the command line |
74 | export | 72 | export |
75 | 73 | ||
76 | .PHONY: doc books docusage init initbuild initmanifest inittargets initpardoc initbuildboot dist | 74 | .PHONY: doc books docusage init initbuild initmanifest initpardoc initbuildboot dist |
77 | 75 | ||
78 | 76 | ||
79 | docusage: | 77 | docusage: |
80 | @echo 'make docusage #Shows this help text' | 78 | @echo 'make docusage #Shows this help text' |
81 | @echo ' DOCBOOK_TOOLS_VERSIONS=yes #Displays DocBook tools versions in this machine' | 79 | @echo ' DOCBOOK_TOOLS_VERSIONS=yes #Displays./testeltfver.sh DocBook tools versions in this machine' |
82 | @echo 'make doc #Builds doc. ALSO automatically does all inits if needed' | 80 | @echo 'make doc #Builds doc. ALSO automatically does all inits if needed' |
83 | @echo 'make dist BOOK_DIST_DIR=xx/doc #Builds doc as above and copies results to BOOK_DIST_DIR' | 81 | @echo 'make dist BOOK_DIST_DIR=xx/doc #Builds doc as above and copies results to BOOK_DIST_DIR' |
84 | @echo ' # Does not work with DOCBOOK_TO_BOOKDIR or BOOK_BUILD_DIR' | 82 | @echo ' # Does not work with DOCBOOK_TO_BOOKDIR or BOOK_BUILD_DIR' |
@@ -87,10 +85,10 @@ docusage: | |||
87 | @echo 'make init #Init all needed init* below' | 85 | @echo 'make init #Init all needed init* below' |
88 | @echo 'make initbuild #Init s_docbuild Docbook build system and central files' | 86 | @echo 'make initbuild #Init s_docbuild Docbook build system and central files' |
89 | @echo 'make initmanifest #Init s_manifest by cloning, to detect which targets are included' | 87 | @echo 'make initmanifest #Init s_manifest by cloning, to detect which targets are included' |
90 | @echo 'make inittargets #Init s_targets using repo tool. Targets in this distro with poky' | ||
91 | @echo 'make initpardoc #Init s_docsrc_common with extracted parameters/' | 88 | @echo 'make initpardoc #Init s_docsrc_common with extracted parameters/' |
92 | @echo 'make initbuildboot #Init build_boot chapter from READMEs and template in release info' | 89 | @echo 'make initbuildboot #Init build_boot chapter from READMEs and template in release info' |
93 | @echo 'make initissues #Init known issues section from Jira' | 90 | @echo 'make initissues #Init known issues section from Jira' |
91 | @echo 'make eltf #Test - displays all ELTF_xxx variables that ELTF shall replace' | ||
94 | @echo ' MANIFESTHASH=xxxxx #Option for all inits above to use nondefault manifest version' | 92 | @echo ' MANIFESTHASH=xxxxx #Option for all inits above to use nondefault manifest version' |
95 | @echo ' #It shall either be ref/tags/<tagvalue> or a hashvalue' | 93 | @echo ' #It shall either be ref/tags/<tagvalue> or a hashvalue' |
96 | @echo ' #Configured tag or hashvalue $(MANIFESTHASH)' | 94 | @echo ' #Configured tag or hashvalue $(MANIFESTHASH)' |
@@ -99,7 +97,6 @@ docusage: | |||
99 | @echo ' DOCBOOK_CLEANTMP=no #Option to keep temp files in doc/ and tmp/' | 97 | @echo ' DOCBOOK_CLEANTMP=no #Option to keep temp files in doc/ and tmp/' |
100 | @echo ' BOOK_GLOBALCLONEROOT=yes #Option for all init above to clone all outside the doc directory' | 98 | @echo ' BOOK_GLOBALCLONEROOT=yes #Option for all init above to clone all outside the doc directory' |
101 | @echo ' BOOK_GLOBALCLONEROOT=otherpath #Option for all init above to clone all to given path' | 99 | @echo ' BOOK_GLOBALCLONEROOT=otherpath #Option for all init above to clone all to given path' |
102 | @echo 'make pullbuild #git pull in s_docbuild' | ||
103 | @echo 'make clean #Clean results and all s_*, but not any external clones' | 100 | @echo 'make clean #Clean results and all s_*, but not any external clones' |
104 | @echo '' | 101 | @echo '' |
105 | @echo 'Optional parameters for make doc:' | 102 | @echo 'Optional parameters for make doc:' |
@@ -184,9 +181,8 @@ endif | |||
184 | 181 | ||
185 | books: init | 182 | books: init |
186 | # BOOKPACKAGES is defined in all book-*/swcomp.mk | 183 | # BOOKPACKAGES is defined in all book-*/swcomp.mk |
187 | $(VERB)DISTRO_VERSION_MAJOR=`egrep '"EneaLinux_DISTRO_VERSION_MAJOR"' s_docsrc_common/pardoc-distro.xml | sed 's/.*<phrase>//;s/<\/phrase>.*//'` ; \ | 184 | $(VERB)DISTRO_VERSION=`egrep '"EneaLinux_REL_VER"><phrase>' $(ELTF_PARAMS_UPDATED) | sed 's/.*<phrase>//;s/<\/phrase>.*//'` ; \ |
188 | DISTRO_VERSION_MINOR=`egrep '"EneaLinux_DISTRO_VERSION_MINOR"' s_docsrc_common/pardoc-distro.xml | sed 's/.*<phrase>//;s/<\/phrase>.*//'` ; \ | 185 | BOOKVER="Profile $(PROFILE_NAME)-$$DISTRO_VERSION" ; \ |
189 | BOOKVER="Profile $(PROFILE_NAME)-$$DISTRO_VERSION_MAJOR$$DISTRO_VERSION_MINOR" ; \ | ||
190 | for book in $(BOOKPACKAGES); do \ | 186 | for book in $(BOOKPACKAGES); do \ |
191 | for format in $(FORMAT); do \ | 187 | for format in $(FORMAT); do \ |
192 | $(MAKE) -f $(DOCBOOKMAKE)/make_docbook_standalone.mk BOOK=$$book FORMAT=$$format BOOK_VER="$$BOOKVER" books || exit 10; \ | 188 | $(MAKE) -f $(DOCBOOKMAKE)/make_docbook_standalone.mk BOOK=$$book FORMAT=$$format BOOK_VER="$$BOOKVER" books || exit 10; \ |
@@ -216,7 +212,6 @@ endif | |||
216 | # ****************************************************************** | 212 | # ****************************************************************** |
217 | # ****************** SUPPORT FOR TARGETS *************************** | 213 | # ****************** SUPPORT FOR TARGETS *************************** |
218 | initmanifest: s_manifest | 214 | initmanifest: s_manifest |
219 | inittargets: s_targets | ||
220 | 215 | ||
221 | 216 | ||
222 | # ----------------------------------------- | 217 | # ----------------------------------------- |
@@ -229,8 +224,8 @@ s_manifest: $(TMPCLONEROOT_MANIFEST) | |||
229 | $(VERB)rm s_manifest 2>/dev/null; ln -s $(TMPCLONEROOT_MANIFEST) s_manifest | 224 | $(VERB)rm s_manifest 2>/dev/null; ln -s $(TMPCLONEROOT_MANIFEST) s_manifest |
230 | 225 | ||
231 | cleanmanifest: | 226 | cleanmanifest: |
232 | @echo "Cleaning generated manifestfilelist XML document file" | 227 | @echo "Cleaning generated manifest files" |
233 | $(VERB)rm -f $(MANIFESTFILES_XML) 2>/dev/null | 228 | $(VERB)rm -f $(MACHINE_LIST_XML) 2>/dev/null |
234 | $(VERB)rm -rf "$(TMPCLONEROOT_MANIFEST)" s_manifest 2>/dev/null | 229 | $(VERB)rm -rf "$(TMPCLONEROOT_MANIFEST)" s_manifest 2>/dev/null |
235 | 230 | ||
236 | $(TMPCLONEROOT_MANIFEST): | 231 | $(TMPCLONEROOT_MANIFEST): |
@@ -241,41 +236,16 @@ $(TMPCLONEROOT_MANIFEST): | |||
241 | cd "$(TMPCLONEROOT_MANIFEST)"; git clone $(MANIFESTURL) ; cd $(MANIFESTDIR) ; git checkout $(MANIFESTHASH) | 236 | cd "$(TMPCLONEROOT_MANIFEST)"; git clone $(MANIFESTURL) ; cd $(MANIFESTDIR) ; git checkout $(MANIFESTHASH) |
242 | $(VERB)if [ ! -d "$(TMPCLONEROOT_MANIFEST)/$(MANIFESTDIR)" ]; then echo "ERROR: Missing $(TMPCLONEROOT_MANIFEST)/$(MANIFESTDIR)"; exit 10 ; fi ; \ | 237 | $(VERB)if [ ! -d "$(TMPCLONEROOT_MANIFEST)/$(MANIFESTDIR)" ]; then echo "ERROR: Missing $(TMPCLONEROOT_MANIFEST)/$(MANIFESTDIR)"; exit 10 ; fi ; \ |
243 | TARGETDEFAULTXMLS=`cd $(TMPCLONEROOT_MANIFEST)/$(MANIFESTDIR); ls -1 */default.xml 2>/dev/null` ; \ | 238 | TARGETDEFAULTXMLS=`cd $(TMPCLONEROOT_MANIFEST)/$(MANIFESTDIR); ls -1 */default.xml 2>/dev/null` ; \ |
244 | echo "$$TARGETDEFAULTXMLS" | tr '\n' ' ' >$(TMPCLONEROOT_MANIFEST)/targetdefaultxmls.txt ; \ | 239 | TARGET_LIST=`echo "$$TARGETDEFAULTXMLS" | sed 's/\/default.xml//;s/^/# export MACHINE=/'` ; \ |
245 | echo "$$TARGETDEFAULTXMLS" | sed 's/\/.*//' | tr '\n' ' ' >$(TMPCLONEROOT_MANIFEST)/targetids.txt ; \ | 240 | echo "<?xml version=\"1.0\" encoding=\"ISO-8859-1\"?>" >$(MACHINE_LIST_XML) ; \ |
246 | echo "<?xml version=\"1.0\" encoding=\"ISO-8859-1\"?>" >$(MANIFESTFILES_XML) ; \ | 241 | echo "<!DOCTYPE para PUBLIC \"-//OASIS//DTD DocBook XML V4.2//EN\"" >>$(MACHINE_LIST_XML) ; \ |
247 | echo "<!DOCTYPE section PUBLIC \"-//OASIS//DTD DocBook XML V4.2//EN\"" >>$(MANIFESTFILES_XML) ; \ | 242 | echo "\"http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd\">" >>$(MACHINE_LIST_XML) ; \ |
248 | echo "\"http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd\">" >>$(MANIFESTFILES_XML) ; \ | 243 | echo "<para id=\"machine-list\">" >>$(MACHINE_LIST_XML) ; \ |
249 | echo "<section id=\"manifestfiles\">" >>$(MANIFESTFILES_XML) ; \ | 244 | echo "<programlisting># Set MACHINE to ONE of the targets in this release!" >>$(MACHINE_LIST_XML) ; \ |
250 | echo "<programlisting>$$TARGETDEFAULTXMLS</programlisting>" >>$(MANIFESTFILES_XML) ; \ | 245 | echo "$$TARGET_LIST</programlisting>" >>$(MACHINE_LIST_XML) ; \ |
251 | echo "</section>" >>$(MANIFESTFILES_XML) | 246 | echo "</para>" >>$(MACHINE_LIST_XML) |
252 | |||
253 | |||
254 | # ----------------------------------------- | ||
255 | # Use repo to auto-clone each target separately - VERY LARGE if there are many targets (5 targets => about 1.3 Gbytes) | ||
256 | |||
257 | s_targets: $(TMPCLONEROOT_TARGETS) | ||
258 | $(VERB)rm s_targets 2>/dev/null; ln -s $(TMPCLONEROOT_TARGETS) s_targets | ||
259 | 247 | ||
260 | 248 | ||
261 | $(TMPCLONEROOT_TARGETS): s_manifest | ||
262 | $(VERB)if [ ! -d "$(TMPCLONEROOT)" ] ; then mkdir -p "$(TMPCLONEROOT)" ; fi | ||
263 | $(VERB)if [ ! -d $(TMPCLONEROOT_TARGETS) ]; then mkdir -p $(TMPCLONEROOT_TARGETS) ; fi | ||
264 | @echo "**** Cloning all targets using repo tool into $(TMPCLONEROOT_TARGETS)" | ||
265 | $(VERB)if [ ! -f "$(TMPCLONEROOT_MANIFEST)/targetdefaultxmls.txt" ]; then echo "ERROR: Missing $(TMPCLONEROOT_MANIFEST)/targetdefaultxmls.txt"; exit 10; fi | ||
266 | $(VERB)TARGETDEFAULTXMLS=`cat "$(TMPCLONEROOT_MANIFEST)/targetdefaultxmls.txt" 2>/dev/null` ; \ | ||
267 | echo "Info: TARGETDEFAULTXMLS is $$TARGETDEFAULTXMLS" ; \ | ||
268 | for target_default_xml in $$TARGETDEFAULTXMLS; \ | ||
269 | do \ | ||
270 | TARGDIR=$(TMPCLONEROOT_TARGETS)/`dirname $$target_default_xml` ; \ | ||
271 | echo "TARGDIR=<$$TARGDIR>" ; \ | ||
272 | if [ ! -d $$TARGDIR ]; then mkdir -p $$TARGDIR ; fi ; \ | ||
273 | ( cd $$TARGDIR ; \ | ||
274 | echo "*** Doing repo init -u $(MANIFESTURL) -b $(MANIFESTHASH) -m $$target_default_xml ; repo sync"; \ | ||
275 | repo init -u $(MANIFESTURL) -b $(MANIFESTHASH) -m $$target_default_xml ; repo sync ; \ | ||
276 | ) ; \ | ||
277 | done | ||
278 | |||
279 | # **************************************************************************** | 249 | # **************************************************************************** |
280 | # ******************** SUPPORT FOR dynamic pardoc with added parameters ****** | 250 | # ******************** SUPPORT FOR dynamic pardoc with added parameters ****** |
281 | # pardoc-distro can contain MAJOR.MINOR-xxxxx keeping -xxxx when replacing MINOR.MINOR from enea.conf | 251 | # pardoc-distro can contain MAJOR.MINOR-xxxxx keeping -xxxx when replacing MINOR.MINOR from enea.conf |
@@ -291,32 +261,18 @@ cleanpardoc: | |||
291 | @echo "Cleaning dynamic parameters" | 261 | @echo "Cleaning dynamic parameters" |
292 | $(VERB)rm -rf $(TMPCLONEROOT_DOCSRC_COMMON) ; rm s_docsrc_common | 262 | $(VERB)rm -rf $(TMPCLONEROOT_DOCSRC_COMMON) ; rm s_docsrc_common |
293 | 263 | ||
264 | |||
294 | s_docsrc_common: $(TMPCLONEROOT_DOCSRC_COMMON) | 265 | s_docsrc_common: $(TMPCLONEROOT_DOCSRC_COMMON) |
295 | $(VERB)rm s_docsrc_common 2>/dev/null; ln -s $(TMPCLONEROOT_DOCSRC_COMMON) s_docsrc_common | 266 | $(VERB)rm s_docsrc_common 2>/dev/null; ln -s $(TMPCLONEROOT_DOCSRC_COMMON) s_docsrc_common |
296 | 267 | ||
297 | $(TMPCLONEROOT_DOCSRC_COMMON): s_targets | 268 | $(TMPCLONEROOT_DOCSRC_COMMON): |
298 | $(VERB)if [ ! -d "$(TMPCLONEROOT)" ] ; then mkdir -p "$(TMPCLONEROOT)" ; fi | 269 | $(VERB)if [ ! -d "$(TMPCLONEROOT)" ] ; then mkdir -p "$(TMPCLONEROOT)" ; fi |
299 | $(VERB)if [ ! -d $(TMPCLONEROOT_DOCSRC_COMMON) ]; then mkdir -p $(TMPCLONEROOT_DOCSRC_COMMON) ; fi | 270 | $(VERB)if [ ! -d $(TMPCLONEROOT_DOCSRC_COMMON) ]; then mkdir -p $(TMPCLONEROOT_DOCSRC_COMMON) ; fi |
300 | @echo "**** Copy and patch docsrc_common/ files to $(TMPCLONEROOT_DOCSRC_COMMON)" | 271 | @echo "**** Copy docsrc_common/ files to $(TMPCLONEROOT_DOCSRC_COMMON)" |
301 | @echo "*** Add parameters from first target's enea.conf and add manifest parameters" | 272 | $(VERB)cat docsrc_common/pardoc-distro.xml >$(TMPPARDOC) |
302 | $(VERB)FIRSTTARGET=`ls -1 s_targets/ 2>/dev/null | head -1`; \ | ||
303 | if [ "$$FIRSTTARGET" = "" ]; then echo "ERROR: No targets?" ; exit 10; fi ; \ | ||
304 | ENEACONF=s_targets/$$FIRSTTARGET/poky/meta-el-common/conf/distro/enea.conf ; \ | ||
305 | if [ ! -f "$$ENEACONF" ]; then echo "ERROR: No $$ENEACONF?" ; exit 10; fi ; \ | ||
306 | DISTRO_VERSION_MAJOR=`egrep '^DISTRO_VERSION_MAJOR' $$ENEACONF | sed 's/^[^"]*"//;s/".*//'` ; \ | ||
307 | DISTRO_VERSION_MINOR=`egrep '^DISTRO_VERSION_MINOR' $$ENEACONF | sed 's/^[^"]*"//;s/".*//'` ; \ | ||
308 | cat docsrc_common/pardoc-distro.xml | sed '/<\/section>/d' | \ | ||
309 | sed '/<!ENTITY ENEA_LINUX_REL_VER/s/MAJOR.MINOR/'"$$DISTRO_VERSION_MAJOR$$DISTRO_VERSION_MINOR"'/' | \ | ||
310 | sed '/<!ENTITY . common_poky_entities SYSTEM/s/s_targets\/[^\/]*\/poky/s_targets\/'"$$FIRSTTARGET"'\/poky/' >$(TMPPARDOC) ; \ | ||
311 | echo "<para id=\"EneaLinux_DISTRO_VERSION_MAJOR\"><phrase>$$DISTRO_VERSION_MAJOR</phrase></para>" >>$(TMPPARDOC) ; \ | ||
312 | echo "<para id=\"EneaLinux_DISTRO_VERSION_MINOR\"><phrase>$$DISTRO_VERSION_MINOR</phrase></para>" >>$(TMPPARDOC) ; \ | ||
313 | echo "<para id=\"EneaLinux_PROFILE_NAME\"><phrase>$(PROFILE_NAME)</phrase></para>" >>$(TMPPARDOC) ; \ | ||
314 | echo "<para id=\"EneaLinux_MANIFESTURL\"><phrase>$(MANIFESTURL)</phrase></para>" >>$(TMPPARDOC) ; \ | ||
315 | echo "<para id=\"EneaLinux_MANIFESTHASH\"><phrase>$(MANIFESTHASH)</phrase></para>" >>$(TMPPARDOC) ; \ | ||
316 | echo "</section>" >>$(TMPPARDOC) | ||
317 | 273 | ||
318 | # **************************************************************************** | 274 | # **************************************************************************** |
319 | # ***** Create XML chapter with build/boot commands from all README files in s_targets | 275 | # ***** Create XML chapter with build/boot commands from all README files in manifest |
320 | 276 | ||
321 | initbuildboot: $(BUILDBOOT_XML) | 277 | initbuildboot: $(BUILDBOOT_XML) |
322 | 278 | ||
@@ -325,11 +281,11 @@ cleanbuildboot: | |||
325 | $(VERB)rm -f $(BUILDBOOT_XML) 2>/dev/null | 281 | $(VERB)rm -f $(BUILDBOOT_XML) 2>/dev/null |
326 | 282 | ||
327 | 283 | ||
328 | $(BUILDBOOT_XML): s_targets $(BUILDBOOT_TEMPLATE) | 284 | $(BUILDBOOT_XML): $(BUILDBOOT_TEMPLATE) |
329 | @echo "**** Creating $(BUILDBOOT_XML) from READMEs" | 285 | @echo "**** Creating $(BUILDBOOT_XML) from READMEs" |
330 | $(VERB)INITBB_CMD=initbuildboot.sh ; \ | 286 | $(VERB)INITBB_CMD=initbuildboot.sh ; \ |
331 | if [ -f "$$INITBB_CMD" ]; then \ | 287 | if [ -f "$$INITBB_CMD" ]; then \ |
332 | sh "$$INITBB_CMD" -xml $(BUILDBOOT_XML) -template $(BUILDBOOT_TEMPLATE) ; \ | 288 | sh "$$INITBB_CMD" -xml $(BUILDBOOT_XML) -template $(BUILDBOOT_TEMPLATE) -readmebasedir s_manifest/$(MANIFESTDIR); \ |
333 | else \ | 289 | else \ |
334 | echo "ERROR: Missing $$INITBB_CMD, can not create $(BUILDBOOT_XML)"; exit 10; \ | 290 | echo "ERROR: Missing $$INITBB_CMD, can not create $(BUILDBOOT_XML)"; exit 10; \ |
335 | fi | 291 | fi |
@@ -357,6 +313,7 @@ $(PKGDIFF_GEN_XML): | |||
357 | 313 | ||
358 | initissues: $(JIRA_ISSUES_GEN_XML) | 314 | initissues: $(JIRA_ISSUES_GEN_XML) |
359 | 315 | ||
316 | |||
360 | cleanissues: | 317 | cleanissues: |
361 | @echo "Cleaning generated known issues document file" | 318 | @echo "Cleaning generated known issues document file" |
362 | $(VERB)rm -f $(JIRA_ISSUES_GEN_XML) 2>/dev/null | 319 | $(VERB)rm -f $(JIRA_ISSUES_GEN_XML) 2>/dev/null |
@@ -366,3 +323,52 @@ $(JIRA_ISSUES_GEN_XML): | |||
366 | $(VERB)python gen_known_issues.py >$(JIRA_ISSUES_GEN_XML) | 323 | $(VERB)python gen_known_issues.py >$(JIRA_ISSUES_GEN_XML) |
367 | 324 | ||
368 | # **************************************************************************** | 325 | # **************************************************************************** |
326 | |||
327 | # | ||
328 | # All ELTF_ variables names only has upper case, underline and digits | ||
329 | eltf: | ||
330 | @echo "# make eltf extracts and displays all ELTF_ variables found here" | ||
331 | @echo "# in $(SUBSYSROOT)/$(ELTF_PARAMS_TEMPLATE)" | ||
332 | @echo "# Replace all variables, creating a new eltf*updated.xml file from the eltf*template.xml" | ||
333 | @echo "#" | ||
334 | @echo "# Only replace + push the result file $(ELTF_PARAMS_UPDATED), IF IT WILL BE CHANGED." | ||
335 | @echo "#" | ||
336 | @echo "# IMPORTANT: See eltf_params_updated_template_how_to_use.txt for requirements and details!" | ||
337 | @echo "# Below is only a summary!" | ||
338 | @echo "#" | ||
339 | @echo "# ELTF_ variables must be UNIQUE, e.g. a variable must not be a part of another variable" | ||
340 | @echo "#" | ||
341 | @echo "# ELTF_PL_* and ELTF_T_PL_* shall have the format for programlisting and are often multiline - see below." | ||
342 | @echo "#" | ||
343 | @echo "# ELTF_*_URL and ELTF_*_TXTURL are the URL part and TXT part of ulink; those shall be exactly identical," | ||
344 | @echo "# unless the URL is very very long." | ||
345 | @echo "#" | ||
346 | @echo "# ELTF_T_* are target (MACHINE) variables in one subsection, replace with machine specific strings." | ||
347 | @echo "#" | ||
348 | @echo "# Append more target subsections to *updated.xml, if more than one target is in a release!" | ||
349 | @echo "# Replace the line <!-- ELTFADD_MORE_TARGET_SECTIONS_BELOW_IF_NEEDED --> with appended" | ||
350 | @echo "# complete target section elements copied before the variables are replaced." | ||
351 | @echo "# In each target section, replace the ELTF_T* variables with machine dependent strings" | ||
352 | @echo "# Append final lines seen after <!-- ELTFADD_MORE_TARGET_SECTIONS_BELOW_IF_NEEDED -->" | ||
353 | @echo "# but that would often only be two final </section> </section> lines" | ||
354 | @echo "#" | ||
355 | @echo "# ELTF_ Variables: Replace each variable with a string, for ELTF_*PL* it can be multiline" | ||
356 | @echo "# DO NOT use any leading or trailing spaces and DO NOT use TABs" | ||
357 | @echo "#" | ||
358 | @echo "# ELTF_ Everywhere: Only 7-bit ASCII inside the string replacing a variable. Translate characters" | ||
359 | @echo "# like & < > to & < > etc." | ||
360 | @echo "# unless real XML shall be inserted like when entire sections are appended." | ||
361 | @echo "#" | ||
362 | @echo "# ELTF_ programlisting, variables with PL in the name: Max line length < 80 char." | ||
363 | @echo "# Use backslash + indent-leading-spaces for continuation lines." | ||
364 | @echo "# Multiline. No trailing spaces on any line inside the programlisting." | ||
365 | @echo "#" | ||
366 | @echo "# The following variables shall be replaced with suitable contents (egrep from the template):" | ||
367 | @echo "# Again: See details in eltf_params_updated_template_how_to_use.txt" | ||
368 | @echo "# including also examples of contents of each variable!" | ||
369 | @echo "#" | ||
370 | $(VERB)( egrep 'ELTF_[A-Z_0-9][A-Z_0-9]*' $(ELTF_PARAMS_TEMPLATE) 2>/dev/null | sed 's/ELTF_/\nELTF_/g' | egrep 'ELTF_[A-Z_0-9][A-Z_0-9]*' | sed 's/\(ELTF_[A-Z_0-9][A-Z_0-9]*\).*/\1/' ) | sort | ||
371 | @echo "# The make eltf also here extracts any left-over ELTF variables from $(ELTF_PARAMS_UPDATED)" | ||
372 | @echo "# It should not be any left here:" | ||
373 | $(VERB)( egrep 'ELTF_[A-Z_0-9][A-Z_0-9]*' $(ELTF_PARAMS_UPDATED) 2>/dev/null | sed 's/ELTF_/\nELTF_/g' | egrep 'ELTF_[A-Z_0-9][A-Z_0-9]*' | sed 's/\(ELTF_[A-Z_0-9][A-Z_0-9]*\).*/\1/' ) | sort | ||
374 | @echo "# If you see any left-over above, something is wrong" | ||