Skip to contentSkip to conversation

docs: Build ARM documentation

PATCH In review Julien Grall 2 participants 4 messages Jun 20, 2015 – Jun 25, 2015

lore
Share & tools
lore
#0 lore raw

cover docs: Build ARM documentation

Hi,

I've noticed that the ARM docs is not present on the built documentation and on the website. The first patch is solving this problem.

The second patch updates the INDEX for each ARM docs. Note that I didn't update INDEX for missing x86 docs. I would be happy if someone does it.

We may also want to improve the misc/index.html in order to print directory. Although, I leave it aside for now.

Sincerely yours,

Julien Grall (2):
docs: Look for documentation in sub-directories
docs: Update INDEX to give a title for each ARM docs

 docs/INDEX    |  5 +++++
 docs/Makefile | 12 ++++++------
 2 files changed, 11 insertions(+), 6 deletions(-)
Signature · 1 line
2.1.4
#1 lore raw

PATCH 1/2 docs: Look for documentation in sub-directories

The ARM documentation is living in a specific folder under misc. Until now, it was skipped during building.

In order to avoid missing future directory, use find to look for a specific file pattern through all the directory.

Note the we already use find in other Makefile.

---
I found some solution based on wildcard (**/*.cfg) but it seems that it's no compatible with every version of gmake.

This patch is candidate for a backport to Xen 4.5 and Xen 4.4 (first official ARM release) where the ARM documentations is not exported for now.

---
 docs/Makefile | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)
docs/Makefile +6 -6
index 60bc541..0ee6808 100644
@@ -7,16 +7,16 @@ VERSION		:= $(shell $(MAKE) -C $(XEN_ROOT)/xen --no-print-directory xenversion)
 DOC_ARCHES      := arm x86_32 x86_64
 
 # Documentation sources to build
-MAN1SRC-y := $(sort $(wildcard man/xl*.pod.1))
-MAN1SRC-y += $(sort $(wildcard man/xenstore*.pod.1))
+MAN1SRC-y += $(sort $(shell find man -name 'xl*.pod.1' -print))
+MAN1SRC-y += $(sort $(shell find man -name 'xenstore*.pod.1' -print))
 
-MAN5SRC-y := $(sort $(wildcard man/xl*.pod.5))
+MAN5SRC-y := $(sort $(shell find man 'xl*.pod.5' -print))
 
-MARKDOWNSRC-y := $(sort $(wildcard misc/*.markdown))
+MARKDOWNSRC-y := $(sort $(shell find misc '*.markdown' -print))
 
-TXTSRC-y := $(sort $(wildcard misc/*.txt))
+TXTSRC-y := $(sort $(shell find misc -name '*.txt' -print))
 
-PANDOCSRC-y := $(sort $(wildcard specs/*.pandoc))
+PANDOCSRC-y := $(sort $(shell find specs -name '*.pandoc' -print))
 
 # Documentation targets
 DOC_MAN1 := $(patsubst man/%.pod.1,man1/%.1,$(MAN1SRC-y))
Signature · 1 line
2.1.4
#2 lore raw

PATCH 2/2 docs: Update INDEX to give a title for each ARM docs

In reply to Julien Grall

---
I'm not sure if we backport docs patch. But it would be nice to have it in order to give a correct title for every docs in Xen 4.5 and Xen 4.4.
Although, some the docs are not present in previous version. So we may want to drop them from the index while backporting.

---
 docs/INDEX | 5 +++++
 1 file changed, 5 insertions(+)
docs/INDEX +5 -0
index fdf0ad8..5ed156f 100644
@@ -26,3 +26,8 @@ misc/vtpm			Virtual TPM
 misc/xen-error-handling		Xen Error Handling
 misc/xenpaging			Xen Paging
 misc/xsm-flask			XSM/FLASK Configuration
+misc/arm/booting		How to boot Xen on ARM
+misc/arm/early-printk		Enabling early printk on ARM
+misc/arm/passthrough		Passthrough a device described in the Device Tree to a guest
+misc/arm/device-tree/booting	Device tree bindings to boot Xen
+misc/arm/device-tree/passthrough	Device tree binding to passthrough a device
Signature · 1 line
2.1.4
#3 lore raw
In reply to Julien Grall
Quoted 3 lines · Julien Grall

Julien Grall (2):
docs: Look for documentation in sub-directories
docs: Update INDEX to give a title for each ARM docs

Acked + Applied.

Quoted 5 lines
 docs/INDEX    |  5 +++++
 docs/Makefile | 12 ++++++------
 2 files changed, 11 insertions(+), 6 deletions(-)