feat : Modified SDCC build configuration to enable additional models.

- Modified SDCC build configuration to enable additional models.
This commit is contained in:
2025-02-23 11:04:09 +01:00
parent 1a7ca4e82f
commit 3c3af1ba04

View File

@@ -35,10 +35,27 @@ jobs:
# svn co -r [rev] svn://svn.code.sf.net/p/sdcc/code/trunk/sdcc
svn co -r 9092 svn://svn.code.sf.net/p/sdcc/code/trunk/sdcc
- name: Modify incl.mk and Makefile.in
run: |
# Modify sdcc/device/lib/incl.mk to add the "huge" model
sed -i 's/MODELS = small medium large/MODELS = small large huge/' sdcc/device/lib/incl.mk
# Modify sdcc/device/lib/Makefile.in to add the "model-mcs51-stack-auto" target
sed -i 's/TARGETS += models small-mcs51-stack-auto/TARGETS += models model-mcs51-stack-auto/' sdcc/device/lib/Makefile.in
# - name: Fix config.sub and config.guess for 8051
# run: |
# # Download config.sub and config.guess from a working version of the tools
# wget https://git.savannah.gnu.org/cgit/config.git/plain/config.sub -O sdcc/config.sub
# wget https://git.savannah.gnu.org/cgit/config.git/plain/config.guess -O sdcc/config.guess
- name: Build SDCC
run: |
cd sdcc
./configure --target=8051 --with-arch=8051 --prefix=/usr/local
# ./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
make
sudo make install