OpenCores
URL https://opencores.org/ocsvn/openmsp430/openmsp430/trunk

Subversion Repositories openmsp430

[/] [openmsp430/] [trunk/] [fpga/] [altera_de0_nano_soc/] [doc/] [Terasic/] [DE0_NANO_SOC/] [Demonstrations/] [FPGA/] [DE0_NANO_SOC_ADC/] [software/] [DE0_NANO_SOC_ADC_bsp/] [create-this-bsp] - Blame information for rev 221

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 221 olivier.gi
#!/bin/bash
2
#
3
# This script creates the ucosii_net_zipfs Board Support Package (BSP).
4
 
5
BSP_TYPE=hal
6
BSP_DIR=.
7
SOPC_DIR=../../
8
SOPC_FILE=../../DE0_NANO_SOC_QSYS.sopcinfo
9
NIOS2_BSP_ARGS=""
10
CPU_NAME=
11
 
12
if [ -n "$CPU_NAME" ]; then
13
  NIOS2_BSP_ARGS="$NIOS2_BSP_ARGS --cpu-name $CPU_NAME"
14
fi
15
 
16
# Don't run make if create-this-app script is called with --no-make arg
17
SKIP_MAKE=
18
while [ $# -gt 0 ]
19
do
20
  case "$1" in
21
                --no-make)
22
                SKIP_MAKE=1
23
                ;;
24
                *)
25
                        NIOS2_BSP_ARGS="$NIOS2_BSP_ARGS $1"
26
                        ;;
27
  esac
28
  shift
29
done
30
 
31
 
32
# Run nios2-bsp utility to create a hal BSP in this directory
33
# for the system with a .sopc file in $SOPC_FILE.
34
# Deprecating $SOPC_DIR in 10.1. Multiple .sopcinfo files in a directory may exist.
35
 
36
if [ -z "$SOPC_FILE" ]; then
37
        echo "WARNING: Use of a directory for locating a .sopcinfo file is deprecated in 10.1. Multiple .sopcinfo files may exist. You must specify the full .sopcinfo path."
38
        cmd="nios2-bsp $BSP_TYPE $BSP_DIR $SOPC_DIR $NIOS2_BSP_ARGS"
39
else
40
        cmd="nios2-bsp $BSP_TYPE $BSP_DIR $SOPC_FILE $NIOS2_BSP_ARGS"
41
fi
42
 
43
 
44
echo "create-this-bsp: Running \"$cmd\""
45
$cmd || {
46
    echo "$cmd failed"
47
    exit 1
48
}
49
if [ -z "$SKIP_MAKE" ]; then
50
        echo "create-this-bsp: Running make"
51
        make
52
fi

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.