From d13a165d784a8a669edca35efee6f5c98045a766 Mon Sep 17 00:00:00 2001 From: mrpa Date: Thu, 11 Jun 2020 19:00:49 +0200 Subject: Updated the makefile and init.mk to point to gitlab2 Updated the makefile to reflect olinkdb changes Updated the makefule to reflect removal of manifest_conf.mk Updated rel notes with olinks and removing zip files no longer included in releases. Updated the ATFH OSR swcomp to include version variable. Change-Id: I7b4decb707370acff90348361525f30bd8c20707 Signed-off-by: mrpa --- doc/Makefile | 79 ++++++------------------------------------------------------ 1 file changed, 8 insertions(+), 71 deletions(-) (limited to 'doc/Makefile') diff --git a/doc/Makefile b/doc/Makefile index 80a93c7..404ad05 100644 --- a/doc/Makefile +++ b/doc/Makefile @@ -8,8 +8,8 @@ SUBSYSROOT := $(shell pwd) # NOTE: MANIFESTHASH in manifest_conf.mk needs to be the final release tag before a release # The manifest_conf.mk defines MANIFESTHASH and MANIFESTURL and PROFILE_NAME(on front+footers) -include manifest_conf.mk -MANIFESTDIR := $(shell echo "$(MANIFESTURL)" | sed 's/.*\///;s/\.git//') +#include manifest_conf.mk +#MANIFESTDIR := $(shell echo "$(MANIFESTURL)" | sed 's/.*\///;s/\.git//') # Further down we extract the list of target manifest file names from the manifest itself @@ -19,7 +19,7 @@ MANIFESTDIR := $(shell echo "$(MANIFESTURL)" | sed 's/.*\///;s/\.git//') # This also defines TMPCLONEROOT which optionally can be nondefault using BOOK_GLOBALCLONEROOT=yes or a path include init.mk -TMPCLONEROOT_MANIFEST := $(TMPCLONEROOT)/manifest +#TMPCLONEROOT_MANIFEST := $(TMPCLONEROOT)/manifest # ******************* AutoGenerated chapters from template and target READMEs ******* @@ -42,7 +42,7 @@ DOCBOOKMAKE = $(SUBSYSROOT)/s_docbuild/docmake DOCBOOKTEMPLATE = $(SUBSYSROOT)/s_docbuild/template #Path to the OLINK database including leading part of file name (will add -$(FORMAT).db) -DOCBOOKOLINKDB_BASE = $(SUBSYSROOT)/s_docbuild/olinkdb/olink-targetdb-ose5-master +DOCBOOKOLINKDB_BASE = $(SUBSYSROOT)/s_docbuild/olinkdb/olink-targetdb-master DOCBOOK_OLINKS ?= yes DOCBOOK_FO_USEFOP ?= yes @@ -51,16 +51,7 @@ DOCBOOK_CLEANTMP ?= yes #Components (books) in this subsystem. Now use all books found here COMPONENTS := book-enea-nfv-access-auto-fw-th-open-source book-enea-nfv-access-auto-fw-th-user-guide book-enea-nfv-access-cmc-example-usecases book-enea-nfv-access-example-usecases book-enea-nfv-access-getting-started book-enea-nfv-access-open-source book-enea-nfv-access-release-info book-enea-nfv-access-system-test-specification book-enea-nfv-access-evalkit -# COMPONENTS += -#book-enea-nfv-access-dev-hardening-guide -#book-enea-nfv-access-esdk-open-source -#book-enea-nfv-access-guide -#book-enea-nfv-access-reference-guide-intel -#book-enea-nfv-access-sdk-open-source -#book-enea-nfv-access-user-hardening-guide -#book-enea-nfv-access-vnf-onboarding-guide -#COMPONENTS := $(shell ls -d book-enea* ) # -------------------------------------------------------------- ifeq ($(VERBOSE),yes) @@ -82,7 +73,7 @@ VALIDATE = no # Export all parameters including those on the command line export -.PHONY: doc books docusage init initbuild initmanifest initpardoc initbuildboot dist +.PHONY: doc books docusage init initbuild initpardoc dist docusage: @@ -151,7 +142,7 @@ ifeq ($(DOCBOOK_TOOLS_VERSIONS),yes) endif # We rely on make doing these in order left to right -init: initbuild initcommon initmanifest initpardoc initbuildboot initpkgdiff initissues +init: initbuild initcommon initpardoc initpkgdiff initissues pullall: pullbuild # If no COMP, iterate over books-* in COMPONENTS with make doc @@ -193,7 +184,7 @@ endif books: init # BOOKPACKAGES is defined in all book-*/swcomp.mk $(VERB)DISTRO_VERSION=`egrep '"EneaLinux_REL_VER">' $(ELTF_PARAMS_UPDATED) | sed 's/.*//;s/<\/phrase>.*//'` ; \ - BOOKVER="$(PROFILE_NAME)-$$DISTRO_VERSION"-$(shell date +"%Y.%m.%d"); \ + BOOKVER="Enea NFV Access-$$DISTRO_VERSION"-$(shell date +"%Y.%m.%d"); \ for book in $(BOOKPACKAGES); do \ for format in $(FORMAT); do \ $(MAKE) -f $(DOCBOOKMAKE)/make_docbook_standalone.mk BOOK=$$book FORMAT=$$format BOOK_VER="$$BOOKVER" books || exit 10; \ @@ -215,7 +206,7 @@ endif endif # cleaninit cleans ALL tmpcommon and all s_* -clean: cleaninit cleanbuildboot cleanpkgdiff cleanissues cleanmanifest +clean: cleaninit cleanpkgdiff cleanissues @echo "Cleaning build results and temporary files" $(VERB)rm -rf doc tmp 2>/dev/null ifneq ($(filter book-%, $(COMPONENTS)),) @@ -226,42 +217,6 @@ ifneq ($(filter book-%, $(COMPONENTS)),) endif -# ****************************************************************** -# ****************** SUPPORT FOR TARGETS *************************** -initmanifest: s_manifest - - -# ----------------------------------------- -# We only clone the manifest to be able to autodetect which targets are in it -# git clone requires only the tag string e.g. EL6, not the entire ref/tags/EL6 that repo requires -# git clone -b hashvalue is not supported. We must first clone, then git checkout hashvalue -# These steps work also for a tag so we could use the same stepwise code - -s_manifest: $(TMPCLONEROOT_MANIFEST) - $(VERB)rm s_manifest 2>/dev/null; ln -s $(TMPCLONEROOT_MANIFEST) s_manifest - -cleanmanifest: - @echo "Cleaning generated manifest files" - $(VERB)rm -f $(MACHINE_LIST_XML) 2>/dev/null - $(VERB)rm -rf "$(TMPCLONEROOT_MANIFEST)" s_manifest 2>/dev/null - -$(TMPCLONEROOT_MANIFEST): - $(VERB)if [ ! -d "$(TMPCLONEROOT)" ] ; then mkdir -p "$(TMPCLONEROOT)" ; fi - $(VERB)if [ ! -d "$(TMPCLONEROOT_MANIFEST)" ]; then mkdir -p "$(TMPCLONEROOT_MANIFEST)" ; fi - $(VERB) MBRANCH=`echo "$(MANIFESTHASH)" | sed 's/.*\///'`; \ - echo "**** Cloning manifest version $$MBRANCH of $(MANIFESTURL) in $(TMPCLONEROOT_MANIFEST)" ; \ - cd "$(TMPCLONEROOT_MANIFEST)"; git clone $(MANIFESTURL) ; cd $(MANIFESTDIR) ; git checkout $(MANIFESTHASH) - $(VERB)if [ ! -d "$(TMPCLONEROOT_MANIFEST)/$(MANIFESTDIR)" ]; then echo "ERROR: Missing $(TMPCLONEROOT_MANIFEST)/$(MANIFESTDIR)"; exit 10 ; fi ; \ - TARGETDEFAULTXMLS=`cd $(TMPCLONEROOT_MANIFEST)/$(MANIFESTDIR); ls -1 */default.xml 2>/dev/null` ; \ - TARGET_LIST=`echo "$$TARGETDEFAULTXMLS" | sed 's/\/default.xml//;s/^/# export MACHINE=/'` ; \ - echo "" >$(MACHINE_LIST_XML) ; \ - echo ">$(MACHINE_LIST_XML) ; \ - echo "\"http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd\">" >>$(MACHINE_LIST_XML) ; \ - echo "" >>$(MACHINE_LIST_XML) ; \ - echo "# Set MACHINE to ONE of the targets in this release!" >>$(MACHINE_LIST_XML) ; \ - echo "$$TARGET_LIST" >>$(MACHINE_LIST_XML) ; \ - echo "" >>$(MACHINE_LIST_XML) - # **************************************************************************** # ******************** SUPPORT FOR dynamic pardoc with added parameters ****** @@ -288,24 +243,6 @@ $(TMPCLONEROOT_DOCSRC_COMMON): @echo "**** Copy docsrc_common/ files to $(TMPCLONEROOT_DOCSRC_COMMON)" $(VERB)cat docsrc_common/pardoc-distro.xml >$(TMPPARDOC) -# **************************************************************************** -# ***** Create XML chapter with build/boot commands from all README files in manifest - -initbuildboot: $(BUILDBOOT_XML) - -cleanbuildboot: - @echo "Cleaning generated build-boot command document file" - $(VERB)rm -f $(BUILDBOOT_XML) 2>/dev/null - - -$(BUILDBOOT_XML): $(BUILDBOOT_TEMPLATE) - @echo "**** Creating $(BUILDBOOT_XML) from READMEs" - $(VERB)INITBB_CMD=initbuildboot.sh ; \ - if [ -f "$$INITBB_CMD" ]; then \ - sh "$$INITBB_CMD" -xml $(BUILDBOOT_XML) -template $(BUILDBOOT_TEMPLATE) -readmebasedir s_manifest/$(MANIFESTDIR); \ - else \ - echo "ERROR: Missing $$INITBB_CMD, can not create $(BUILDBOOT_XML)"; exit 10; \ - fi # **************************************************************************** # ***** Create Package DIFF XML section -- cgit v1.2.3-54-g00ecf