Commit b72f7934 authored by yoogx's avatar yoogx

* Change call to asn1.exe

        For openaadl/ocarina#115
parent 65d60f3a
......@@ -130,7 +130,7 @@ endif
ifeq ($(USE_ASN1_DEPLOYMENT), yes)
generate-asn1-deployment:
if [ ! -d ../asn-types ]; then mkdir -p ../asn-types ; fi
asn1.exe -c -uPER $(ASN_SOURCES) -o ../asn-types
mono $(which asn1.exe) -c -uPER $(ASN_SOURCES) -o ../asn-types
for f in real.o asn1crt.o acn.o ber.o xer.o; do \
c_file="`basename $$f .o`.c"; \
$(CC) $(INCLUDE) $(CFLAGS) -c -o $$f ../asn-types/$$c_file || exit 1 ; \
......
......@@ -14,7 +14,7 @@ ASN_FILES = $(srcdir)/1553.asn \
csrc = ${shell $(CYGPATH_U) '$(OCARINA_RUNTIME)/polyorb-hi-c/src/drivers/configuration'}
$(srcdir)/1553.c:
asn1.exe -c -typePrefix __po_hi_c_ 1553.asn
mono $(which asn1.exe) -c -typePrefix __po_hi_c_ 1553.asn
sed -e 's/Mil\_1553\_Conf\_T/mil\_1553\_conf\_t/g' 1553.h > 1553new.h
mv 1553new.h 1553.h
echo "#if (defined (__PO_HI_NEED_DRIVER_1553_RASTA))\n" > 1553new.c
......@@ -25,7 +25,7 @@ $(srcdir)/1553.c:
mv asn1crt.h ../../../include/drivers/configuration/
$(srcdir)/spacewire.c:
asn1.exe -c -typePrefix __po_hi_c_ spacewire.asn
mono $(which asn1.exe) -c -typePrefix __po_hi_c_ spacewire.asn
sed -e 's/Spacewire\_Conf\_T/spacewire\_conf\_t/g' spacewire.h > spacewirenew.h
mv spacewirenew.h spacewire.h
echo "#if (defined (__PO_HI_NEED_DRIVER_SPACEWIRE_RASTA))\n" > spacewirenew.c
......@@ -36,7 +36,7 @@ $(srcdir)/spacewire.c:
mv asn1crt.h ../../../include/drivers/configuration/
$(srcdir)/ip.c:
asn1.exe -c -typePrefix __po_hi_c_ ip.asn
mono $(which asn1.exe) -c -typePrefix __po_hi_c_ ip.asn
mv asn1crt.h ../../../include/drivers/configuration/
sed -e 's/IP\_Conf\_T/ip\_conf\_t/g' ip.h > ipnew.h
mv ipnew.h ip.h
......@@ -47,7 +47,7 @@ $(srcdir)/ip.c:
mv ip.h ../../../include/drivers/configuration/
$(srcdir)/serial.c:
asn1.exe -c -typePrefix __po_hi_c_ serial.asn
mono $(which asn1.exe) -c -typePrefix __po_hi_c_ serial.asn
sed -e 's/Serial\_Conf\_T/serial\_conf\_t/g' serial.h > serialnew.h
mv serialnew.h serial.h
echo "#if (defined (__PO_HI_NEED_DRIVER_SERIAL_LINUX) || defined (__PO_HI_NEED_DRIVER_SERIAL_LINUX_RECEIVER) || defined (__PO_HI_NEED_DRIVER_SERIAL_LINUX_SENDER) || defined (__PO_HI_NEED_DRIVER_SERIAL_RASTA) || defined (__PO_HI_NEED_DRIVER_SERIAL_LEON) || defined (__PO_HI_NEED_DRIVER_SERIAL_LEON_SENDER) || defined (__PO_HI_NEED_DRIVER_SERIAL_LEON_RECEIVER))\n" > serialnew.c
......
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