53 lines
1.4 KiB
Makefile
53 lines
1.4 KiB
Makefile
# -*- makefile -*-
|
|
LINK_BASE = 0x80200000
|
|
target_machine=yeeloong
|
|
COMMON_CFLAGS += -march=mips3
|
|
COMMON_ASFLAGS += -march=mips3
|
|
include $(srcdir)/conf/mips.mk
|
|
|
|
# For pci.mod.
|
|
pkglib_MODULES += pci.mod
|
|
pci_mod_SOURCES = bus/pci.c bus/bonito.c
|
|
pci_mod_CFLAGS = $(COMMON_CFLAGS)
|
|
pci_mod_LDFLAGS = $(COMMON_LDFLAGS)
|
|
|
|
# For ata.mod.
|
|
pkglib_MODULES += ata.mod
|
|
ata_mod_SOURCES = disk/ata.c
|
|
ata_mod_CFLAGS = $(COMMON_CFLAGS)
|
|
ata_mod_LDFLAGS = $(COMMON_LDFLAGS)
|
|
|
|
# For pci.mod.
|
|
pkglib_MODULES += sm712.mod
|
|
sm712_mod_SOURCES = video/sm712.c
|
|
sm712_mod_CFLAGS = $(COMMON_CFLAGS)
|
|
sm712_mod_LDFLAGS = $(COMMON_LDFLAGS)
|
|
|
|
# For lspci.mod
|
|
pkglib_MODULES += lspci.mod
|
|
lspci_mod_SOURCES = commands/lspci.c
|
|
lspci_mod_CFLAGS = $(COMMON_CFLAGS)
|
|
lspci_mod_LDFLAGS = $(COMMON_LDFLAGS)
|
|
|
|
# For at_keyboard.mod.
|
|
pkglib_MODULES += at_keyboard.mod
|
|
at_keyboard_mod_SOURCES = term/at_keyboard.c
|
|
at_keyboard_mod_CFLAGS = $(COMMON_CFLAGS)
|
|
at_keyboard_mod_LDFLAGS = $(COMMON_LDFLAGS)
|
|
|
|
# For ata_pthru.mod.
|
|
pkglib_MODULES += ata_pthru.mod
|
|
ata_pthru_mod_SOURCES = disk/ata_pthru.c
|
|
ata_pthru_mod_CFLAGS = $(COMMON_CFLAGS)
|
|
ata_pthru_mod_LDFLAGS = $(COMMON_LDFLAGS)
|
|
|
|
# For mmap.mod.
|
|
pkglib_MODULES += mmap.mod
|
|
mmap_mod_SOURCES = mmap/mmap.c mmap/mips/yeeloong/uppermem.c
|
|
mmap_mod_CFLAGS = $(COMMON_CFLAGS)
|
|
mmap_mod_LDFLAGS = $(COMMON_LDFLAGS)
|
|
mmap_mod_ASFLAGS = $(COMMON_ASFLAGS)
|
|
|
|
sbin_SCRIPTS += grub-install
|
|
grub_install_SOURCES = util/grub-install.in
|
|
|