<commit_before>include ../include/generated/variables.mak
include $(SOC_DIRECTORY)/software/common.mak

BUILD_DIRECTORY=$(BUILDINC_DIRECTORY)/../../

OBJECTS=isr.o \
		ethernet.o \
		etherbone.o \
		telnet.o \
		mdio.o \
		config.o \
		processor.o \
		hdmi_in0.o \
		hdmi_in1.o \
		hdmi_out0.o \
		hdmi_out1.o \
		pattern.o \
		edid.o \
		pll.o \
		ci.o \
		encoder.o \
		i2c.o \
		main.o \
		stdio_wrap.o \

CFLAGS += \
	-I. \
	-I$(LIBUIP_DIRECTORY)/../uip \
	-I$(LIBUIP_DIRECTORY)

all: firmware.bin

# pull in dependency info for *existing* .o files
-include $(OBJECTS:.o=.d)

%.bin: %.elf
	$(OBJCOPY) -O binary $< $@
	chmod -x $@
	cp $@ $(BUILD_DIRECTORY)/software/boot.bin

firmware.elf: $(OBJECTS)
	$(LD) $(LDFLAGS) \
		-T $(FIRMWARE_DIRECTORY)/linker.ld \
		-N -o $@ \
                ../libbase/crt0-$(CPU).o \
                $(OBJECTS) \
                -L../libnet \
                -L../libbase \
                -L../libcompiler_rt \
		-L../libuip \
		-lbase-nofloat -luip -lcompiler_rt
	chmod -x $@

%.o: $(FIRMWARE_DIRECTORY)/%.c
	$(compile)

%.o: $(FIRMWARE_DIRECTORY)/%.S
	$(assemble)

load: firmware.bin
	litex_term --kernel firmware.bin COM8

clean:
	$(RM) $(OBJECTS) $(OBJECTS:.o=.d) firmware.elf firmware.bin .*~ *~

.PHONY: all clean libs load<commit_msg>Remove obsolete target.<commit_after>include ../include/generated/variables.mak
include $(SOC_DIRECTORY)/software/common.mak

BUILD_DIRECTORY=$(BUILDINC_DIRECTORY)/../../

OBJECTS=isr.o \
		ethernet.o \
		etherbone.o \
		telnet.o \
		mdio.o \
		config.o \
		processor.o \
		hdmi_in0.o \
		hdmi_in1.o \
		hdmi_out0.o \
		hdmi_out1.o \
		pattern.o \
		edid.o \
		pll.o \
		ci.o \
		encoder.o \
		i2c.o \
		main.o \
		stdio_wrap.o \

CFLAGS += \
	-I. \
	-I$(LIBUIP_DIRECTORY)/../uip \
	-I$(LIBUIP_DIRECTORY)

all: firmware.bin

# pull in dependency info for *existing* .o files
-include $(OBJECTS:.o=.d)

%.bin: %.elf
	$(OBJCOPY) -O binary $< $@
	chmod -x $@
	cp $@ $(BUILD_DIRECTORY)/software/boot.bin

firmware.elf: $(OBJECTS)
	$(LD) $(LDFLAGS) \
		-T $(FIRMWARE_DIRECTORY)/linker.ld \
		-N -o $@ \
                ../libbase/crt0-$(CPU).o \
                $(OBJECTS) \
                -L../libnet \
                -L../libbase \
                -L../libcompiler_rt \
		-L../libuip \
		-lbase-nofloat -luip -lcompiler_rt
	chmod -x $@

%.o: $(FIRMWARE_DIRECTORY)/%.c
	$(compile)

%.o: $(FIRMWARE_DIRECTORY)/%.S
	$(assemble)

clean:
	$(RM) $(OBJECTS) $(OBJECTS:.o=.d) firmware.elf firmware.bin .*~ *~

.PHONY: all clean libs load
{'fraction_non_alphanumeric': 0.18922155688622755, 'fraction_numerical': 0.005189620758483034, 'mean_word_length': 2.05609756097561, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2709837', 'n_tokens_mistral': 1151, 'n_tokens_neox': 1048, 'n_words': 177}