Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions docs/dev-env.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ the [SDCC manual] for more information.

Version 4.0.0 or newer should be used.

**Note**: Fedora installs SDCC binaries to a non-standard location. Ensure that
`PATH` includes `/usr/libexec/sdcc`.
**Note**: Fedora installs SDCC binaries with a prefix. Ensure that
`SDCC_PREFIX=sdcc-` is set when building.


[EditorConfig]: https://editorconfig.org/
Expand Down
5 changes: 4 additions & 1 deletion src/arch/8051/toolchain.mk
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
# SPDX-License-Identifier: GPL-3.0-only

CC = sdcc -mmcs51 -MMD --model-large --code-size $(CODE_SIZE) --xram-size $(SRAM_SIZE) --Werror
# XXX: On Fedora, SDCC programs have the `sdcc-` prefix.
SDCC_PREFIX ?=
SDCC = $(SDCC_PREFIX)sdcc
CC = $(SDCC) -mmcs51 -MMD --model-large --code-size $(CODE_SIZE) --xram-size $(SRAM_SIZE) --Werror

AS = sdas8051
ASFLAGS = -plosgff
Expand Down
2 changes: 1 addition & 1 deletion src/board/system76/common/flash/flash.mk
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ FLASH_SRC += $(foreach src, $(flash-y), $(FLASH_DIR)/$(src))
FLASH_BUILD=$(BUILD)/flash
FLASH_OBJ=$(sort $(patsubst src/%.c,$(FLASH_BUILD)/%.rel,$(FLASH_SRC)))
FLASH_CC=\
sdcc \
$(SDCC) \
-mmcs51 \
-MMD \
--model-large \
Expand Down
2 changes: 1 addition & 1 deletion src/board/system76/common/scratch/scratch.mk
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ SCRATCH_SRC += $(foreach src, $(scratch-y), $(SCRATCH_DIR)/$(src))
SCRATCH_BUILD=$(BUILD)/scratch
SCRATCH_OBJ=$(sort $(patsubst src/%.c,$(SCRATCH_BUILD)/%.rel,$(SCRATCH_SRC)))
SCRATCH_CC=\
sdcc \
$(SDCC) \
-mmcs51 \
-MMD \
--model-small \
Expand Down
Loading