ubuntu:add submodules gitee support
This commit is contained in:
parent
675db9c7a3
commit
43b945a541
0
.gitmodules
vendored
Normal file → Executable file
0
.gitmodules
vendored
Normal file → Executable file
3
.gitmodules.gitee
Executable file
3
.gitmodules.gitee
Executable file
|
|
@ -0,0 +1,3 @@
|
|||
[submodule "ubuntu"]
|
||||
path = sysdrv/tools/board/ubuntu
|
||||
url = https://gitee.com/eng-thirty-three/pico_ubuntu.git
|
||||
3
.gitmodules.github
Executable file
3
.gitmodules.github
Executable file
|
|
@ -0,0 +1,3 @@
|
|||
[submodule "ubuntu"]
|
||||
path = sysdrv/tools/board/ubuntu
|
||||
url = https://github.com/luckfox-eng33/pico_ubuntu.git
|
||||
|
|
@ -1985,6 +1985,19 @@ fi
|
|||
export RK_PROJECT_TOOLCHAIN_CROSS=$RK_TOOLCHAIN_CROSS
|
||||
export PATH="${SDK_ROOT_DIR}/tools/linux/toolchain/${RK_PROJECT_TOOLCHAIN_CROSS}/bin":$PATH
|
||||
|
||||
if [[ "$LF_TARGET_ROOTFS" = "ubuntu" ]];then
|
||||
if [[ "$LF_SUBMODULES_BY" = "github" ]];then
|
||||
cp ${SDK_ROOT_DIR}/.gitmodules.github ${SDK_ROOT_DIR}/.gitmodules
|
||||
else
|
||||
if [[ "$LF_SUBMODULES_BY" = "gitee" ]];then
|
||||
cp ${SDK_ROOT_DIR}/.gitmodules.gitee ${SDK_ROOT_DIR}/.gitmodules
|
||||
else
|
||||
exit 0
|
||||
fi
|
||||
fi
|
||||
git submodule update --init --recursive
|
||||
fi
|
||||
|
||||
if echo $@|grep -wqE "help|-h"; then
|
||||
if [ -n "$2" -a "$(type -t usage$2)" == function ]; then
|
||||
echo "###Current Configure [ $2 ] Build Command###"
|
||||
|
|
|
|||
|
|
@ -61,6 +61,9 @@ export RK_PARTITION_FS_TYPE_CFG=rootfs@IGNORE@ext4,userdata@/userdata@ext4,oem@/
|
|||
# Target rootfs : ubuntu(only emmc)/buildroot/busybox
|
||||
export LF_TARGET_ROOTFS=ubuntu
|
||||
|
||||
# SUBMODULES : github/gitee
|
||||
export LF_SUBMODULES_BY=github
|
||||
|
||||
# Buildroot defconfig
|
||||
export RK_BUILDROOT_DEFCONFIG=luckfox_pico_defconfig
|
||||
|
||||
|
|
|
|||
|
|
@ -61,6 +61,9 @@ export RK_PARTITION_FS_TYPE_CFG=rootfs@IGNORE@ext4,userdata@/userdata@ext4,oem@/
|
|||
# Target rootfs : ubuntu(only emmc)/buildroot/busybox
|
||||
export LF_TARGET_ROOTFS=ubuntu
|
||||
|
||||
# SUBMODULES : github/gitee
|
||||
export LF_SUBMODULES_BY=github
|
||||
|
||||
# Buildroot defconfig
|
||||
export RK_BUILDROOT_DEFCONFIG=luckfox_pico_defconfig
|
||||
|
||||
|
|
|
|||
|
|
@ -61,6 +61,9 @@ export RK_PARTITION_FS_TYPE_CFG=rootfs@IGNORE@ext4,userdata@/userdata@ext4,oem@/
|
|||
# Target rootfs : ubuntu(only emmc)/buildroot/busybox
|
||||
export LF_TARGET_ROOTFS=ubuntu
|
||||
|
||||
# SUBMODULES : github/gitee
|
||||
export LF_SUBMODULES_BY=github
|
||||
|
||||
# Buildroot defconfig
|
||||
export RK_BUILDROOT_DEFCONFIG=luckfox_pico_defconfig
|
||||
|
||||
|
|
|
|||
|
|
@ -61,6 +61,9 @@ export RK_PARTITION_FS_TYPE_CFG=rootfs@IGNORE@ext4,userdata@/userdata@ext4,oem@/
|
|||
# Target rootfs : ubuntu(only emmc)/buildroot/busybox
|
||||
export LF_TARGET_ROOTFS=ubuntu
|
||||
|
||||
# SUBMODULES : github/gitee
|
||||
export LF_SUBMODULES_BY=github
|
||||
|
||||
# Buildroot defconfig
|
||||
export RK_BUILDROOT_DEFCONFIG=luckfox_pico_defconfig
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user