Skip to content

Commit

Permalink
Fix Containerfile.
Browse files Browse the repository at this point in the history
  • Loading branch information
anmaped committed Apr 23, 2024
1 parent 8c95bc3 commit 19e45c3
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 17 deletions.
23 changes: 12 additions & 11 deletions Containerfile
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,18 @@ COPY examples /rtmlib/examples
COPY src /rtmlib/src
COPY tests /rtmlib/tests


# install extra dependencies to build NuttX (examples included)
RUN apt install -y \
kconfig-frontends \
genromfs \
xxd

#
# make examples
#
RUN cd /rtmlib/examples && make

#
# make and run rtmlib tests (x86)
#
Expand Down Expand Up @@ -157,12 +169,6 @@ RUN qemu-system-riscv64 -M virt -cpu rv64 -m 512M -smp 2 -monitor none -nographi

# with NuttX

# install extra dependencies to build NuttX
RUN apt install -y \
kconfig-frontends \
genromfs \
xxd

# configure and build config.h
RUN cd /rtmlib/thirdparty/nuttx \
&& ./tools/configure.sh -a ../nuttx-apps rv-virt:nsh64 \
Expand Down Expand Up @@ -192,8 +198,3 @@ RUN cd /rtmlib/thirdparty/nuttx \
EXTRA_OBJS="/rtmlib/tests/build/riscv-nuttx/rtmlib_unittests.o"

RUN qemu-system-riscv64 -semihosting -M virt -cpu rv64 -bios none -kernel /rtmlib/thirdparty/nuttx/nuttx -nographic

#
# make examples
#
RUN cd /rtmlib/examples && make
2 changes: 1 addition & 1 deletion TODO.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ rtmlib2:
- [ ] implement riscv clockgettime macro (without OS)
- [x] implement and automate riscv NuttX unittests (included in Containerfile)
- [x] implement automated NuttX unit tests for QEMU environment
- [ ] find the bug in rtmlib (see debug files; perf also provoque it, and not just qemu; sounds that the problem is with syncronization)
- [x] find the bug in rtmlib (see debug files; perf also provoque it, and not just qemu; sounds that the problem is with syncronization)
- [ ] test a trace with repetitive values (current unittests formulas fail)
- [ ] test a trace that overlaps (current unittests formulas fail)
- [x] remove travis-ci and replace it with github actions
Expand Down
2 changes: 1 addition & 1 deletion src/circularbuffer.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
#include <cstring>
#define MEMCPY(x, y, z) std::memcpy(x, y, z)
#else
#error "There is not memcpy implementation!"
#warning "There is not memcpy implementation!"
#endif

/**
Expand Down
2 changes: 1 addition & 1 deletion src/reader.h
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ typename RTML_reader<B>::gap_error_t RTML_reader<B>::synchronize() {
return GAP; // INIT SYNC
} else {
// this case should not happen anymore
DEBUGV("## unknown gap ## t == b && !(top == 0 && bottom == 0)\n");
DEBUGV_ERROR("## unknown gap ## t == b && !(top == 0 && bottom == 0)\n");
return UNKNOWN_GAP;
}
}
Expand Down
4 changes: 2 additions & 2 deletions src/writer.h
Original file line number Diff line number Diff line change
Expand Up @@ -111,10 +111,10 @@ typename B::error_t RTML_writer<B>::push(typename B::event_t &event) {
increment_writer_bottom(stateref->bottom);

err = (p) ? buffer.BUFFER_OVERFLOW : buffer.OK;

buffer.write(event, top);
});

buffer.write(event, top);

#endif

return err;
Expand Down
2 changes: 1 addition & 1 deletion tests/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ MAIN_EPILOGUE:=
EPILOGUE:=

# Debug Flags
DEBUGFLAGS= -DRTMLIB_ENABLE_DEBUG_RMTLD3 -DRTMLIB_ENABLE_DEBUGV_RMTLD3 -DRTMLIB_DEBUG=3
#DEBUGFLAGS= -DRTMLIB_ENABLE_DEBUG_RMTLD3 -DRTMLIB_ENABLE_DEBUGV_RMTLD3 #-DRTMLIB_DEBUG=3

ifneq (,$(filter x$(ARCH),x xx86 xx86_64))

Expand Down

0 comments on commit 19e45c3

Please sign in to comment.