equal
deleted
inserted
replaced
51 US_TO_TIMEVAL_FACTOR= |
51 US_TO_TIMEVAL_FACTOR= |
52 TIMEVAL= |
52 TIMEVAL= |
53 TIMEVAL_MAX= |
53 TIMEVAL_MAX= |
54 |
54 |
55 # Default to little-endian |
55 # Default to little-endian |
56 CANOPEN_LITTLE_ENDIAN=1 |
|
57 CANOPEN_BIG_ENDIAN= |
56 CANOPEN_BIG_ENDIAN= |
58 |
57 |
59 ########################################################################### |
58 ########################################################################### |
60 # DEFAULT BUILD OPTIONS # |
59 # DEFAULT BUILD OPTIONS # |
61 ########################################################################### |
60 ########################################################################### |
319 # Only if we are on x86_64 and using gcc |
318 # Only if we are on x86_64 and using gcc |
320 # For shared library generation, it needs this |
319 # For shared library generation, it needs this |
321 SUB_PROG_CFLAGS=-fPIC |
320 SUB_PROG_CFLAGS=-fPIC |
322 fi |
321 fi |
323 |
322 |
|
323 if [ "$SUB_ARCH_NAME" = "ppc" -o "$SUB_ARCH_NAME" = "powerpc" ]; then |
|
324 # PowerPC uses big endian format |
|
325 CANOPEN_BIG_ENDIAN=1 |
|
326 fi |
|
327 |
324 ########################################################################### |
328 ########################################################################### |
325 # DEFAULT TARGET/DRIVERS GUESSING # |
329 # DEFAULT TARGET/DRIVERS GUESSING # |
326 ########################################################################### |
330 ########################################################################### |
327 # If target not specified, try to gess one |
331 # If target not specified, try to gess one |
328 if [ "$SUB_TARGET" = "" ]; then |
332 if [ "$SUB_TARGET" = "" ]; then |
518 |
522 |
519 ########################################################################### |
523 ########################################################################### |
520 # CANFESTIVAL DEFINES --> config.h # |
524 # CANFESTIVAL DEFINES --> config.h # |
521 ########################################################################### |
525 ########################################################################### |
522 # Some CONSTANTS preparation |
526 # Some CONSTANTS preparation |
523 if [ "$CANOPEN_BIG_ENDIAN" = "" ]; then |
|
524 CANOPEN_LITTLE_ENDIAN=1 |
|
525 else |
|
526 CANOPEN_LITTLE_ENDIAN= |
|
527 fi |
|
528 |
527 |
529 # Create include/config.h with the relevant contents |
528 # Create include/config.h with the relevant contents |
530 rm -f include/config.h |
529 rm -f include/config.h |
531 echo "/* !!!!!!!!!! FILE GENERATED by configure. DO NOT EDIT !!!!!!!!!!*/" >> include/config.h |
530 echo "/* !!!!!!!!!! FILE GENERATED by configure. DO NOT EDIT !!!!!!!!!!*/" >> include/config.h |
532 echo "" >> include/config.h |
531 echo "" >> include/config.h |
560 SDO_MAX_SIMULTANEOUS_TRANSFERTS\ |
559 SDO_MAX_SIMULTANEOUS_TRANSFERTS\ |
561 NMT_MAX_NODE_ID\ |
560 NMT_MAX_NODE_ID\ |
562 SDO_TIMEOUT_MS\ |
561 SDO_TIMEOUT_MS\ |
563 MAX_NB_TIMER\ |
562 MAX_NB_TIMER\ |
564 CANOPEN_BIG_ENDIAN\ |
563 CANOPEN_BIG_ENDIAN\ |
565 CANOPEN_LITTLE_ENDIAN\ |
|
566 US_TO_TIMEVAL_FACTOR\ |
564 US_TO_TIMEVAL_FACTOR\ |
567 TIMEVAL\ |
565 TIMEVAL\ |
568 TIMEVAL_MAX\ |
566 TIMEVAL_MAX\ |
569 RTCAN_SOCKET; do |
567 RTCAN_SOCKET; do |
570 if [ "${!i}" = "" ]; then |
568 if [ "${!i}" = "" ]; then |