Skip to content

Commit 3a919d1

Browse files
committed
rtai: fix includes for build to succeed
1 parent 69b1f80 commit 3a919d1

File tree

6 files changed

+10
-10
lines changed

6 files changed

+10
-10
lines changed

src/Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@ $(shell $(VECHO) 1>&2 Done reading dependencies)
245245
endif
246246

247247
# Each directory in $(INCLUDES) is passed as a -I directory when compiling.
248-
INCLUDE := $(patsubst %,-I%, $(INCLUDES)) -I$(RTDIR)/../include
248+
INCLUDE := $(patsubst %,-I%, $(INCLUDES)) -I$(RTDIR)/include -I../include
249249
INCLUDE += $(PYTHON_CPPFLAGS)
250250
INCLUDE += $(LIBTIRPC_CFLAGS)
251251

@@ -854,7 +854,7 @@ endif
854854
# that's what kbuild seems to require
855855

856856
EXTRA_CFLAGS := $(filter-out -ffast-math,$(RTFLAGS)) -D__MODULE__ \
857-
-I$(BASEPWD)/../include \
857+
-I$(BASEPWD)/../include -I$(BASEPWD) \
858858
-DSEQUENTIAL_SUPPORT -DHAL_SUPPORT -DDYNAMIC_PLCSIZE -DRT_SUPPORT -DOLD_TIMERS_MONOS_SUPPORT -DMODBUS_IO_MASTER \
859859
-fno-fast-math $(call cc-option,-mieee-fp) -fno-unsafe-math-optimizations \
860860
-Wno-declaration-after-statement \

src/configure.ac

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -189,14 +189,14 @@ AC_ARG_ENABLE(toolnml,
189189

190190
#at this point if RTS is empty, we need to find RT ourselves
191191
AC_MSG_CHECKING([for rtai-config])
192-
if test -z "$RTS"; then
192+
if test -z "$RTS" || test "$RTS" = uspace; then
193193
DIRS="/usr/realtime-`uname -r` /usr/realtime /usr/realtime* /usr /usr/src/rtai*"
194194
else
195195
DIRS="$RTS"
196196
fi
197-
RTAI_CONFIG=none
198-
for location in $DIRS; do
199-
for subdir in . scripts bin; do
197+
RTAI_CONFIG=none
198+
for location in $DIRS; do
199+
for subdir in . scripts bin; do
200200
for signature in rtai; do
201201
candidate=$location/$subdir/$signature-config
202202
if test "$RTAI_CONFIG" = "none" -a -x $candidate; then

src/emc/motion/motion.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ to another.
6060
#ifndef MOTION_H
6161
#define MOTION_H
6262

63-
#include <stdint.h>
63+
#include <rtapi_stdint.h>
6464
#include <stdarg.h>
6565

6666
#include <rtapi_bool.h>

src/hal/components/mesa_pktgyro_test.comp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ Check linuxcnc.log for debug output.
4747
author "Boris Skegin";
4848
license "GPL";
4949

50-
include "hal/drivers/mesa-hostmot2/hostmot2-serial.h";
50+
include <hostmot2-serial.h>;
5151
include "hal/drivers/mesa-hostmot2/hostmot2.h";
5252

5353

src/hal/drivers/pluto_common.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
#include <asm/io.h>
2222
#endif
2323

24-
#include "hal_parport.h"
24+
#include "hal/hal_parport.h"
2525

2626
int ioaddr = 0x378;
2727
int ioaddr_hi = 0;

src/hal/drivers/pluto_step.comp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ see_also """The \\fIpluto_step\\fR section in the HAL User Manual, which shows t
143143

144144
license "GPL";
145145
include <rtapi_math.h>;
146-
include "pluto_common.h";
146+
include "hal/drivers/pluto_common.h";
147147
;;
148148

149149
static int speedrange=0;

0 commit comments

Comments
 (0)