summaryrefslogtreecommitdiff
path: root/scripts
AgeCommit message (Collapse)Author
2021-03-17scripts: Support multi-paragraph comments in HTML output for tasksLaurent Pinchart
When a comment contains multiple paragraphs, delimited by two or more consecutive newline characters, render them in <p> elements. This increases readability of the output. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Tested-by: Jacopo Mondi <jacopo@jmondi.org>
2021-02-11scripts: Use yaml.safe_load()Laurent Pinchart
Before PyYAWL 4.1, yaml.load() can load to arbitrary code execution. yaml.safe_load() is recommended as a safe alternative. Starting at v4.1, yaml.load() calls yaml.safe_load(). See https://seclists.org/oss-sec/2018/q2/240 for more information. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Acked-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com> Tested-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com> Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
2021-02-09scripts: remove myhtml.pyKuninori Morimoto
No one is using myhtml.py anymore. This patch removes it. Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
2021-02-09scripts: add html_member/status/team/bsp.pyKuninori Morimoto
Because current PeriJect is using scripts/myhtml.py to creating all HTML files, all files will be re-created if myhtml.py itself was updated. It is very verbose. This patch separates "member", "status", "team", "bsp" from it. Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
2021-02-09scripts: add html_menu.pyKuninori Morimoto
Because current PeriJect is using scripts/myhtml.py to creating all HTML files, all files will be re-created if myhtml.py itself was updated. It is very verbose. This patch separates "menu" from it. Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
2021-02-09scripts: add html_index/body/subindex.pyKuninori Morimoto
Because current PeriJect is using scripts/myhtml.py to creating all HTML files, all files will be re-created if myhtml.py itself was updated. It is very verbose. This patch separates "index", "body", "subindex" from it. Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
2021-02-09scripts: add html_wiki.pyKuninori Morimoto
Because current PeriJect is using scripts/myhtml.py to creating all HTML files, all files will be re-created if myhtml.py itself was updated. It is very verbose. This patch separates "wiki" from it. Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
2021-02-09scripts: add html_summary.pyKuninori Morimoto
Because current PeriJect is using scripts/myhtml.py to creating all HTML files, all files will be re-created if myhtml.py itself was updated. It is very verbose. This patch separates "summary" from it. Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
2021-02-09scripts: add html_task.pyKuninori Morimoto
Because current PeriJect is using scripts/myhtml.py to creating all HTML files, all files will be re-created if myhtml.py itself was updated. It is very verbose. This patch separates "task" from it. Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
2021-02-08Add Schedule supportKuninori Morimoto
This patch adds SoC/BSP schedule support. PeriPeri member can know the Renesas plan from it. It is based on timesheet JavaScript which from below with small customize. https://github.com/sbstjn/timesheet.js.git Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
2021-02-02add BSP 4.1.x upport requestKuninori Morimoto
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
2021-01-29myhtml: update to indicate each BSP upport statusKuninori Morimoto
Current periject indicates BSP upport status as all-in-one, but it is not good to know *each* BSP. This patch update for it. Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
2021-01-29find.py: add -b option to search BSPKuninori Morimoto
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
2021-01-29project.schema: replace bsp-commits to bsp39xKuninori Morimoto
Current periject is using bsp-commits tag, but it is not enough to know each BSP status. This patch replace it to bsp39x, and we will use bspXXX tag for BSP. Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
2021-01-29find.py: add -is option to ignore statusKuninori Morimoto
find.py will add -ns automatically if user didn't select -s or -ns, but it is not good if user want to search from all tasks. This patch adds -is to ignore status. Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
2020-07-16scripts: myhtml.py: don't indicate "upstream" if not existKuninori Morimoto
commit 88faa5b020952 ("scripts: html.py: Always generate a commit table") fixup:ed to always indicate a "upstream" table. But it indicates empty table even though there is no "upstream" tag. This patch fixup it to indicate "upstream" table only if exist. Fixes: commit 88faa5b020952 ("scripts: html.py: Always generate a commit table") Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be> Tested-by: Geert Uytterhoeven <geert+renesas@glider.be>
2020-04-09find: make filter pattern more specificGeert Uytterhoeven
Change the pattern to filter out meta-schema files from "schema" to "project.schema", so it no longer matches the dt_bindings_json_schema_*.yaml files. Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
2020-04-08schema: Add support for lore email linksGeert Uytterhoeven
Add support for referring to posted patches and patch series using Message-IDs, to be looked up in lore. Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be> Acked-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
2020-04-08Update URL for BSP git repoGeert Uytterhoeven
The BSP repository was moved to github. The old repository lacks several recent commits, leading to broken links in the HTML output (see e.g. html/linux/io/bsp397_SDHI.html). Update all BSP URLs to fix this. Note that BSP commits are opened in a new tab, as github pages cannot be embedded in a frame. Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be> Acked-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
2020-03-30scripts: myhtml.py: Fix links to commits in linux-nextGeert Uytterhoeven
HTML links to commits in linux-next are broken, as they refer to the wrong repository. Consolidate bsp_url() and upstream_url() into commit_url(), and use the correct repository for commits in linux-next. This avoids duplication, and makes it easier to add new URL types later. Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be> Acked-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
2019-12-24chatlog: using big tableKuninori Morimoto
To be more readable, chatlog is now using big table for each year Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
2019-12-24myhtml: sort by file nameKuninori Morimoto
We want sorted Summary. This patch do it. Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
2019-12-24scripts: html.py: Always generate a commit tableGeert Uytterhoeven
If no bsp-commits are present, upstream commits are not listed. Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be> Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
2019-12-24chatlog: Auto update for Chat logKuninori Morimoto
This patch adds chatlog.py and auto update Chat log. Each leader need to do is just put chatlog under wiki/Chat_log by this patch. Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
2019-12-12wiki: tidyup GMSL_xxx pageKuninori Morimoto
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
2019-12-12wiki: update Ongoing Multimedia DevelopmentKuninori Morimoto
For Multi Camera which is asked from BSP team. Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
2019-12-10css: use css at task pageKuninori Morimoto
and some design update Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
2019-12-10myhtml: add missing <body> for wikiKuninori Morimoto
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
2019-12-10myhtml: add missing <body> for summaryKuninori Morimoto
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
2019-12-09Wiki support 1st versionKuninori Morimoto
Renesas contracted service provider will stop Redmine at 2021. But, We want to keep it. This patch start to support Wiki at PeriJect. 100% compatible is difficult, but some of them can be. These are known un-compatiblity. - list "-" doesn't work - line "---" doesn't work - [[link]] doesn't work (periject supports similar one) - !image! doesn't work (periject supports similar one) - <pre>...</pre> doesn't allow white line - {{toc}} doesn't work Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
2019-11-25scripts/pre-commit: Auto-generate keys when neededGeert Uytterhoeven
Generate unique keys for YAML project files lacking them. There are two minor issues left: 1. Due to the "git add", not only the key is added to the file, but also any other changes that are not yet staged, 2. When doing "git add <file>; git commit <file>", the addition of the key is also left in the unstaged changes as a side effect, so "git diff" still shows that change as uncommitted. More investigation shows this only happens when passing the file name to the "git commit" command. Hence it does not happen when doing "git add <file>; git commit". Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be> Tested-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
2019-11-25scripts: Add a pre-commit hook to validate YAML project filesGeert Uytterhoeven
To enable: ln -s ../../scripts/pre-commit.sh .git/hooks/pre-commit Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
2019-11-14scripts: html.py: Change counting of "upstream" and "done"Yoshihiro Shimoda
Even if the tasks' status is "New", "Active", "Blocked" or "Paused", the def bsp on htmi.py increases cnt_{up,all} when task_commit_upstream returns non-zero. However, these countings are possible to overlook which bsp patches are still in progress. So, this patch changes the task done counting. Also adds task's status related upported patches counting like below: bsp:184/upstream:160 = 87.0% --> keep as-is. task:57/done:43 = 75.4% (bsp:184/upstream:106 = 57.6%) ~~~~~~~ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ changed add Suggested-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Signed-off-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
2019-10-30html.py: indicate update timeKuninori Morimoto
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
2019-10-02html.py: add status at bsp()Kuninori Morimoto
We want to count "Done" status upport patch as done even though it doesn't have upstream patch. This patch indicate status. Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
2019-10-02html.py: use existing relpath_y2h() at bsp()Kuninori Morimoto
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
2019-04-25script/html: count correct BSP patch number for statisticsKuninori Morimoto
Current statistics is counting line number, but then, result will be strange if 1 line had multi patches. This patch counts correct BSP patch number. Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
2019-04-09html: add task base done percent at bsp.htmlKuninori Morimoto
"BSP commit / upstreamed commit" is not 1:1. This means, max will be not 100%. This patch adds task base percent. Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
2019-04-09html: add http link for task commentKuninori Morimoto
If comment had http[s] links, this patch add <a> link for it. It doesn't work correctly somehow if <a target="subbody">, so, it uses <a target="_blank"> so far. Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
2019-04-09html: add NoAssignee supportKuninori Morimoto
There are no assignee tasks, and html.py will be error at such tasks. This patch care it. Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
2019-04-09find: add -a NoAssignee supportKuninori Morimoto
We can find No Assignee task as below, but not useful. find -na "" This patch support -a NoAssignee support for it. It might be replace if schema had required at assignee Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
2019-04-09find: replace -a to -allKuninori Morimoto
commit fbd5adac3e9a0 ("find: add -a option") added -a option to indicate all tasks, but it was same as assignee member. This patch fixup it. Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
2019-04-09view: tidyup get_data()Kuninori Morimoto
Some key might not exist on yaml data. In such case, it will be error on get_data(). This patch return [] when no data or no key case Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
2019-04-09find: tidyup default_arg()Kuninori Morimoto
It returned additional default args, but it will be issue for html. This patch exchange to retrun whole args Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
2019-04-09html.py: enable to setup html default cols/rowsKuninori Morimoto
For selfish boys & girls Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
2019-04-09html.py: tidyup parse commandKuninori Morimoto
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
2019-04-09html: add team menuKuninori Morimoto
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
2019-04-09html: status based summaryKuninori Morimoto
status based summary is easy to see Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
2019-04-09Add BSP patch list on menuKuninori Morimoto
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
2019-04-09html: add relpath()Kuninori Morimoto
more simply link path Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>