Merge common EC directories
Split the EC define into base and variant. Merge the 3 ATmega chips as atmega, and the 2 ITE chips as ite. Tested that the generated files are identical. Signed-off-by: Tim Crawford <tcrawford@system76.com>
This commit is contained in:
committed by
Tim Crawford
parent
01885609e8
commit
69f97fe149
@@ -1,12 +1,12 @@
|
||||
# SPDX-License-Identifier: GPL-3.0-only
|
||||
|
||||
CC=avr-gcc -mmcu=$(EC)
|
||||
CC=avr-gcc -mmcu=$(EC_VARIANT)
|
||||
CFLAGS+=-Os -fstack-usage -Wall -Werror -Wl,--gc-sections -Wl,-u,vfprintf -lprintf_flt
|
||||
OBJ=$(sort $(patsubst src/%.c,$(BUILD)/%.o,$(SRC)))
|
||||
|
||||
# Run EC rom in simulator
|
||||
sim: $(BUILD)/ec.elf
|
||||
simavr $< --mcu $(EC)
|
||||
simavr $< --mcu $(EC_VARIANT)
|
||||
|
||||
# Convert from Intel Hex file to binary file
|
||||
$(BUILD)/ec.rom: $(BUILD)/ec.ihx
|
||||
|
Reference in New Issue
Block a user