pre-build
This commit is contained in:
parent
8dfe62ff11
commit
3694a2db89
89
BRANCHES.md
Normal file
89
BRANCHES.md
Normal file
@ -0,0 +1,89 @@
|
|||||||
|
```mermaid
|
||||||
|
flowchart TD
|
||||||
|
B000["devel-staging"] ---> CORE["core"]
|
||||||
|
CORE ---> CORE_001["core-feat/params"]
|
||||||
|
CORE_001 ---> CORE_002["core-feat/panel"]
|
||||||
|
CORE_002 ---> MIN["min"]
|
||||||
|
MIN ---> MIN_001["min-feat/dev/c3"]
|
||||||
|
MIN ---> MIN_002["min-feat/dev/o3"]
|
||||||
|
MIN ---> MIN_003["min-feat/lat/alka"]
|
||||||
|
MIN ---> MIN_004["min-feat/ui/display-mode"]
|
||||||
|
MIN ---> MIN_005["min-feat/dev/model-selector"]
|
||||||
|
MIN ---> MIN_006["min-feat/lat/lca"]
|
||||||
|
MIN ---> MIN_007["min-feat/dev/on-off-road"]
|
||||||
|
MIN ---> MIN_008["min-feat/ui/hide-hud"]
|
||||||
|
MIN ---> MIN_009["min-feat/lon/ext-radar"]
|
||||||
|
MIN ---> MIN_010["min-feat/lat/road-edge-detection"]
|
||||||
|
MIN ---> MIN_011["min-feat/ui/rainbow-path"]
|
||||||
|
MIN ---> MIN_012["min-feat/lon/acm"]
|
||||||
|
MIN ---> MIN_013["min-feat/lon/aem"]
|
||||||
|
MIN ---> MIN_014["min-feat/lon/dtsc"]
|
||||||
|
MIN ---> MIN_015["min-feat/dev/alert-mode"]
|
||||||
|
MIN ---> MIN_016["min-feat/dev/auto-shutdown"]
|
||||||
|
MIN ---> MIN_017["min-feat/ui/lead-stats"]
|
||||||
|
MIN ---> MIN_018["min-feat/ui/border-indicator"]
|
||||||
|
MIN ---> MIN_019["min-feat/dev/dashy"]
|
||||||
|
MIN ---> MIN_010["min-feat/dev/delay-loggerd"]
|
||||||
|
MIN ---> MIN_021["min-feat/dev/disable-connect"]
|
||||||
|
MIN ---> MIN_022["min-feat/dev/tether-on-boot"]
|
||||||
|
MIN_001 ---> FULL["full"]
|
||||||
|
MIN_002 ---> FULL
|
||||||
|
MIN_003 ---> FULL
|
||||||
|
MIN_004 ---> FULL
|
||||||
|
MIN_005 ---> FULL
|
||||||
|
MIN_006 ---> FULL
|
||||||
|
MIN_007 ---> FULL
|
||||||
|
MIN_008 ---> FULL
|
||||||
|
MIN_009 ---> FULL
|
||||||
|
MIN_010 ---> FULL
|
||||||
|
MIN_011 ---> FULL
|
||||||
|
MIN_012 ---> FULL
|
||||||
|
MIN_013 ---> FULL
|
||||||
|
MIN_014 ---> FULL
|
||||||
|
MIN_015 ---> FULL
|
||||||
|
MIN_016 ---> FULL
|
||||||
|
MIN_017 ---> FULL
|
||||||
|
MIN_018 ---> FULL
|
||||||
|
MIN_019 ---> FULL
|
||||||
|
MIN_020 ---> FULL
|
||||||
|
MIN_021 ---> FULL
|
||||||
|
MIN_022 ---> FULL
|
||||||
|
FULL ---> TOYOTA_001[brand/toyota/safety-common]
|
||||||
|
FULL ---> TOYOTA_002[brand/toyota/door-auto-lock-unlock]
|
||||||
|
FULL ---> TOYOTA_003[brand/toyota/tss1-sng]
|
||||||
|
FULL ---> TOYOTA_004[brand/toyota/radar-filter]
|
||||||
|
FULL ---> TOYOTA_005[brand/toyota/sdsu]
|
||||||
|
FULL ---> TOYOTA_006[brand/toyota/dsu-bypass]
|
||||||
|
FULL ---> TOYOTA_007[brand/toyota/zss]
|
||||||
|
FULL ---> TOYOTA_008[brand/toyota/stock-lon]
|
||||||
|
FULL ---> VAG_001[brand/vag/a0-sng]
|
||||||
|
FULL ---> VAG_002[brand/vag/pq-steering-patch]
|
||||||
|
FULL ---> VAG_003[brand/vag/pq-no-dashcam]
|
||||||
|
FULL ---> VAG_004[brand/vag/avoid-eps-lockout]
|
||||||
|
FULL ---> HKG_001[brand/hkg/smdps]
|
||||||
|
FULL ---> HONDA_001[brand/honda/eps-mod]
|
||||||
|
FULL ---> SUBARU_001[brand/subaru/torque-3071]
|
||||||
|
TOYOTA_001 ---> TOYOTA[pre-toyota]
|
||||||
|
TOYOTA_002 ---> TOYOTA
|
||||||
|
TOYOTA_003 ---> TOYOTA
|
||||||
|
TOYOTA_004 ---> TOYOTA
|
||||||
|
TOYOTA_005 ---> TOYOTA
|
||||||
|
TOYOTA_006 ---> TOYOTA
|
||||||
|
TOYOTA_007 ---> TOYOTA
|
||||||
|
TOYOTA_008 ---> TOYOTA
|
||||||
|
VAG_001 ---> VAG[pre-vag]
|
||||||
|
VAG_002 ---> VAG
|
||||||
|
VAG_003 ---> VAG
|
||||||
|
VAG_004 ---> VAG
|
||||||
|
HKG_001 ---> HKG[pre-hkg]
|
||||||
|
HONDA_001 ---> HONDA[pre-honda]
|
||||||
|
SUBARU_001 ---> SUBARU[pre-subaru]
|
||||||
|
TOYOTA ---> PRE[pre]
|
||||||
|
VAG ---> PRE
|
||||||
|
HKG ---> PRE
|
||||||
|
HONDA ---> PRE
|
||||||
|
SUBARU ---> PRE
|
||||||
|
PRE ---> PRE_PATCH[pre-patch]
|
||||||
|
PRE_PATCH ---> PREBUILD[pre-build]
|
||||||
|
PREBUILD ---> VERSION[x.x.x]
|
||||||
|
```
|
||||||
1631
CHANGELOGS.md
Normal file
1631
CHANGELOGS.md
Normal file
File diff suppressed because it is too large
Load Diff
26
SPONSORS.md
Normal file
26
SPONSORS.md
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
# Sponsors 贊助者
|
||||||
|
|
||||||
|
我們誠摯感謝以下贊助者提供的硬體資源,讓專案能夠在多種平台上進行測試與驗證。
|
||||||
|
|
||||||
|
We sincerely thank the following sponsors for providing hardware resources, which enable the project to be tested and validated across multiple platforms.
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## 贊助者列表 Sponsors
|
||||||
|
|
||||||
|
| 贊助者 Sponsor | 設備 Deices | 備註 Notes |
|
||||||
|
| -------------- | ----------- | ---------- |
|
||||||
|
| BlueGood | <ul><li>Radar Filter x 2</li><li>sDSU x1</li></ul> | - |
|
||||||
|
| Chia Chun Lee | <ul><li>C3 Quick Mount x1</li></ul> | - |
|
||||||
|
| CloudJ | <ul><li>C3X x1</li></ul> | - |
|
||||||
|
| FareWay | <ul><li>EON Quick Mount x1</li><li>C2/C3 Quick Mount x1</li></ul> | Special thanks for fixing my good old EON |
|
||||||
|
| Fred Wang | <ul><li>Oneplus 3t x1</li></ul> | - |
|
||||||
|
| Saber Huang | <ul><li>O3L x1</li></ul> | - |
|
||||||
|
| [馬威 Mr. One](https://shop61532546.taobao.com/) | <ul><li>O3 x 1</li><li>O3 (Dev) x1</li><li>O3XL x1</li><li>Red Panda x1</li><li>Panda Jungle v1 x1</li></ul> | - |
|
||||||
|
| 門文梁 | <ul><li>C1.5 x1</li></ul> | - |
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
🙏 沒有你們的支持,我們無法讓專案在這麼多硬體平台上持續成長與驗證。
|
||||||
|
|
||||||
|
Without your support, this project could not continue to grow and be validated across so many hardware platforms.
|
||||||
@ -16,17 +16,22 @@ if [ -z "$RELEASE_BRANCH" ]; then
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [ -z "$SOURCE_BRANCH" ]; then
|
||||||
|
echo "SOURCE_BRANCH is not set"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
# set git identity
|
# set git identity
|
||||||
source $DIR/identity.sh
|
source /data/identity.sh
|
||||||
|
|
||||||
echo "[-] Setting up repo T=$SECONDS"
|
echo "[-] Setting up repo T=$SECONDS"
|
||||||
rm -rf $BUILD_DIR
|
rm -rf $BUILD_DIR
|
||||||
mkdir -p $BUILD_DIR
|
mkdir -p $BUILD_DIR
|
||||||
cd $BUILD_DIR
|
cd $BUILD_DIR
|
||||||
git init
|
git init
|
||||||
git remote add origin git@github.com:commaai/openpilot.git
|
git remote add origin https://github.com/dragonpilot/dev.git
|
||||||
git checkout --orphan $RELEASE_BRANCH
|
git checkout --orphan $SOURCE_BRANCH
|
||||||
|
|
||||||
# do the files copy
|
# do the files copy
|
||||||
echo "[-] copying files T=$SECONDS"
|
echo "[-] copying files T=$SECONDS"
|
||||||
@ -42,19 +47,25 @@ rm -f panda/board/obj/panda_h7.bin.signed
|
|||||||
VERSION=$(cat common/version.h | awk -F[\"-] '{print $2}')
|
VERSION=$(cat common/version.h | awk -F[\"-] '{print $2}')
|
||||||
echo "[-] committing version $VERSION T=$SECONDS"
|
echo "[-] committing version $VERSION T=$SECONDS"
|
||||||
git add -f .
|
git add -f .
|
||||||
git commit -a -m "openpilot v$VERSION release"
|
git commit -a -m "dragonpilot v$VERSION release"
|
||||||
|
|
||||||
# Build
|
# Build
|
||||||
export PYTHONPATH="$BUILD_DIR"
|
export PYTHONPATH="$BUILD_DIR"
|
||||||
scons -j$(nproc) --minimal
|
scons -j$(nproc) --minimal
|
||||||
|
|
||||||
if [ -z "$PANDA_DEBUG_BUILD" ]; then
|
#if [ -z "$PANDA_DEBUG_BUILD" ]; then
|
||||||
# release panda fw
|
# # release panda fw
|
||||||
CERT=/data/pandaextra/certs/release RELEASE=1 scons -j$(nproc) panda/
|
# CERT=/data/pandaextra/certs/release RELEASE=1 scons -j$(nproc) panda/
|
||||||
else
|
#else
|
||||||
# build with ALLOW_DEBUG=1 to enable features like experimental longitudinal
|
# # build with ALLOW_DEBUG=1 to enable features like experimental longitudinal
|
||||||
scons -j$(nproc) panda/
|
# scons -j$(nproc) panda/
|
||||||
fi
|
#fi
|
||||||
|
scons -j$(nproc) panda/
|
||||||
|
|
||||||
|
# panda tici
|
||||||
|
rm -f panda_tici/board/obj/panda.bin.signed
|
||||||
|
rm -f panda_tici/board/obj/panda_h7.bin.signed
|
||||||
|
scons -j$(nproc) panda_tici/
|
||||||
|
|
||||||
# Ensure no submodules in release
|
# Ensure no submodules in release
|
||||||
if test "$(git submodule--helper list | wc -l)" -gt "0"; then
|
if test "$(git submodule--helper list | wc -l)" -gt "0"; then
|
||||||
@ -85,18 +96,29 @@ git checkout third_party/
|
|||||||
# Mark as prebuilt release
|
# Mark as prebuilt release
|
||||||
touch prebuilt
|
touch prebuilt
|
||||||
|
|
||||||
|
# dragonpilot customized
|
||||||
|
find . -name '*.cc' -delete
|
||||||
|
find selfdrive/ui/ -name '*.h' -delete
|
||||||
|
find . -type d -name "tests" -exec rm -rf {} +
|
||||||
|
find . -type d -name 'x86_64' -exec rm -rf {} +
|
||||||
|
find . -type d -name 'Darwin' -exec rm -rf {} +
|
||||||
|
rm -fr tinygrad_repo/docs/tinygrad_intro.pdf # 1.9M
|
||||||
|
rm -fr cereal/gen/cpp/log.capnp.h # 2.5M
|
||||||
|
rm -fr tinygrad_repo/extra/hip_gpu_driver/gc_10_3_0_offset.h # 1.4 M
|
||||||
|
rm -fr tinygrad_repo/extra/accel/tpu/logs/tpu_driver.t1v-n-852cd0d5-w-0.taylor.log.INFO.20210619-062914.26926.gz # 1.3 M
|
||||||
|
|
||||||
# Add built files to git
|
# Add built files to git
|
||||||
git add -f .
|
git add -f .
|
||||||
git commit --amend -m "openpilot v$VERSION"
|
git commit --amend -m "dragonpilot v$VERSION"
|
||||||
|
|
||||||
# Run tests
|
# Run tests
|
||||||
cd $BUILD_DIR
|
#cd $BUILD_DIR
|
||||||
RELEASE=1 pytest -n0 -s selfdrive/test/test_onroad.py
|
#RELEASE=1 pytest -n0 -s selfdrive/test/test_onroad.py
|
||||||
#pytest selfdrive/car/tests/test_car_interfaces.py
|
##pytest selfdrive/car/tests/test_car_interfaces.py
|
||||||
|
git branch -m $RELEASE_BRANCH
|
||||||
if [ ! -z "$RELEASE_BRANCH" ]; then
|
#if [ ! -z "$RELEASE_BRANCH" ]; then
|
||||||
echo "[-] pushing release T=$SECONDS"
|
# echo "[-] pushing release T=$SECONDS"
|
||||||
git push -f origin $RELEASE_BRANCH:$RELEASE_BRANCH
|
# git push -f origin $RELEASE_BRANCH:$RELEASE_BRANCH
|
||||||
fi
|
#fi
|
||||||
|
|
||||||
echo "[-] done T=$SECONDS"
|
echo "[-] done T=$SECONDS"
|
||||||
|
|||||||
@ -83,7 +83,7 @@ def set_consistent_flag(consistent: bool) -> None:
|
|||||||
|
|
||||||
def parse_release_notes(basedir: str) -> bytes:
|
def parse_release_notes(basedir: str) -> bytes:
|
||||||
try:
|
try:
|
||||||
with open(os.path.join(basedir, "RELEASES.md"), "rb") as f:
|
with open(os.path.join(basedir, "CHANGELOGS.md"), "rb") as f:
|
||||||
r = f.read().split(b'\n\n', 1)[0] # Slice latest release notes
|
r = f.read().split(b'\n\n', 1)[0] # Slice latest release notes
|
||||||
try:
|
try:
|
||||||
return bytes(parse_markdown(r.decode("utf-8")), encoding="utf-8")
|
return bytes(parse_markdown(r.decode("utf-8")), encoding="utf-8")
|
||||||
|
|||||||
@ -26,7 +26,7 @@ def get_version(path: str = BASEDIR) -> str:
|
|||||||
|
|
||||||
|
|
||||||
def get_release_notes(path: str = BASEDIR) -> str:
|
def get_release_notes(path: str = BASEDIR) -> str:
|
||||||
with open(os.path.join(path, "RELEASES.md")) as f:
|
with open(os.path.join(path, "CHANGELOGS.md")) as f:
|
||||||
return f.read().split('\n\n', 1)[0]
|
return f.read().split('\n\n', 1)[0]
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user