Modification to be able to run after packaging.

This commit is contained in:
Jean-Paul Chaput 2012-05-03 17:25:32 +00:00
parent 67a7701d04
commit b5054a0023
2 changed files with 35 additions and 14 deletions

View File

@ -1,11 +1,31 @@
#!/bin/sh #!/bin/sh
for B in addaccu16 adder4 amd2901 amd2901-vasy digi divcas4 \ if [ -z "$ALLIANCE_TOP" ]; then
multi16b-reg multi4b multi8 multi8b pgcd sqrt32 sqrt8 \ ALLIANCE_TOP="${HOME}/alliance/Linux.slsoc6x/install"
mipsR3000 fi
do if [ "$ALLIANCE_TOP" != "/usr/lib/alliance" ]; then
if [ -d $B ] ALLIANCE_BIN=${ALLIANCE_TOP}/bin
then echo "----- BENCH $B ----- " CELLS_TOP=${ALLIANCE_TOP}/cells
(cd $B && make clean && make ALLIANCE_EXAMPLES=/dsk/l1/alliance/alliance/src/documentation/alliance-examples) else
fi ALLIANCE_BIN=/usr/bin
done CELLS_TOP=/usr/share/alliance/cells
fi
TARGET_LIB=${CELLS_TOP}/sxlib
export ALLIANCE_BIN CELLS_TOP TARGET_LIB
for B in addaccu16 adder4 amd2901 amd2901-vasy digi divcas4 \
multi16b-reg multi4b multi8 multi8b pgcd sqrt32 sqrt8 \
mipsR3000
do
if [ -d $B ]; then
echo "----- BENCH $B ----- "
(cd $B && \
make clean && \
make ALLIANCE_BIN=${ALLIANCE_BIN} \
CELLS_TOP=${CELLS_TOP} \
TARGET_LIB=${TARGET_LIB} \
ALLIANCE_EXAMPLES=/dsk/l1/alliance/alliance/src/documentation/alliance-examples \
)
fi
done

View File

@ -6,6 +6,7 @@
# Standart Alliance binary access paths. # Standart Alliance binary access paths.
ALLIANCE_BIN = $(ALLIANCE_TOP)/bin ALLIANCE_BIN = $(ALLIANCE_TOP)/bin
CELLS_TOP = $(ALLIANCE_TOP)/cells
ALLIANCE_EXAMPLES=/usr/share/doc/alliance-doc-5.0/alliance-examples ALLIANCE_EXAMPLES=/usr/share/doc/alliance-doc-5.0/alliance-examples
@ -34,12 +35,12 @@ ALLIANCE_EXAMPLES=/usr/share/doc/alliance-doc-5.0/alliance-examples
EXTRACT_PH = ap EXTRACT_PH = ap
GENERAT_SP = . GENERAT_SP = .
EXTRACT_SP = . EXTRACT_SP = .
CATA_LIB0 = $(ALLIANCE_TOP)/cells/sxlib CATA_LIB0 = $(CELLS_TOP)/sxlib
CATA_LIB1 = $(ALLIANCE_TOP)/cells/dp_sxlib CATA_LIB1 = $(CELLS_TOP)/dp_sxlib
CATA_LIB2 = $(ALLIANCE_TOP)/cells/padlib CATA_LIB2 = $(CELLS_TOP)/padlib
CATA_LIB3 = $(ALLIANCE_TOP)/cells/rflib CATA_LIB3 = $(CELLS_TOP)/rflib
CATA_LIB = .:$(CATA_LIB0):$(CATA_LIB1):$(CATA_LIB2):$(CATA_LIB3) CATA_LIB = .:$(CATA_LIB0):$(CATA_LIB1):$(CATA_LIB2):$(CATA_LIB3)
TARGET_LIB = $(ALLIANCE_TOP)/cells/sxlib TARGET_LIB = $(CELLS_TOP)/sxlib
FPGEN_LIB = $(CATA_LIB0):$(CATA_LIB1) FPGEN_LIB = $(CATA_LIB0):$(CATA_LIB1)
TECHNO_NAME = local-cmos TECHNO_NAME = local-cmos
CARAC_TECHNO_NAME = local-cmos-035 CARAC_TECHNO_NAME = local-cmos-035