FreeCalypso > hg > fc-magnetite
comparison scripts/config-headers.sh @ 144:fd8227e3047d
config headers overhaul
| author | Mychaela Falconia <falcon@freecalypso.org> |
|---|---|
| date | Sun, 09 Oct 2016 05:53:14 +0000 |
| parents | 86e83045be37 |
| children | 92dbfa906f66 |
comparison
equal
deleted
inserted
replaced
| 143:1fd7359da77a | 144:fd8227e3047d |
|---|---|
| 1 #!/bin/sh | 1 #!/bin/sh |
| 2 | 2 |
| 3 if [ $# != 1 ] | 3 if [ $# != 2 ] |
| 4 then | 4 then |
| 5 echo "usage: $0 config-flavor" 1>&2 | 5 echo "usage: $0 srvc-flavor rv-swe-flavor" 1>&2 |
| 6 exit 1 | 6 exit 1 |
| 7 fi | 7 fi |
| 8 | 8 |
| 9 if [ -z "$TARGET" ] | 9 if [ -z "$TARGET" ] |
| 10 then | 10 then |
| 19 fi | 19 fi |
| 20 | 20 |
| 21 set -e | 21 set -e |
| 22 | 22 |
| 23 rm -rf $BUILD_DIR/config | 23 rm -rf $BUILD_DIR/config |
| 24 cp -r cfg-headers/$1 $BUILD_DIR/config | 24 cp -r cfg-headers/base $BUILD_DIR/config |
| 25 cp cfg-headers/$1/* $BUILD_DIR/config | |
| 26 cp cfg-headers/rv_swe-$2.h $BUILD_DIR/config/rv_swe.h | |
| 25 cp targets/$TARGET.h $BUILD_DIR/config/fc-target.cfg | 27 cp targets/$TARGET.h $BUILD_DIR/config/fc-target.cfg |
