-
Notifications
You must be signed in to change notification settings - Fork 5.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into spi-update
- Loading branch information
Showing
1,644 changed files
with
210,496 additions
and
352,835 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,3 @@ | ||
cvitek_bootloader | ||
fip.bin | ||
boot.sd | ||
output | ||
rttpkgtool/ | ||
output/ | ||
Image.lzma |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
#!/bin/bash | ||
|
||
source ./tools.sh | ||
|
||
function usage() { | ||
echo "Usage:" | ||
echo " ./build.sh [-h|-l|-b]" | ||
echo " -h: display usage" | ||
echo " -l: build c906L" | ||
echo " -b: build c906B" | ||
} | ||
|
||
function build_c906b() { | ||
echo "build_c906b" | ||
|
||
BOARD_TYPE=`get_board_type $BSP_PATH/cv18xx_risc-v` | ||
echo "BOARD_TYPE: $BOARD_TYPE" | ||
|
||
DPT_PATH_KERNEL=$BSP_PATH/../../ DPT_BOARD_TYPE=$BOARD_TYPE DPT_PATH_OUTPUT=$BSP_PATH/output ./rttpkgtool/script/mkpkg.sh -b | ||
} | ||
|
||
function build_c906l() { | ||
echo "build_c906l" | ||
|
||
BOARD_TYPE=`get_board_type $BSP_PATH/c906_little` | ||
echo "BOARD_TYPE: $BOARD_TYPE" | ||
|
||
DPT_PATH_KERNEL=$BSP_PATH/../../ DPT_BOARD_TYPE=$BOARD_TYPE DPT_PATH_OUTPUT=$BSP_PATH/output ./rttpkgtool/script/mkpkg.sh -l | ||
} | ||
|
||
while getopts ":hbl" opt | ||
do | ||
case $opt in | ||
h) | ||
O_HELP=y | ||
;; | ||
b) | ||
O_MAKE_BIG=y | ||
;; | ||
l) | ||
O_MAKE_LITTLE=y | ||
;; | ||
?) | ||
echo "Unrecognized parameter." | ||
usage | ||
exit 1 | ||
;; | ||
esac | ||
done | ||
|
||
if [ "$O_HELP" = "y" ]; then | ||
usage | ||
exit 0 | ||
fi | ||
|
||
BSP_PATH=$(realpath $(dirname $0)) | ||
echo "BSP_PATH: $BSP_PATH" | ||
|
||
download_rttpkgtool $BSP_PATH | ||
|
||
if [ "$O_MAKE_BIG" = "y" ]; then | ||
build_c906b | ||
fi | ||
|
||
if [ "$O_MAKE_LITTLE" = "y" ]; then | ||
build_c906l | ||
fi | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,7 +12,7 @@ | |
|
||
int main(void) | ||
{ | ||
rt_kprintf("Hello, RISC-V!\n"); | ||
rt_kprintf("Hello, RISC-V/C906L !\n"); | ||
|
||
return 0; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.