初始提交
This commit is contained in:
45
build/build_kl3_rom.sh
Executable file
45
build/build_kl3_rom.sh
Executable file
@@ -0,0 +1,45 @@
|
||||
#!/bin/bash
|
||||
|
||||
ln -s ./build/Makefile ../Makefile
|
||||
|
||||
# sta and iic build
|
||||
#cd -
|
||||
#
|
||||
. env_kunlun3_rom.sh
|
||||
|
||||
mem_src="./mem_config/riscv3/iot_mem_4m_flash_config.h"
|
||||
mem_dst="../inc/config/iot_mem_config.h"
|
||||
|
||||
cp ${mem_src} ${mem_dst}
|
||||
|
||||
# kl2 bootram need soft_float_enable
|
||||
export rom_enable=1
|
||||
|
||||
chmod +x ./*.sh
|
||||
dos2unix ./*.sh
|
||||
|
||||
chmod +x ../tools/gen_img/*
|
||||
dos2unix ../tools/gen_img/*
|
||||
|
||||
chmod +x ../tools/bin_tool/*
|
||||
dos2unix ../tools/bin_tool/*
|
||||
|
||||
chmod +x ../tools/rom_img/*
|
||||
dos2unix ../tools/rom_img/*
|
||||
|
||||
chmod +x ../tools/rom_img/riscv3/*
|
||||
dos2unix ../tools/rom_img/riscv3/*
|
||||
|
||||
rm -rf ../tools/rom_img/riscv3/libs
|
||||
|
||||
set -o errexit
|
||||
make -C .. clobber
|
||||
make PLATFORM=CHIP -C ..
|
||||
|
||||
set +o errexit
|
||||
cd ../tools/rom_img/riscv3/
|
||||
mkdir libs
|
||||
cp -rf ../../../rom/riscv3/rom/.output/lib/* ./libs/
|
||||
cp -rf ../../../rom/riscv3/romlib/.output/lib/* ./libs/
|
||||
. rom_gen.sh
|
||||
cd -
|
Reference in New Issue
Block a user