2009-10-24 08:45:54 +00:00
|
|
|
# -*- 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)
|
|
|
|
|
2009-12-02 07:39:17 +00:00
|
|
|
# For ata.mod.
|
|
|
|
pkglib_MODULES += ata.mod
|
|
|
|
ata_mod_SOURCES = disk/ata.c
|
|
|
|
ata_mod_CFLAGS = $(COMMON_CFLAGS)
|
|
|
|
ata_mod_LDFLAGS = $(COMMON_LDFLAGS)
|
|
|
|
|
2009-10-24 08:45:54 +00:00
|
|
|
# For pci.mod.
|
|
|
|
pkglib_MODULES += sm712.mod
|
|
|
|
sm712_mod_SOURCES = video/sm712.c
|
|
|
|
sm712_mod_CFLAGS = $(COMMON_CFLAGS)
|
|
|
|
sm712_mod_LDFLAGS = $(COMMON_LDFLAGS)
|
2009-12-02 07:39:17 +00:00
|
|
|
|
|
|
|
# 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)
|
2009-12-07 15:16:10 +00:00
|
|
|
|
|
|
|
# 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)
|
2009-12-09 18:39:21 +00:00
|
|
|
|
2009-12-11 21:14:09 +00:00
|
|
|
# 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)
|
|
|
|
|
|
|
|
|
2009-12-09 18:39:21 +00:00
|
|
|
sbin_SCRIPTS += grub-install
|
|
|
|
grub_install_SOURCES = util/grub-install.in
|
|
|
|
|