Skip to content

Commit

Permalink
Merge pull request LinuxCNC#741 from jepler/master-actions
Browse files Browse the repository at this point in the history
master branch: make actions build pass
  • Loading branch information
jepler authored Apr 17, 2020
2 parents 8e47d56 + 677f490 commit 883d59a
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 27 deletions.
4 changes: 2 additions & 2 deletions scripts/travis-build-test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
cd src
./autogen.sh
./configure --with-realtime=uspace --disable-check-runtime-deps --enable-build-documentation
make -j2 # cores: ~2, bursted
../scripts/rip-environment runtests -v
make -O -j$(nproc)
../scripts/rip-environment runtests
4 changes: 3 additions & 1 deletion scripts/travis-install-build-deps.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
#!/bin/sh -e
sudo sh -c 'echo deb-src http://us.archive.ubuntu.com/ubuntu/ xenial main universe >> /etc/apt/sources.list'
grep . /etc/apt/sources.list /etc/apt/sources.list.d/*
sudo apt-get update -qq
sudo apt-get install -y devscripts equivs build-essential --no-install-recommends
sudo apt-get remove -f libreadline6-dev || true
sudo apt-get remove -f libreadline-dev || true
debian/configure uspace
debian/configure uspace noauto
mk-build-deps -i -r -s sudo -t 'apt-get --no-install-recommends --no-install-suggests'
2 changes: 1 addition & 1 deletion src/hal/user_comps/Submakefile
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ USERSRCS += $(XHC_HB04_SRC)
$(call TOOBJSDEPS, $(XHC_HB04_SRC)) : EXTRAFLAGS += $(LIBUSB10_CFLAGS)
../bin/xhc-hb04: $(call TOOBJS, $(XHC_HB04_SRC)) ../lib/liblinuxcnchal.so.0 ../lib/liblinuxcncini.so.0
$(ECHO) Linking $(notdir $@)
$(Q)$(CC) $(LDFLAGS) -o $@ $^ -lm -lstdc++ $(LIBUSB10_LIBS)
$(Q)$(CXX) $(LDFLAGS) -o $@ $^ -lm $(LIBUSB10_LIBS)
TARGETS += ../bin/xhc-hb04
endif # HAVE_LIBUSB10

Expand Down
25 changes: 2 additions & 23 deletions src/hal/user_comps/xhc-whb04b-6/Submakefile
Original file line number Diff line number Diff line change
Expand Up @@ -10,35 +10,14 @@ XHC_WHB04B6_SRC = hal/user_comps/xhc-whb04b-6/hal.cc \

XHC_WHB04B6_DEBUG = -g -funwind-tables
XHC_WHB04B6_CFLAGS += $(LIBUSB10_CFLAGS) $(XHC_WHB04B6_DEBUG) -Wall
XHC_WHB04B6_LIBS = -lstdc++ $(LIBUSB10_LIBS) $(PROTOBUF_LIBS)
XHC_WHB04B6_LIBS = -lm -lstdc++ $(LIBUSB10_LIBS)
XHC_WHB04B6_LIBS = -lm $(LIBUSB10_LIBS)

$(call TOOBJSDEPS, $(XHC_WHB04B6_SRC)) : EXTRAFLAGS += $(XHC_WHB04B6_CFLAGS)

xhc-whb04b6.o xhc-whb04b6.d : xhc-whb04b6.c xhc-whb04b6.h $(XHC_WHB04B6_LIB_DEPENDENCIES)
$(ECHO) Linking $(notdir $@)
$(Q)$(CC) $(LDFLAGS) $(XHC_WHB04B6_LIBS) -o $@ $^

pendant-types.o pendant-types.d : pendant-types.c pendant-types.h $(XHC_WHB04B6_LIB_DEPENDENCIES)
$(ECHO) Linking $(notdir $@)
$(Q)$(CC) $(LDFLAGS) $(XHC_WHB04B6_LIBS) -o $@ $^

pendant.o pendant.d : pendant.c pendant.h $(XHC_WHB04B6_LIB_DEPENDENCIES)
$(ECHO) Linking $(notdir $@)
$(Q)$(CC) $(LDFLAGS) $(XHC_WHB04B6_LIBS) -o $@ $^

hal.o hal.d : hal.c hal.h $(XHC_WHB04B6_LIB_DEPENDENCIES)
$(ECHO) Linking $(notdir $@)
$(Q)$(CC) $(LDFLAGS) $(XHC_WHB04B6_LIBS) -o $@ $^

usb.o usb.d : usb.c usb.h $(XHC_WHB04B6_LIB_DEPENDENCIES)
$(ECHO) Linking $(notdir $@)
$(Q)$(CC) $(LDFLAGS) $(XHC_WHB04B6_LIBS) -o $@ $^

USERSRCS += $(XHC_WHB04B6_SRC)
../bin/xhc-whb04b-6 xhc-whb04b-6.d : $(call TOOBJS, $(XHC_WHB04B6_SRC)) $(XHC_WHB04B6_LIB_DEPENDENCIES)
$(ECHO) Linking $(notdir $@)
$(Q)$(CC) $(LDFLAGS) $(XHC_WHB04B6_LIBS) -o $@ $^
$(Q)$(CXX) $(LDFLAGS) -o $@ $^ $(XHC_WHB04B6_LIBS)

TARGETS += ../bin/xhc-whb04b-6

Expand Down

0 comments on commit 883d59a

Please sign in to comment.