supperthomas / bluetoothlover_doc

this is about the learning station about friends.
https://supperthomas-wiki.readthedocs.io/
Apache License 2.0
45 stars 26 forks source link

编译所有bsp #533

Open supperthomas opened 2 months ago

supperthomas commented 2 months ago
  1. 分类bsp,根据yml文件来解析可以用的bsp

    每个toolchain下面对应bsp 然后python根据yml文件,来过滤需要编译的bsp 目录,如果目录不在yml中,就不编译, 如果在的话,再判断是否在失败的bsp中,如果不在,就编译。

  2. 或者根据每个bsp下面的yml文件中的介绍来判断。

supperthomas commented 2 months ago

raspberry-pi/raspi2 ck802 yichip/yc3121-pos synopsys/boards zynqmp-a53-dfzu2eg phytium/aarch64 ESP32_C3 mm32l07x amebaz nuclei/nuclei_fpga_eval nuclei/gd32vf103_rvstar thead-smart ft2004 ti/c28x/tms320f28379d stm32/stm32l431-tencentos-tiny-EVB_MX+ rockchip/rk2108 w60x ht32/ht32f12366 ht32/ht32f52352 nuvoton/numaker-iot-ma35d1 nuvoton/nk-n9h30 nuvoton/numaker-hmi-ma35d1 nuvoton/nk-980iot nuvoton/numaker-m2354 nuvoton/numaker-iot-m487 nuvoton/nk-rtu980 nuvoton/numaker-m032ki nuvoton/ma35-rtp nuvoton/numaker-m467hj nuvoton/numaker-pfm-m487 nuvoton/numaker-iot-m467 airm2m/air105 qemu-virt64-aarch64 hc32l136 essemi/es32f365x essemi/es32f0654 renesas/libraries/bsp-template renesas/ra8m1-ek renesas/ra8d1-ek renesas/ra8d1-vision-board fm33lc026 nxp/lpc/lpc55sxx/Libraries/template/lpc55s6xxxx nxp/lpc/lpc5410x nxp/lpc/lpc54608-LPCXpresso nxp/lpc/lpc1114 nxp/lpc/lpc54114-lite nxp/imx/imx6ull-smart nxp/imx/imxrt/imxrt1170-nxp-evk/m7 microchip/saml10

supperthomas commented 2 months ago

怎么action那里不编译了?

https://productionresultssa12.blob.core.windows.net/actions-results/62fbb4ca-4e98-4b7d-a16c-3d7e3399a123/workflow-job-run-ad1a71e0-b897-5b78-ad6d-e0ac17685f95/logs/job/job-logs.txt?rsct=text%2Fplain&se=2024-08-24T05%3A26%3A15Z&sig=%2F9C3qZpPLgIDwU7mAMqFXDqSVE3tp%2FJc9R63UVw7m5o%3D&ske=2024-08-24T13%3A39%3A39Z&skoid=ca7593d4-ee42-46cd-af88-8b886a2f84eb&sks=b&skt=2024-08-24T01%3A39%3A39Z&sktid=398a6654-997b-47e9-b12b-9515b896b4de&skv=2024-05-04&sp=r&spr=https&sr=b&st=2024-08-24T05%3A16%3A10Z&sv=2024-05-04

supperthomas commented 2 months ago
  1. 按钮按下之后,update所有bsp,然后create PR

  2. 按下按钮之后,upload fail的bsp 和log

supperthomas commented 2 months ago

做一个脚本,检查所有bsp,并且生成yml

supperthomas commented 2 months ago
from multiprocessing import Process

def worker(n):
    print(f"Process {n} is working")

processes = []
for i in range(5):  # 假设你有 5 个任务
    p = Process(target=worker, args=(i,))
    p.start()
    processes.append(p)

for p in processes:
    p.join()  # 等待所有进程完成
supperthomas commented 2 months ago

1 如何上传失败log 2 如何遍历所有bsp 3.如何触发选项

supperthomas commented 2 months ago
  1. 先根据pr内容,解析出来要编译哪些bsp 如果只有bsp内的文件修改,解析出bsp下一级的bsp目录进行编译 参数:nrf5x,stm32 如果只有bsp目录下面的文件夹修改,则就编这一个 nrf5x/nrf52840

2.如果是没有bsp修改的,解析出来哪些文件夹修改,然后根据文件夹,来对所有bsp进行冒烟测试,只编译部分bsp(每个文件夹挑一个) 参数bsp_smoke

supperthomas commented 1 week ago

情况1: 只改了bsp 编译对应的bsp,全部编译 情况2: 改了除了bsp的文件,比如内核: 编译rt-spark