doc: Makefile: remove target refcheckdocs
PATCH 1/1 doc: Makefile: remove target refcheckdocs
Remove the target refcheckdocs, based on the missing script scripts/documentation-file-ref-check.
This script exists in Linux tree but wasn't imported when 'doc' move to SPHINX in commit 78a88f7930be ("doc: Replace DocBook with sphinx-based docs")
This patch avoids the error:
make refcheckdocs/bin/sh: scripts/documentation-file-ref-check: No such file or directory doc/Makefile:102: recipe for target 'refcheckdocs' failed make[1]: *** [refcheckdocs] Error 127
Makefile:2094: recipe for target 'refcheckdocs' failed
make: *** [refcheckdocs] Error 2
---
doc/Makefile | 4 ---- 1 file changed, 4 deletions(-)
doc/Makefile +0 -4
@@ -98,9 +98,6 @@ endif # HAVE_SPHINX # The following targets are independent of HAVE_SPHINX, and the rules should # work or silently pass without Sphinx. -refcheckdocs: - $(Q)cd $(srctree);scripts/documentation-file-ref-check - cleandocs: $(Q)rm -rf $(BUILDDIR) $(Q)$(MAKE) BUILDDIR=$(abspath $(BUILDDIR)) $(build)=doc/media clean
@@ -113,7 +110,6 @@ dochelp: @echo ' epubdocs - EPUB' @echo ' xmldocs - XML' @echo ' linkcheckdocs - check for broken external links (will connect to external hosts)' - @echo ' refcheckdocs - check for references to non-existing files under Documentation' @echo ' cleandocs - clean all generated files' @echo @echo ' make SPHINXDIRS="s1 s2" [target] Generate only docs of folder s1, s2'
Signature · 1 line
2.17.1
PATCH 1/1 doc: Makefile: remove target refcheckdocs
Quoted 9 lines · Patrick Delaunay
Remove the target refcheckdocs, based on the missing script
scripts/documentation-file-ref-check.This script exists in Linux tree but wasn't imported when 'doc' move to SPHINX in commit
78a88f7930be("doc: Replace DocBook with sphinx-based docs")This patch avoids the error:
Quoted 8 lines
make refcheckdocs
/bin/sh:scripts/documentation-file-ref-check: No such file or directory doc/Makefile:102: recipe for target 'refcheckdocs' failed make[1]: *** [refcheckdocs] Error 127
Makefile:2094: recipe for target 'refcheckdocs' failed
make: *** [refcheckdocs] Error 2Signed-off-by Patrick Delaunay <[email protected]>
When we copy and adjust the missing script we can identify dozens of documentation errors, see below. So I think we should fix the make target instead of removing it.
arch/arm/mach-imx/Kconfig: doc/README.mxc_hab arch/arm/mach-imx/Kconfig: doc/README.mxc_hab board/advantech/dms-ba16/dms-ba16_1g.cfg: doc/README.imximage board/advantech/dms-ba16/dms-ba16_2g.cfg: doc/README.imximage board/aristainetos/aristainetos2.cfg: doc/README.imximage board/bachmann/ot1200/mx6q_4x_mt41j128.cfg: doc/README.imximage board/barco/titanium/imximage.cfg: doc/README.imximage board/boundary/nitrogen6x/nitrogen6dl.cfg: doc/README.imximage board/boundary/nitrogen6x/nitrogen6dl2g.cfg: doc/README.imximage board/boundary/nitrogen6x/nitrogen6q.cfg: doc/README.imximage board/boundary/nitrogen6x/nitrogen6q2g.cfg: doc/README.imximage board/boundary/nitrogen6x/nitrogen6s.cfg: doc/README.imximage board/boundary/nitrogen6x/nitrogen6s1g.cfg: doc/README.imximage board/ccv/xpress/imximage.cfg: doc/README.imximage board/cobra5272/README: u-boot-x-x-x/doc/README.COBRA5272 board/freescale/imx8qxp_mek/imximage.cfg: doc/README.imx8image board/freescale/m52277evb/README: doc/README.m52277evb board/freescale/m53017evb/README: doc/README.m53017evb board/freescale/m5373evb/README: doc/README.m5373evb board/freescale/m54455evb/README: doc/README.m54455evb board/freescale/m547xevb/README: doc/README.m5475evb board/freescale/mx25pdk/imximage.cfg: doc/README.imximage board/freescale/mx51evk/imximage.cfg: doc/README.imximage board/freescale/mx53ard/imximage_dd3.cfg: doc/README.imximage board/freescale/mx53evk/imximage.cfg: doc/README.imximage board/freescale/mx53loco/imximage.cfg: doc/README.imximage board/freescale/mx53smd/imximage.cfg: doc/README.imximage board/freescale/mx6qarm2/imximage.cfg: doc/README.imximage board/freescale/mx6qarm2/imximage_mx6dl.cfg: doc/README.imximage board/freescale/mx6slevk/imximage.cfg: doc/README.imximage board/freescale/mx6ullevk/imximage.cfg: doc/README.imximage board/freescale/mx7dsabresd/imximage.cfg: doc/README.imximage board/freescale/s32v234evb/s32v234evb.cfg: doc/README.imximage board/freescale/vf610twr/imximage.cfg: doc/README.imximage board/ge/bx50v3/bx50v3.cfg: doc/README.imximage board/ge/mx53ppd/imximage.cfg: doc/README.imximage board/menlo/m53menlo/imximage.cfg: doc/README.imximage board/phytec/pcm052/imximage.cfg: doc/README.imximage board/seco/mx6quq7/mx6quq7-2g.cfg: doc/README.imximage board/siemens/capricorn/imximage.cfg: doc/README.imx8image board/technexion/pico-imx6ul/imximage.cfg: doc/README.imximage board/toradex/apalis-imx8/apalis-imx8qm-imximage.cfg: doc/README.imx8image board/toradex/colibri-imx6ull/imximage.cfg: doc/README.imximage board/toradex/colibri-imx8x/colibri-imx8qxp-imximage.cfg:
doc/README.imx8image
board/toradex/colibri_imx7/imximage.cfg: doc/README.imximage board/toradex/colibri_vf/imximage.cfg: doc/README.imximage board/tqc/tqma6/clocks.cfg: doc/README.imximage board/tqc/tqma6/tqma6dl.cfg: doc/README.imximage board/tqc/tqma6/tqma6q.cfg: doc/README.imximage board/tqc/tqma6/tqma6s.cfg: doc/README.imximage board/warp/imximage.cfg: doc/README.imximage board/warp7/imximage.cfg: doc/README.imximage
cmd/Kconfig: doc/README.beddbug
doc/README.drivers.eth: doc/driver-model/README.txt doc/README.fdt-control: doc/driver-model/README.txt doc/device-tree-bindings/net/ti,dp83867.txt:doc/devicetree/bindings/net/ethernet.txt doc/device-tree-bindings/video/rockchip-lvds.txt:doc/devicetree/device-tree-bindings/video/display-timing.txt doc/imx/misc/sdp.txt: doc/README.imximage doc/sphinx/parse-headers.pl: doc/doc-guide/parse-headers.rst doc/sphinx/rstFlatTable.py: doc/books/kernel-doc-HOWTO drivers/i2c/davinci_i2c.c: doc/driver-model/i2c-howto.txt drivers/i2c/kona_i2c.c: doc/driver-model/i2c-howto.txt drivers/i2c/sh_i2c.c: doc/driver-model/i2c-howto.txt drivers/i2c/soft_i2c.c: doc/driver-model/i2c-howto.txt drivers/rtc/ds1374.c: Watchdoc/Alarminclude/ata.h: ftp://ftp.fee.vutbr.cz/pub/doc/io/ata/ata-3/ata3r5v.zip include/configs/sbc8548.h: doc/README.sbc8548 include/fsl_qe.h: doc/README.qe_firmwarelib/zlib/trees.c: ftp.uu.net:/pub/archiving/zip/doc/deflate-1.1.doc tools/dtoc/dtb_platdata.py: doc/driver-model/of-plat.txt tools/dtoc/dtoc.py: doc/driver-model/of-plat.txt
Best regards
Heinrich
PATCH 1/1 doc: Makefile: remove target refcheckdocs
Quoted 89 lines · Heinrich Schuchardt
Quoted 9 lines · Patrick Delaunay
Remove the target refcheckdocs, based on the missing script
scripts/documentation-file-ref-check.This script exists in Linux tree but wasn't imported when 'doc' move to SPHINX in commit
78a88f7930be("doc: Replace DocBook with sphinx-based docs")This patch avoids the error:
Quoted 8 lines
make refcheckdocs
/bin/sh:scripts/documentation-file-ref-check: No such file or directory doc/Makefile:102: recipe for target 'refcheckdocs' failed make[1]: *** [refcheckdocs] Error 127
Makefile:2094: recipe for target 'refcheckdocs' failed
make: *** [refcheckdocs] Error 2Signed-off-by Patrick Delaunay <[email protected]>When we copy and adjust the missing script we can identify dozens of documentation errors, see below. So I think we should fix the make target instead of removing it.
arch/arm/mach-imx/Kconfig: doc/README.mxc_habarch/arm/mach-imx/Kconfig: doc/README.mxc_hab board/advantech/dms-ba16/dms-ba16_1g.cfg: doc/README.imximage board/advantech/dms-ba16/dms-ba16_2g.cfg: doc/README.imximage board/aristainetos/aristainetos2.cfg: doc/README.imximage board/bachmann/ot1200/mx6q_4x_mt41j128.cfg: doc/README.imximage board/barco/titanium/imximage.cfg: doc/README.imximage board/boundary/nitrogen6x/nitrogen6dl.cfg: doc/README.imximage board/boundary/nitrogen6x/nitrogen6dl2g.cfg: doc/README.imximage board/boundary/nitrogen6x/nitrogen6q.cfg: doc/README.imximage board/boundary/nitrogen6x/nitrogen6q2g.cfg: doc/README.imximage board/boundary/nitrogen6x/nitrogen6s.cfg: doc/README.imximage board/boundary/nitrogen6x/nitrogen6s1g.cfg: doc/README.imximage board/ccv/xpress/imximage.cfg: doc/README.imximage board/cobra5272/README: u-boot-x-x-x/doc/README.COBRA5272 board/freescale/imx8qxp_mek/imximage.cfg: doc/README.imx8image board/freescale/m52277evb/README: doc/README.m52277evb board/freescale/m53017evb/README: doc/README.m53017evb board/freescale/m5373evb/README: doc/README.m5373evb board/freescale/m54455evb/README: doc/README.m54455evb board/freescale/m547xevb/README: doc/README.m5475evb board/freescale/mx25pdk/imximage.cfg: doc/README.imximage board/freescale/mx51evk/imximage.cfg: doc/README.imximage board/freescale/mx53ard/imximage_dd3.cfg: doc/README.imximage board/freescale/mx53evk/imximage.cfg: doc/README.imximage board/freescale/mx53loco/imximage.cfg: doc/README.imximage board/freescale/mx53smd/imximage.cfg: doc/README.imximage board/freescale/mx6qarm2/imximage.cfg: doc/README.imximage board/freescale/mx6qarm2/imximage_mx6dl.cfg: doc/README.imximage board/freescale/mx6slevk/imximage.cfg: doc/README.imximage board/freescale/mx6ullevk/imximage.cfg: doc/README.imximage board/freescale/mx7dsabresd/imximage.cfg: doc/README.imximage board/freescale/s32v234evb/s32v234evb.cfg: doc/README.imximage board/freescale/vf610twr/imximage.cfg: doc/README.imximage board/ge/bx50v3/bx50v3.cfg: doc/README.imximage board/ge/mx53ppd/imximage.cfg: doc/README.imximage board/menlo/m53menlo/imximage.cfg: doc/README.imximage board/phytec/pcm052/imximage.cfg: doc/README.imximage board/seco/mx6quq7/mx6quq7-2g.cfg: doc/README.imximage board/siemens/capricorn/imximage.cfg: doc/README.imx8image board/technexion/pico-imx6ul/imximage.cfg: doc/README.imximage board/toradex/apalis-imx8/apalis-imx8qm-imximage.cfg: doc/README.imx8image board/toradex/colibri-imx6ull/imximage.cfg: doc/README.imximage board/toradex/colibri-imx8x/colibri-imx8qxp-imximage.cfg:
doc/README.imx8image
board/toradex/colibri_imx7/imximage.cfg: doc/README.imximage board/toradex/colibri_vf/imximage.cfg: doc/README.imximage board/tqc/tqma6/clocks.cfg: doc/README.imximage board/tqc/tqma6/tqma6dl.cfg: doc/README.imximage board/tqc/tqma6/tqma6q.cfg: doc/README.imximage board/tqc/tqma6/tqma6s.cfg: doc/README.imximage board/warp/imximage.cfg: doc/README.imximage board/warp7/imximage.cfg: doc/README.imximage
cmd/Kconfig: doc/README.beddbug
doc/README.drivers.eth:doc/driver-model/README.txtdoc/README.fdt-control:doc/driver-model/README.txtdoc/device-tree-bindings/net/ti,dp83867.txt:doc/devicetree/bindings/net/ethernet.txtdoc/device-tree-bindings/video/rockchip-lvds.txt:doc/devicetree/device-tree-bindings/video/display-timing.txtdoc/imx/misc/sdp.txt: doc/README.imximagedoc/sphinx/parse-headers.pl:doc/doc-guide/parse-headers.rstdoc/sphinx/rstFlatTable.py: doc/books/kernel-doc-HOWTOdrivers/i2c/davinci_i2c.c:doc/driver-model/i2c-howto.txtdrivers/i2c/kona_i2c.c:doc/driver-model/i2c-howto.txtdrivers/i2c/sh_i2c.c:doc/driver-model/i2c-howto.txt
Quoted 8 lines
drivers/i2c/soft_i2c.c:doc/driver-model/i2c-howto.txtdrivers/rtc/ds1374.c: Watchdoc/Alarminclude/ata.h: ftp://ftp.fee.vutbr.cz/pub/doc/io/ata/ata-3/ata3r5v.zipinclude/configs/sbc8548.h: doc/README.sbc8548include/fsl_qe.h: doc/README.qe_firmwarelib/zlib/trees.c: ftp.uu.net:/pub/archiving/zip/doc/deflate-1.1.doctools/dtoc/dtb_platdata.py:doc/driver-model/of-plat.txttools/dtoc/dtoc.py:doc/driver-model/of-plat.txt
Agreed. And then make new errors a CI fatal? Thanks!
Signature · 8 lines
Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 659 bytes Desc: not available URL: <https://lists.denx.de/pipermail/u-boot/attachments/20200225/60116b16/attachment.sig>
PATCH 1/1 doc: Makefile: remove target refcheckdocs
Hi Heinrich,
Quoted 104 lines
From: Tom Rini <[email protected]>
Sent: mardi 25 f?vrier 2020 19:44Quoted 91 lines · Heinrich Schuchardt
Quoted 17 lines · Patrick Delaunay
Remove the target refcheckdocs, based on the missing script
scripts/documentation-file-ref-check.This script exists in Linux tree but wasn't imported when 'doc' move to SPHINX in commit
78a88f7930be("doc: Replace DocBook with sphinx-based docs")This patch avoids the error:
make refcheckdocs
/bin/sh:scripts/documentation-file-ref-check: No such file or directory
doc/Makefile:102: recipe for target 'refcheckdocs' failed make[1]: *** [refcheckdocs] Error 127
Makefile:2094: recipe for target 'refcheckdocs' failed
make: *** [refcheckdocs] Error 2Quoted 1 line
Signed-off-by Patrick Delaunay <[email protected]>When we copy and adjust the missing script we can identify dozens of documentation errors, see below. So I think we should fix the make target instead of removing it.
arch/arm/mach-imx/Kconfig: doc/README.mxc_habarch/arm/mach-imx/Kconfig: doc/README.mxc_hab board/advantech/dms-ba16/dms-ba16_1g.cfg: doc/README.imximage board/advantech/dms-ba16/dms-ba16_2g.cfg: doc/README.imximage board/aristainetos/aristainetos2.cfg: doc/README.imximage board/bachmann/ot1200/mx6q_4x_mt41j128.cfg: doc/README.imximage board/barco/titanium/imximage.cfg: doc/README.imximage board/boundary/nitrogen6x/nitrogen6dl.cfg: doc/README.imximage board/boundary/nitrogen6x/nitrogen6dl2g.cfg: doc/README.imximage board/boundary/nitrogen6x/nitrogen6q.cfg: doc/README.imximage board/boundary/nitrogen6x/nitrogen6q2g.cfg: doc/README.imximage board/boundary/nitrogen6x/nitrogen6s.cfg: doc/README.imximage board/boundary/nitrogen6x/nitrogen6s1g.cfg: doc/README.imximage board/ccv/xpress/imximage.cfg: doc/README.imximage board/cobra5272/README: u-boot-x-x-x/doc/README.COBRA5272 board/freescale/imx8qxp_mek/imximage.cfg: doc/README.imx8image board/freescale/m52277evb/README: doc/README.m52277evb board/freescale/m53017evb/README: doc/README.m53017evb board/freescale/m5373evb/README: doc/README.m5373evb board/freescale/m54455evb/README: doc/README.m54455evb board/freescale/m547xevb/README: doc/README.m5475evb board/freescale/mx25pdk/imximage.cfg: doc/README.imximage board/freescale/mx51evk/imximage.cfg: doc/README.imximage board/freescale/mx53ard/imximage_dd3.cfg: doc/README.imximage board/freescale/mx53evk/imximage.cfg: doc/README.imximage board/freescale/mx53loco/imximage.cfg: doc/README.imximage board/freescale/mx53smd/imximage.cfg: doc/README.imximage board/freescale/mx6qarm2/imximage.cfg: doc/README.imximage board/freescale/mx6qarm2/imximage_mx6dl.cfg: doc/README.imximage board/freescale/mx6slevk/imximage.cfg: doc/README.imximage board/freescale/mx6ullevk/imximage.cfg: doc/README.imximage board/freescale/mx7dsabresd/imximage.cfg: doc/README.imximage board/freescale/s32v234evb/s32v234evb.cfg: doc/README.imximage board/freescale/vf610twr/imximage.cfg: doc/README.imximage board/ge/bx50v3/bx50v3.cfg: doc/README.imximage board/ge/mx53ppd/imximage.cfg: doc/README.imximage board/menlo/m53menlo/imximage.cfg: doc/README.imximage board/phytec/pcm052/imximage.cfg: doc/README.imximage board/seco/mx6quq7/mx6quq7-2g.cfg: doc/README.imximage board/siemens/capricorn/imximage.cfg: doc/README.imx8image board/technexion/pico-imx6ul/imximage.cfg: doc/README.imximage board/toradex/apalis-imx8/apalis-imx8qm-imximage.cfg:
doc/README.imx8image board/toradex/colibri-imx6ull/imximage.cfg: doc/README.imximage board/toradex/colibri-imx8x/colibri-imx8qxp-imximage.cfg:
doc/README.imx8image board/toradex/colibri_imx7/imximage.cfg: doc/README.imximage board/toradex/colibri_vf/imximage.cfg: doc/README.imximage board/tqc/tqma6/clocks.cfg: doc/README.imximage board/tqc/tqma6/tqma6dl.cfg: doc/README.imximage board/tqc/tqma6/tqma6q.cfg: doc/README.imximage board/tqc/tqma6/tqma6s.cfg: doc/README.imximage board/warp/imximage.cfg: doc/README.imximage board/warp7/imximage.cfg: doc/README.imximage cmd/Kconfig: doc/README.beddbug doc/README.drivers.eth:doc/driver-model/README.txtdoc/README.fdt-control:doc/driver-model/README.txtdoc/device-tree-bindings/net/ti,dp83867.txt:doc/devicetree/bindings/net/ethernet.txtdoc/device-tree-bindings/video/rockchip-lvds.txt:doc/devicetree/device-tree-bindings/video/display-timing.txtdoc/imx/misc/sdp.txt: doc/README.imximagedoc/sphinx/parse-headers.pl:doc/doc-guide/parse-headers.rstdoc/sphinx/rstFlatTable.py: doc/books/kernel-doc-HOWTOdrivers/i2c/davinci_i2c.c:doc/driver-model/i2c-howto.txtdrivers/i2c/kona_i2c.c:doc/driver-model/i2c-howto.txtdrivers/i2c/sh_i2c.c:doc/driver-model/i2c-howto.txtQuoted 8 lines
drivers/i2c/soft_i2c.c:doc/driver-model/i2c-howto.txtdrivers/rtc/ds1374.c: Watchdoc/Alarminclude/ata.h: ftp://ftp.fee.vutbr.cz/pub/doc/io/ata/ata-3/ata3r5v.zipinclude/configs/sbc8548.h: doc/README.sbc8548include/fsl_qe.h: doc/README.qe_firmwarelib/zlib/trees.c: ftp.uu.net:/pub/archiving/zip/doc/deflate-1.1.doctools/dtoc/dtb_platdata.py:doc/driver-model/of-plat.txttools/dtoc/dtoc.py:doc/driver-model/of-plat.txt
Quoted 1 line
Agreed. And then make new errors a CI fatal? Thanks!
Agreed also.
I did not have the courage to do it (in fact: I started, but I did not succeed and I give up)
FYI: that can't be CI fatal today, because the current script give too many false positive
For example :
board/aristainetos/aristainetos2.cfg: doc/README.imximage cmd/Kconfig: doc/README.beddbug
=> these file exist
Thanks
Quoted 2 lines
--
Tom