Commit c52e6b8a authored by yangjian's avatar yangjian

Update build_helper => oxgrf\asn1\simpe library

parent 534e0910
...@@ -274,17 +274,41 @@ check_install_oxgrf_driver() { ...@@ -274,17 +274,41 @@ check_install_oxgrf_driver() {
then then
echo_success "OXGRF driver has loaded." echo_success "OXGRF driver has loaded."
else else
git clone https://github.com/openxg-prog/oxgrf_driver /tmp/oxgrf_driver git clone -b ubuntu22.04 http://gitlab.openxg.org.cn/libraries/dma_ip_drivers.git /opt/dma_ip_drivers
if [ $? -ne 0 ]; then if [ $? -ne 0 ]; then
echo_fatal "OXGRF driver download failed, please check your net connection." echo_fatal "OXGRF driver download failed, please check your net connection."
else else
cd /tmp/oxgrf_driver/XDMA/linux-kernel/xdma cd /opt/dma_ip_drivers/XDMA/linux-kernel/xdma
make && $SUDO make install make
$SUDO tee "/etc/systemd/system/load_oxgrf.service" > /dev/null <<EOF
[Unit]
Description=Load OXGRF XDMA Driver
After=local-fs.target
[Service]
Type=oneshot
RemainAfterExit=yes
WorkingDirectory=/opt/dma_ip_drivers/XDMA/linux-kernel/tests
ExecStart=/opt/dma_ip_drivers/XDMA/linux-kernel/tests/load_driver.sh 4
User=root
[Install]
WantedBy=multi-user.target
EOF
if [ $? -eq 0 ]; then
$SUDO systemctl daemon-reload
$SUDO systemctl enable load_oxgrf
$SUDO systemctl start load_oxgrf
echo_success "load_oxgrf service installed and started."
else
echo_fatal "Failed to create load_oxgrf service file."
fi
echo_success "OXGRF driver install success, please restart your PC later." echo_success "OXGRF driver install success, please restart your PC later."
fi fi
fi fi
git clone -b 2505 https://github.com/openxg-prog/liboxgrf /tmp/liboxgrf git clone http://gitlab.openxg.org.cn/libraries/liboxgrf.git /tmp/liboxgrf
if [ $? -ne 0 ]; then if [ $? -ne 0 ]; then
echo_fatal "OXGRF API download failed, please check your net connection." echo_fatal "OXGRF API download failed, please check your net connection."
else else
...@@ -510,7 +534,7 @@ install_asn1c_from_source(){ ...@@ -510,7 +534,7 @@ install_asn1c_from_source(){
$SUDO $INSTALLER -y install bison flex $SUDO $INSTALLER -y install bison flex
$SUDO rm -rf /tmp/asn1c $SUDO rm -rf /tmp/asn1c
# GIT_SSL_NO_VERIFY=true git clone https://gitlab.eurecom.fr/oai/asn1c.git /tmp/asn1c # GIT_SSL_NO_VERIFY=true git clone https://gitlab.eurecom.fr/oai/asn1c.git /tmp/asn1c
git clone https://github.com/mouse07410/asn1c /tmp/asn1c git clone http://gitlab.openxg.org.cn/libraries/asn1c.git /tmp/asn1c
cd /tmp/asn1c cd /tmp/asn1c
#git checkout vlm_master #git checkout vlm_master
# hotfix: current vlm_master (5fa129cf3161da9ff2d67341e6277e818c0f5d6a) # hotfix: current vlm_master (5fa129cf3161da9ff2d67341e6277e818c0f5d6a)
...@@ -533,7 +557,7 @@ install_simde_from_source(){ ...@@ -533,7 +557,7 @@ install_simde_from_source(){
echo_info "\nInstalling SIMDE from source without test cases (header files only)" echo_info "\nInstalling SIMDE from source without test cases (header files only)"
cd /tmp cd /tmp
$SUDO rm -rf /tmp/simde $SUDO rm -rf /tmp/simde
git clone https://github.com/simd-everywhere/simde-no-tests.git /tmp/simde git clone http://gitlab.openxg.org.cn/libraries/simde.git /tmp/simde
cd /tmp/simde cd /tmp/simde
# we can specify a given version of SIMDE (sha-one or tag) # we can specify a given version of SIMDE (sha-one or tag)
if [[ -v SIMDE_VERSION ]]; then if [[ -v SIMDE_VERSION ]]; then
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment