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

Subversion Repositories ao486

[/] [ao486/] [trunk/] [syn/] [components/] [ps2/] [software/] [exe_bsp/] [create-this-bsp] - Blame information for rev 2

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 2 alfik
#!/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=../../soc.sopcinfo
9
NIOS2_BSP_ARGS=""
10
CPU_NAME=
11
 
12
 
13
# Don't run make if create-this-app script is called with --no-make arg
14
SKIP_MAKE=
15
while [ $# -gt 0 ]
16
do
17
  case "$1" in
18
                --no-make)
19
                SKIP_MAKE=1
20
                ;;
21
                *)
22
                        NIOS2_BSP_ARGS="$NIOS2_BSP_ARGS $1"
23
                        ;;
24
  esac
25
  shift
26
done
27
 
28
 
29
# Run nios2-bsp utility to create a hal BSP in this directory
30
# for the system with a .sopc file in $SOPC_FILE.
31
# Deprecating $SOPC_DIR in 10.1. Multiple .sopcinfo files in a directory may exist.
32
 
33
if [ -z "$SOPC_FILE" ]; then
34
        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."
35
        cmd="nios2-bsp $BSP_TYPE $BSP_DIR $SOPC_DIR $NIOS2_BSP_ARGS $CPU_NAME"
36
else
37
        cmd="nios2-bsp $BSP_TYPE $BSP_DIR $SOPC_FILE $NIOS2_BSP_ARGS $CPU_NAME"
38
fi
39
 
40
 
41
echo "create-this-bsp: Running \"$cmd\""
42
$cmd || {
43
    echo "$cmd failed"
44
    exit 1
45
}
46
if [ -z "$SKIP_MAKE" ]; then
47
        echo "create-this-bsp: Running make"
48
        make
49
fi

powered by: WebSVN 2.1.0

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