72 lines
1.9 KiB
Makefile
72 lines
1.9 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)
|
|
|
|
# For datetime.mod
|
|
pkglib_MODULES += datetime.mod
|
|
datetime_mod_SOURCES = lib/cmos_datetime.c
|
|
datetime_mod_CFLAGS = $(COMMON_CFLAGS)
|
|
datetime_mod_LDFLAGS = $(COMMON_LDFLAGS)
|
|
|
|
# For date.mod
|
|
pkglib_MODULES += date.mod
|
|
date_mod_SOURCES = commands/date.c
|
|
date_mod_CFLAGS = $(COMMON_CFLAGS)
|
|
date_mod_LDFLAGS = $(COMMON_LDFLAGS)
|
|
|
|
# For datehook.mod
|
|
pkglib_MODULES += datehook.mod
|
|
datehook_mod_SOURCES = hook/datehook.c
|
|
datehook_mod_CFLAGS = $(COMMON_CFLAGS)
|
|
datehook_mod_LDFLAGS = $(COMMON_LDFLAGS)
|
|
|
|
|
|
sbin_SCRIPTS += grub-install
|
|
grub_install_SOURCES = util/grub-install.in
|
|
|