e292de1179
Options.txt needs the line;- LCDName = ssd1306_128x64 and depending upon how you want the keyboard's pgup and pgdown keys to work;- keyboardBrowseLCDScreen = 1 Splits lines connect SDA to GPIO 2 pin 3 SCL to GPIO 3 pin 5 Non-split lines SDA to GPIO 0 pin 27 SCL to GPIO 1 pin 28
33 lines
No EOL
1 KiB
Makefile
33 lines
No EOL
1 KiB
Makefile
OBJS = armc-start.o armc-cstartup.o armc-cstubs.o armc-cppstubs.o \
|
|
exception.o main.o rpi-aux.o rpi-i2c.o rpi-mailbox-interface.o rpi-mailbox.o \
|
|
rpi-gpio.o rpi-interrupts.o cache.o ff.o interrupt.o Keyboard.o \
|
|
Pi1541.o DiskImage.o iec_bus.o iec_commands.o m6502.o m6522.o \
|
|
Drive.o gcr.o prot.o lz.o emmc.o diskio.o options.o Screen.o SSD1306.o ScreenLCD.o \
|
|
Timer.o FileBrowser.o DiskCaddy.o ROMs.o InputMappings.o xga_font_data.o
|
|
|
|
SRCDIR = src
|
|
OBJS := $(addprefix $(SRCDIR)/, $(OBJS))
|
|
|
|
LIBS = uspi/libuspi.a
|
|
INCLUDE = -Iuspi/include/
|
|
|
|
TARGET ?= kernel
|
|
|
|
.PHONY: all $(LIBS)
|
|
|
|
all: $(TARGET)
|
|
|
|
$(TARGET): $(OBJS) $(LIBS)
|
|
@echo " LINK $@"
|
|
$(Q)$(CC) $(CFLAGS) -o $(TARGET).elf -Xlinker -Map=$(TARGET).map -T linker.ld -nostartfiles $(OBJS) $(LIBS)
|
|
$(Q)$(PREFIX)objdump -d $(TARGET).elf | $(PREFIX)c++filt > $(TARGET).lst
|
|
$(Q)$(PREFIX)objcopy $(TARGET).elf -O binary $(TARGET).img
|
|
|
|
uspi/libuspi.a:
|
|
$(MAKE) -C uspi
|
|
|
|
clean:
|
|
$(Q)$(RM) $(OBJS) $(TARGET).elf $(TARGET).map $(TARGET).lst $(TARGET).img
|
|
$(MAKE) -C uspi clean
|
|
|
|
include Makefile.rules |