chore 📦: Improve build process for Sdcc compiler
- Improved build process for Sdcc compiler. - This commit changes the compiler flags in the Makefile to correctly specify the microcontroller family for the SDCC compiler.
This commit is contained in:
@@ -56,7 +56,7 @@ jobs:
|
||||
# Set CFLAGS to disable treating warnings as errors
|
||||
export CFLAGS="$CFLAGS -Wno-error"
|
||||
# ./configure --target=8051 --with-arch=8051 --prefix=/usr/local
|
||||
./configure --disable-gbz80-port --disable-z80-port --disable-ds390-port --disable-ds400-port --disable-pic14-port --disable-pic16-port --disable-hc08-port --disable-r2k-port --disable-z180-port --disable-sdcdb --disable-ucsim --prefix=/usr/local
|
||||
./configure --disable-gbz80-port --disable-z80-port --disable-ds390-port --disable-ds400-port --disable-pic14-port --disable-pic16-port --disable-hc08-port --disable-r2k-port --disable-z180-port --disable-sdcdb --disable-ucsim --target=8051 --with-arch=8051 --prefix=/usr/local
|
||||
|
||||
make
|
||||
sudo make install
|
||||
|
||||
2
Makefile
2
Makefile
@@ -8,7 +8,7 @@ INCLUDE_DIRS = -I$(ZSTACK_DIR)
|
||||
|
||||
# Compiler settings
|
||||
CC = sdcc # sdcc compiler
|
||||
CFLAGS = -mmc51 $(INCLUDE_DIRS) # add include paths to compiler flags
|
||||
CFLAGS = -mcs51 $(INCLUDE_DIRS) # add include paths to compiler flags
|
||||
|
||||
SRC=$(wildcard *.c)
|
||||
HEADERS = main.h zigbee_comm.h sensors/bme280.h sensors/wind_vane.h sensors/rain_gauge.h sensors/anemometer.h config.h include/hal_types.h include/hal_defs.h include/hal_timer.h include/ZComDef.h include/OSAL.h include/i2c.h
|
||||
|
||||
Reference in New Issue
Block a user