xf.li | 6097298 | 2023-06-22 23:27:19 -0700 | [diff] [blame] | 1 | #!/bin/bash |
| 2 | TOP=$(pwd) |
| 3 | source update_version.sh |
xf.li | aa077c4 | 2024-01-23 01:04:10 -0800 | [diff] [blame] | 4 | mkdir esdk_patch/Uboot |
| 5 | cp -R boot/ build/ cp/ pub/ rpm/ tools/ esdk_patch/Uboot/ |
| 6 | cd esdk_patch |
| 7 | tar -czvf Uboot.tar.gz Uboot |
| 8 | cd ${TOP} |
xf.li | 6c8fc1e | 2023-08-12 00:11:09 -0700 | [diff] [blame] | 9 | cd ap/project/zx297520v3/prj_vehicle_dc_ref/build/ |
xf.li | 6097298 | 2023-06-22 23:27:19 -0700 | [diff] [blame] | 10 | make allclean all |
| 11 | cd ../../../../.. |
xf.li | 6c8fc1e | 2023-08-12 00:11:09 -0700 | [diff] [blame] | 12 | cd boot/prj/zx297520v3/vehicle_dc_ref/build/ |
xf.li | 6097298 | 2023-06-22 23:27:19 -0700 | [diff] [blame] | 13 | make allclean all |
xf.li | aa4d92f | 2023-09-13 00:18:58 -0700 | [diff] [blame] | 14 | cd ../../bootrom/ |
| 15 | bash merge_boorom.sh |
| 16 | cd ../../../../ |
xf.li | 6097298 | 2023-06-22 23:27:19 -0700 | [diff] [blame] | 17 | cd cap/zx297520v3/ |
| 18 | #ln -s ~/T106_downloads/downloads/ ./ |
xf.li | 6c8fc1e | 2023-08-12 00:11:09 -0700 | [diff] [blame] | 19 | DISTRO=vehicle_dc_ref MACHINE=zx297520v3 SDK=yes source zxic-setup-release.sh -b build-vehicle_dc_ref |
xf.li | 6097298 | 2023-06-22 23:27:19 -0700 | [diff] [blame] | 20 | bitbake zxic-image && bitbake mkimgsig |
| 21 | cd ${TOP}/allbins/zx297520v3/prj_vehicle/scripts_linux |
xf.li | 6c8fc1e | 2023-08-12 00:11:09 -0700 | [diff] [blame] | 22 | bash copybin_vehicle_dc_ref.sh |
xf.li | 6097298 | 2023-06-22 23:27:19 -0700 | [diff] [blame] | 23 | cd ${TOP}/cap/zx297520v3 |
| 24 | bitbake zxic-image -c populate_sdk_ext |
| 25 | cd ${TOP} |
xf.li | 6c8fc1e | 2023-08-12 00:11:09 -0700 | [diff] [blame] | 26 | cp esdk_patch/mk_esdk.sh cap/zx297520v3/build-vehicle_dc_ref/tmp/deploy/sdk/ |
| 27 | cp esdk_patch/linux_bb.diff cap/zx297520v3/build-vehicle_dc_ref/tmp/deploy/sdk/ |
| 28 | mkdir cap/zx297520v3/build-vehicle_dc_ref/tmp/deploy/sdk/upstream |
| 29 | cp -R pub cap/zx297520v3/build-vehicle_dc_ref/tmp/deploy/sdk/upstream/ |
| 30 | cp -R tools cap/zx297520v3/build-vehicle_dc_ref/tmp/deploy/sdk/upstream/ |
| 31 | cp -R cap/zx297520v3/zxic_code/zxic_source/linux-5.10 cap/zx297520v3/build-vehicle_dc_ref/tmp/deploy/sdk/upstream/ |
| 32 | cd cap/zx297520v3/build-vehicle_dc_ref/tmp/deploy/sdk/ |
xf.li | 6097298 | 2023-06-22 23:27:19 -0700 | [diff] [blame] | 33 | tar -czvf upstream.tar.gz upstream |
| 34 | mkdir do_package_tool |
| 35 | cd ${TOP} |
xf.li | aa077c4 | 2024-01-23 01:04:10 -0800 | [diff] [blame] | 36 | cp esdk_patch/Uboot.tar.gz allbins cap/zx297520v3/build-vehicle_dc_ref/tmp/deploy/sdk/ |
xf.li | 6c8fc1e | 2023-08-12 00:11:09 -0700 | [diff] [blame] | 37 | cp -R allbins cap/zx297520v3/build-vehicle_dc_ref/tmp/deploy/sdk/do_package_tool/ |
| 38 | cd cap/zx297520v3/build-vehicle_dc_ref/tmp/deploy/sdk/ |
xf.li | 6097298 | 2023-06-22 23:27:19 -0700 | [diff] [blame] | 39 | tar -czvf do_package_tool.tar.gz do_package_tool |
| 40 | rm -rf do_package_tool upstream |
| 41 | tar -czvf T106_esdk.tar.gz ./* |