Hey,
Running windows10, I cloned the repo, installed the latest sdcc and ran make all TARGET_CONTROLLER=bbs02 in src/firmware
Compiler details/version: SDCC : mcs51/z80/z180/r2k/r2ka/r3ka/sm83/tlcs90/ez80_z80/z80n/r800/ds390/pic16/pic14/TININative/ds400/hc08/s08/stm8/pdk13/pdk14/pdk15/mos6502/mos65c02/f8 TD- 4.5.2 #15411 (MINGW64)
Running
bbs-fw\src\firmware>make all TARGET_CONTROLLER=BBSHD
or
bbs-fw\src\firmware>make all TARGET_CONTROLLER=BBS02
Results in
Building bbs-fw for BBS02
sdcc -o bbsx/adc.rel -c -I./ -Ibbsx -Ddouble=float --std-c99 -DBBS02 -mmcs51 --model-large --xram-size 1792 bbsx/adc.c
bbsx/adc.c:9:10: fatal error: adc.h: No such file or directory
9 | #include "adc.h"
| ^~~~~~~
compilation terminated.
bbsx/adc.c:1: warning 190: ISO C forbids an empty translation unit
subprocess error 1
make: *** [Makefile:56: bbsx/adc.rel] Error 1
In the makefile the following line should include the current directory
INC_DIRS = -I./ $(addprefix -I, $(SUBDIRS))
but it does not seem to be working. I am not familiar with sdcc.
I tried changing to
INC_DIRS = -I. $(addprefix -I, $(SUBDIRS))
and that does seem to work.
From what I can tell UNAME is also not being set.
I see you have an upstream commit where you switched to CMAKE so I suppose you might not want to fix this issue. Nevertheless it may be useful for someone else trying to compile current master branch.
PS: I have a BBS02 and I am looking into making this firmware stable for it.
Hey,
Running windows10, I cloned the repo, installed the latest sdcc and ran make all TARGET_CONTROLLER=bbs02 in src/firmware
Running
Results in
Building bbs-fw for BBS02
In the makefile the following line should include the current directory
INC_DIRS = -I./ $(addprefix -I, $(SUBDIRS))but it does not seem to be working. I am not familiar with sdcc.
I tried changing to
INC_DIRS = -I. $(addprefix -I, $(SUBDIRS))and that does seem to work.
From what I can tell UNAME is also not being set.
I see you have an upstream commit where you switched to CMAKE so I suppose you might not want to fix this issue. Nevertheless it may be useful for someone else trying to compile current master branch.
PS: I have a BBS02 and I am looking into making this firmware stable for it.